<table><tr><td style="">hein added a comment.
</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/D3805" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Another full test write up.</p>

<p>Ivan informed in an email that for a clean slate test, in addition to the SQL deletion and deleting kactivitymanager-statsrc, also favoritesPortedToKAstats=true needs to be removed from all places in appletsrc, so I did another test run.</p>

<p>Test setup:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">Two activities are set up</li>
<li class="remarkup-list-item">build git master</li>
<li class="remarkup-list-item">log out</li>
<li class="remarkup-list-item">from a tty, make a clean slate (SQL, delete appletsrc, delete statsrc)</li>
<li class="remarkup-list-item">log in, add an Appdash widget in addition to the default Kickoff</li>
<li class="remarkup-list-item">in both Kickoff and Appdash, add two more favorites in addition to the default set, making sure it's different extra favorites in each</li>
<li class="remarkup-list-item">in Kickoff, drag the first default favorite (Firefox for me) inbetween the two manually added faves</li>
<li class="remarkup-list-item">in Appdash, do the same with the second default favorite (System Settings)</li>
<li class="remarkup-list-item">log out</li>
<li class="remarkup-list-item">build the patch, log in</li>
</ol>

<p>What I expected:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">All widgets having somehow the superset of the favorites of all widgets pre-migration so no favorites are los</li>
<li class="remarkup-list-item">All activities being initialized to the same migration result</li>
<li class="remarkup-list-item">Favorite order kinda-sorta somehow reflecting the pre-migration state of things</li>
</ul>

<p>What I actually got:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Kickoff had the same favorites as pre-migration, none of the Appdash ones, and in the pre-migration order</li>
<li class="remarkup-list-item">Appdash had thesame favorites as pre-migration, but the manually repositioned System Settings favorite somehow moved one position up in front of the two manually added extra faves</li>
<li class="remarkup-list-item">In the second activity, Appdash has no favorites at all</li>
<li class="remarkup-list-item">Kickoff in the second activity seems to have the same ones as in the first activity, i.e. also missing any Appdash ones (but I forgot to check this in the first login, I think I logged out/in again since ... but I did no more changes, so I'm guessing no reason it would have changed with more logout/login cycles)</li>
</ul>

<p>Additionally, if I now add new favorite to all activities in Appdash in the first activity, it's inserted in the middle of the list before System Settings and the two previously pre-migration manually-added extra favorites. In Kickoff, it seems to append as expected.</p>

<p>To conclude, the migration results seem broken and random, with different results by widget and activity, and adding favorites is similarly weird.</p></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3805" rel="noreferrer">https://phabricator.kde.org/D3805</a></div></div><br /><div><strong>To: </strong>ivan, mart, hein<br /><strong>Cc: </strong>Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>