-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Bulk adding tags can create "duplicate" posts_tags
rows
#21414
Comments
Thank you for the report. The problem code is located here. PRs are welcome 🙂 Aside from the double counting the duplicate post_id+tag_id rows in the If you're aware of any other problems this causes please elaborate. As for the fix there are two approaches:
|
post_tags
rows
post_tags
rowsposts_tags
rows
Hello there Please let me know if there's something I should watch out for. |
@kevinansfield I found 2 links while trying to do the DB migration:
Regardless, here's where I am: First question: Is that correct? If not, then how does the migration setup work now? (any docs?) Secondly, I saw some previous commits relating to column migrations for example: f9b0280 Thank you in advance! |
Issue Summary
Tag count doubled when adding an existing tag in a post again via Context Menu.
The correct behaviour would be, if a tag is already existed in a post, it should not be tagged again using "Add a Tag" in Context Menu.
Steps to Reproduce
Ghost Version
5.94
Node.js Version
22
How did you install Ghost?
Linux / Local
Database type
MySQL 8
Browser & OS version
No response
Relevant log / error output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: