Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Fail if none of our tags could be updated
For example, if a category has a tag restriction and the API tries to attempt to update it but cannot. See: https://meta.discourse.org/t/unallowed-tag-in-conversation-returns-200/122170
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c2c169f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit has been mentioned on Discourse Meta. There might be relevant details there:
https://meta.discourse.org/t/unallowed-tag-in-conversation-returns-200/122170/2
c2c169f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
David Taylor posted:
With this change, it looks like we do not return a useful error message to users creating topics via the UI. If I create a topic using a tag which is not allowed in the category, I get "Internal Server Error". Previously, it would filter out the invalid tags and continue anyway.
c2c169f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Robin Ward posted:
I think this behaviour is more correct since the input is indeed bad. I will revise the error message to be more clear about the error.
c2c169f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Robin Ward posted:
a727968
That should do it.