feat: support merging tag#1315
Conversation
|
First of all, thanks for the contribution. And I found an error. UPDATE `tag_rel` SET `tag_id` = ?, `updated_at` = ? WHERE (tag_id = ?) AND (object_id LIKE ?) AND object_id NOT IN (SELECT object_id FROM tag_rel WHERE tag_id=? AND object_id LIKE ?) [10030000000003699 2025-04-23 11:13:03 10030000000003701 1001% 10030000000003699 1001%] - 1.244208ms
Deleting it may be a good choice. This keeps behaviour consistent. For example questions. init state: questions1(t1, t2, t3), question2(t2)
The merged behaviour is the same in question 1 and question 2. |
|
Thanks @LinkinStars for these suggestions! Does the error happened on MySQL? I've verified with SQLite. Anyway, I'll validated for both databases. BTW, I'm kind of busy recently, will update based on your suggestions later. Thanks! |
You've done a great job 👍. So, take your time. It's a big feature that we're continuing to test as well. |
… remove unused code
Close #1110 .
Process when merging one tag to another.
tag.followactiontag_idto target tag id intag_reltable when all below conditions mettag_idequals source tag idobject_idis withquestionprefix, which is1001Test cases validated