This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/spec/system/page_objects/pages
Alan Guo Xiang Tan e3977f84a3
FIX: Incorrect topic tracking state count when a new category is created (#20506)
What is the problem?

We have a hidden site setting `show_category_definitions_in_topic_lists`
which is set to false by default. What this means is that category
definition topics are not shown in the topic list by default. Only the
category definition topic for the category being viewed will be shown.
However, we have a bug where we would show that a category has new
topics when a new child category along with its category definition
topic is created even though the topic list does not list the child
category's category definition topic.

What is the fix here?

This commit fixes the problem by shipping down an additional
`is_category_topic` attribute in `TopicTrackingStateItemSerializer` when
the `show_category_definitions_in_topic_lists` site setting has been set
to false. With the new attribute, we can then exclude counting child
categories' category definition topics when counting new and unread
counts for a category.
2023-03-06 10:13:10 +08:00
..
admin_settings.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
base.rb DEV: DRY up PageObject::Topic and PageObject::Components::Composer (#19841) 2023-01-12 13:54:26 +10:00
category.rb FIX: Incorrect topic tracking state count when a new category is created (#20506) 2023-03-06 10:13:10 +08:00
form_template.rb DEV: Show active categories in form templates customize table (#20498) 2023-03-01 12:37:14 -08:00
search.rb DEV: attempts to fix flakey spec (#20075) 2023-01-30 21:47:44 +01:00
topic.rb FIX: Fast edit doesn’t work on content with certain characters (#20410) 2023-02-23 11:30:16 +08:00
user_preferences_sidebar.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
user_preferences.rb A11Y: add aria tags to the new user nav (#19774) 2023-01-17 12:18:16 -05:00
user.rb UX: Release new user profile navigation for sidebar compatibility (#20134) 2023-02-21 10:16:16 +08:00