[Tags] Confusion over child primary tags treated as secondary tags

Open
#3,640 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
backend

Research direction

Start by reproducing the behavior through the tag settings page and discussion creation steps described in the issue. The expected behavior is explicitly unresolved, and no files, tests, or entry points are named, so the intended completion criteria need to be established first.

Written by the indexing model from the issue text.

Description

type/bug
Current Behavior

In some parts of the software child primaries are treated as secondary tags (such as checking fo min max requirements when posting). In other parts they are considered primaries (such as checking global start discussion permission). The difference in behavior is very confusing and needs to be organized/figured out.

Steps to Reproduce
  1. in tag settings page set primary to min 1, max 1, set secondary to min 1, max 3
  2. create a primary tag and drop it under the primary General
  3. create a discussion select both General and the newly created sub tag
  4. discussion is created
Expected Behavior

Needs to be figured out.

Screenshots

No response

Environment
  • Flarum version: Since forever.
Output of php flarum info

No response

Possible Solution

No response

Additional Context

@jordanjay29 and/or @askvortsov1 might have more context about the current behavior.

Dominant language
PHP
Stars
6.8k
Forks
891
Avg merge
1d 10h
Merged PRs (30d)
209

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flarum/framework

All issues in flarum/framework

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.