discourse/app
Gerhard Schlager e17c145e8d
FIX: Category hashtags weren't always found for sub-sub-categories (#20156)
The algorithm failed to find the correct category by slug when there are multiple sub-sub-categories with the same child-category name and the first child doesn't  have the correct grandchild.

So, searching for "child / grandchild" worked in the following case, it found (3):

- (1) parent 1
  - (2) child
    - (3) grandchild
- (4) parent 2
  - (5) child
    - (6) grandchild

But it failed to find the grandchild in the following case:

- (1) parent 1
  - (2) child
- (4) parent 2
  - (5) child
    - (6) grandchild

And this also fixes a flaky spec by forcing categories to always order by by `parent_category_id` and `id`.
This makes it possible to partly revert 60990aab55
2023-02-03 12:17:52 +01:00
..
assets Build(deps): Bump ember-cli-app-version in /app/assets/javascripts (#20152) 2023-02-03 11:14:42 +01:00
controllers DEV: configurable custom sidebar sections (#20057) 2023-02-03 14:44:40 +11:00
helpers DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
jobs FIX: Extend username updates to self-mentions (#20071) 2023-02-02 12:33:42 +00:00
mailers DEV: Apply syntax_tree formatting to `app/*` 2023-01-09 14:14:59 +00:00
models FIX: Category hashtags weren't always found for sub-sub-categories (#20156) 2023-02-03 12:17:52 +01:00
serializers DEV: configurable custom sidebar sections (#20057) 2023-02-03 14:44:40 +11:00
services FIX: Category hashtags weren't always found for sub-sub-categories (#20156) 2023-02-03 12:17:52 +01:00
views DEV: use structured data in crawler-linkback-list for referencing only (#16237) 2023-01-30 08:26:55 +01:00