[3.x] Tags: store an order for secondary tags
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Read the tag ordering implementation for position, POST /api/tags/order, and the admin Tags page, along with the migration that assigns existing tag positions. The issue leaves two product decisions open: where manual ordering applies and how child tags count toward required tag limits. Once those decisions are made, verify secondary tags can be reordered and existing order matches the admin's current name order.
Written by the indexing model from the issue text.
Description
Secondary tags have no order: the admin lists them by name, and the forum's Tags page and sidebar by number of discussions. This was a deliberate choice in #1549 (so the sidebar can show the three most-used secondary tags). The fix proposed for #5236 disables dragging within the secondary list instead of accepting an order and discarding it.
For 3.0, once extensions identify a tag's kind through isPrimary() / isSecondary() instead of position (#5455), position can mean the order within a tag's own list for every kind.
To do
positionorders secondary tags too. Secondary tags no longer have a null position, which is a breaking change for anything still checking it.POST /api/tags/orderaccepts the secondary list as well, and the admin Tags page lets it be reordered again.- A migration gives existing secondary tags positions, by name, matching what the admin shows today.
To decide
- Where the manual order applies: the admin list, the forum Tags page cloud, and the sidebar's "most-used three". Options: always manual; manual with the sidebar keeping its most-used choice; or a setting.
- Whether the required tag counts should treat child tags as primary, since "primary" now means the whole primary tree. If they do, the primary limits may need separate settings for children.
Related: #3640 and #4065 cover the existing child-tag counting inconsistency.
- Dominant language
- PHP
- Stars
- 6.8k
- Forks
- 891
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 209
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flarum/framework
-
type/accessibility type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Default language is ignored for anyone who chose a language, when the language selector is hiddenPossibly taken @1AbdullahButt claimed this 15 days ago. Opentype/bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[2.x] False CLI/Web PHP mismatch when /usr/bin/php differs from the site's FPMPossibly taken @lazerg claimed this 15 days ago. Opentype/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
[2.x] A filter on a resource without a searcher returns a 500Possibly taken @imorland claimed this today. Opentype/bug
flarum/framework#5578 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in flarum/framework
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
Sylius/Sylius#19359 · 1 comment ·
Maintainers usually reply within 1 day
-
Add php 8.6Open
Difficulty 1/5 Under an hour Newbie friendliness 66/100
mailersend/mailersend-php#199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Configuration new tool
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
novalo-dev/Prestashop-MCP-Server#366 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 10 days