The discussion addresses a bug where category selectors are incorrectly updated when attempting to set a parent category that fails due to an error, such as a category already having a child. This leads to navigation issues, including a 404 error when returning to the category edit page, which only resolves after a page refresh. Canapin reports the issue with a video demonstrating the problem. sam agrees it should be fixed and marks it as a pr-welcome issue. DukeManh volunteers to fix it, seeking guidance on testing. sam encourages the effort, and jancernik later adds a test and merges the pull request Fix: Handle failing to update parent category by DukeManh · Pull Request #24401 · discourse/discourse (github.com).
In my example, I’m trying to set a parent category on a category that already has a child category. Naturally, I hit an error message. Despite this, the category selectors are updated as if my action was successful.
Navigating back to the topic list (through the previous button from my browser) and back to the category edition leads to a 404.
These navigation issues persist until I force a page refresh.
The interface shouldn’t be updated in real-time to reflect a change if that change didn’t work.