-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving tags before post creates unused/unwanted tags #15406
Comments
Thanks @iandunn! I've experienced this as well in addition to having tags completely vanish as I'm adding more tags to the post. This seems to be a development bug and doesn't require any design feedback. I'll adjust the labels. |
Ah, I wasn't sure if saving tags before the post was intentional or not. 👍 |
Verified that we do create tags on tag.mp4 |
@Mamaduka George is planning on working on improving the Tags feature in Gutenberg. Here is the issue for it. I linked to my comment. #8867 (comment) |
@paaljoachim you linked to a PR that's been merged but I'm still able to replicate this problem in 10.6.1 which should have the fix: Screen.Recording.2021-05-17.at.9.44.41.PM.movTagging you in case you have more insight here! If not, let's keep this open since it doesn't seem resolved. |
Hi, @annezazu Unfortunately, my PR didn't solve this issue. It is an enhancement for Tag settings. The main problem here's is that we can't create terms when saving/creating posts via REST API. It means creating terms before a post is saving and providing IDs for the API call. Like @iandunn suggested, we should defer tag creation until the user triggers save. I've some ideas on how to do this, but I'm not 100% sure about the best option. I'm open to suggestions and happy to work on PR. |
Describe the bug
New tags are saved in the database before the user has indicated that they should be.
To reproduce
Steps to reproduce the behavior:
javascritp
,
to start typing the next tagjavascript
, press enterPosts > Tags
screenThere's be 2 new tags,
javascript
andjavascritp
.Expected behavior
New tags should not be created until the user has manually triggered a save of the post (whether thats as a draft, or publishing).
The text was updated successfully, but these errors were encountered: