Summary: | MYSQL : nested set fields not updating when moving tag within hierarchy [patch] | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Martin Nichol <bugz> |
Component: | Database-Mysql | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, swatilodha27 |
Priority: | NOR | ||
Version: | 5.0.0 | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.1.0 | |
Sentry Crash Report: | |||
Attachments: |
Please test this.
Please see this one too. Which of these approaches would be fine? Please test with this patch. |
Description
Martin Nichol
2014-08-05 12:55:52 UTC
This file still valid using last digiKam 5.0.0 ? Gilles Caulier Martin, How exactly did you move the tag? Did you first remove and then assigned the tag again? (In reply to swatilodha27 from comment #2) > Martin, > > How exactly did you move the tag? Did you first remove and then assigned the > tag again? It was drag and drop within the tags hierarchy. Martin (In reply to caulier.gilles from comment #1) > This file still valid using last digiKam 5.0.0 ? > > Gilles Caulier I'll have to get back to you on that. Martin I can reproduce the problem with 5.0.0 version. Valid for both Internal and Remote. Created attachment 100043 [details]
Please test this.
Created attachment 100063 [details]
Please see this one too. Which of these approaches would be fine?
Created attachment 100102 [details]
Please test with this patch.
Swaty, Just to be clear, what's the clear procedure to check if patch work as expected ? Which mysql commands do you use to check tags hierarchy ? Gilles Steps to reproduce: 1) Add a new image and assign it 2-3 tags. 2) Check in Tags table, and observe the pid, lft, rgt values in it for the Tags assigned. 3) Back in DK, under "Tags" view (in left sidebar), drap and drop tags such that they're in hierarchy. (one tag becomes child of another) 4) Check back the Tags table. (without patch) --->parent tag id (pid) is updated, but lft and rgt values are still the same. (with patch) ---> all three values updated according to hierarchy. I tested the Mysql Database into Tags table with Tora frontend. I confirm that without the patch lft/rgt id are not updated in database when i move a tags from hierarchy in another place. I confirm also that your patch do the job as expected. Gilles Caulier Git commit b8df6225e3cafdd720120f4bad4150fd78525e02 by Swati Lodha. Committed on 16/07/2016 at 20:33. Pushed by swatil into branch 'master'. Set fields in Tag table now updates BUG:338050 CCBUG:338050 FIXED-IN:5.1.0 M +2 -0 app/dragdrop/tagdragdrop.cpp M +12 -0 libs/database/coredb/coredb.cpp M +8 -0 libs/database/coredb/coredb.h M +2 -0 libs/database/coredb/coredbchangesets.h http://commits.kde.org/digikam/b8df6225e3cafdd720120f4bad4150fd78525e02 |