<table><tr><td style="">dkurz created this revision.<br />dkurz added a reviewer: KDE PIM.<br />dkurz set the repository for this revision to rINCIDENCEEDITOR PIM: Incidence Editor.<br />Restricted Application added a project: KDE PIM.<br />Restricted Application added a subscriber: kde-pim.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2423" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The old implementation tried to match loaded and existing tags on the<br />
akonadi server side. A new CreateTag job was sent to the server, with<br />
the name of the new tag and the hint to first check if this tag already<br />
exists. The server, however, does not know about any tag names, and<br />
tried to match the new tag by global id, which is completely random in<br />
the TagCreate job.</p>

<p>Now, the matching is done on the client side, where the concept of tag<br />
names is located. We fetch all tags from the server and check if the<br />
categories of the loaded category match the names of these tags. For<br />
every category that was not found in the tag list returned from the<br />
server, we send a TagCreate job.</p>

<p>Fixes Bug 352645</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Opening the incidenceeditor from korganizer's eventviews for variuos<br />
cached and non-cached items did not produce a single tag duplicate.<br />
Also, the TagWidget's content is set correctly after the incidenceeditor<br />
is created. Without the patch, everything reported in Bug 352645<br />
happened here, too.</p>

<p>Patch quality: works for me.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rINCIDENCEEDITOR PIM: Incidence Editor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2423" rel="noreferrer">https://phabricator.kde.org/D2423</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/incidencecategories.cpp<br />
src/incidencecategories.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>dkurz, KDE PIM<br /><strong>Cc: </strong>kde-pim, spencerb, dvasin, winterz, smartins, vkrause, mlaurent, knauss, dvratil<br /></div>