This thread discusses a bug in Discourse’s REST API where creating a topic with a new tag fails silently if the user lacks tag-creation permission or if the ‘tags’ feature is disabled. jack2 reports the issue and suggests returning a 422 error with a message like ‘Tag creation not allowed’ instead of silently dropping tags, similar to how invalid titles are handled. aki expresses interest in fixing it and asks for guidance; jack2 directs them to the API docs and explains how to pass tags via the tags parameter. aki asks about error messaging and whether topic creation should proceed without tags; jack2 clarifies that topic creation should fail if tags can’t be created. Later, aki reports solving the bug but encountering a permission denied error when pushing to GitHub. erlend_sh and xrav3nz guide aki to fork the repo and push to their own branch, referencing sam’s guide. erlend_sh offers further Git help. Finally, blake submits a PR (#10400) that implements the fix, returning a 422 error when tagging is disallowed.
When using the API to create a topic that contains a new tag, if the user identified by api_username cannot create tags, the query creates the topic but silently fails to add the tag.
EDIT - Additional issue: when using the API to create a topic that contains a new tag, if the Discourse instance has the “tags” feature turned off, the query creates the topic but silently fails to add the tag.
hi sorry for being late can you please direct me how to proceed and where to find this issue. i tried creating topic but not able find any option to add tag in it .
Notice that the issue described in this thread also occurs when creating a tagged topic with the tag feature turned off. I will edit my first post to reflect that.
If you need any more guidance with this @aki just let us know where you’re stuck. Git can be a bit confusing at first!
Luckily there’s lots of tutorials around. GitHub has a pretty good one, and there’s plenty of other ones (including interactive tutorials) just a search away.