discourse/app/assets/javascripts/discourse/tests/unit
David Taylor b5721b7b4f
FIX: default_list_filter = none navigation and preloading (#20641)
When a category has default_list_filter=none, there were a number of issues which this commit resolves:

1. When using the breadcrumbs to navigate a `default_list_filter=none` category, adding a tag filter would not apply the no-subcategories filter, but the subcategories dropdown would still say 'none'. This commit adjusts `getCategoryAndTagUrl` so that `/none` is added to the URL

2. When landing on `/tags/c/{slug}/{id}/{tag}`, for a default_list_filter=none category, it would include subcategories. This commit introduces a client-side redirect to match the behavior of `/c/{slug}/{id}`

3. When directly navigating to `/c/{slug}/{id}`, it was correctly redirecting to `/c/{slug}/{id}/none`, BUT it was still using the preloaded data for the old route. This has been happening since e7a84948. Prior to that, the preloaded data was discarded and a new JSON request was made to the server. This commit restores that discarding behavior. In future we may want to look into making this more efficient.

System specs are introduced to provide end-end testing of this functionality
2023-03-14 10:46:05 +00:00
..
controllers DEV: Deprecate create-store test helper (#19021) 2022-11-16 10:54:46 +01:00
ember DEV: Support theme/plugin overrides of colocated component templates (#19237) 2022-11-30 14:14:38 +00:00
lib FIX: default_list_filter = none navigation and preloading (#20641) 2023-03-14 10:46:05 +00:00
mixins DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
models DEV: Let unread topics come through to /new when new new view is enabled (#20628) 2023-03-10 09:57:35 +08:00
routes DEV: Add tests for review-index route (#18415) 2022-10-05 12:39:35 +08:00
services FIX: Don't spam presence requests when getting 429 (#20084) 2023-01-31 09:49:23 +01:00
utils DEV: Support @debounce decorator in native class syntax (#20521) 2023-03-03 11:48:58 +00:00
localization-test.js FIX: Overriding text with admin_js.* keys didn't work (#18281) 2022-09-20 10:47:57 +10:00