6fe78cd542
When dismissing new topics for the Tracked filter, the dismiss was limited to 30 topics which is the default per page count for TopicQuery. This happened even if you specified which topic IDs you were selectively dismissing. This PR fixes that bug, and also moves the per_page_count into a DEFAULT_PER_PAGE_COUNT for the TopicQuery so it can be stubbed in tests. Also moves the unused stub_const method into the spec helpers for cases like this; it is much better to handle this in one place with an ensure. In a follow up PR I will clean up other specs that do the same thing and make them use stub_const. |
||
---|---|---|
.. | ||
versioning | ||
concurrency.rb | ||
diagnostics_helper.rb | ||
discourse_event_helper.rb | ||
fake_logger.rb | ||
helpers.rb | ||
integration_helpers.rb | ||
match_html_matcher.rb | ||
onebox_helpers.rb | ||
rate_limit_matcher.rb | ||
shared_examples_for_stats_cacheable.rb | ||
sidekiq_helpers.rb | ||
site_settings_helpers.rb | ||
time_matcher.rb | ||
uploads_helpers.rb | ||
webauthn_integration_helpers.rb |