D3805: Per-activity favorites (Final, again?)

2017-09-08 Thread Ivan Čukić
This revision was automatically updated to reflect the committed changes.
Closed by commit R119:4ba9b01e2d6a: Per-activity favorites (Final, again?) 
(authored by ivan).

CHANGED PRIOR TO COMMIT
  https://phabricator.kde.org/D3805?vs=19304&id=19320#toc

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19304&id=19320

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-08 Thread Eike Hein
hein accepted this revision.
hein added a comment.
This revision is now accepted and ready to land.


  So I assume the bug was that I was getting too many favorites? Limit::all is 
now unlimited I assume? Otherwise it needs to be integrated with the 
maxFavorites stuff to disable the actions. (Does maxFavorites still work BTW? 
Because it's needed for Simple Menu on the KDE Store.)
  
  (Just realized due to the API changes this will probably break Simple Menu 
anyway ... then again it was using the non-public Kicker backend ... I need to 
talk to you how I can get migration for Simple Menu too.)
  
  Alright, let's merge now then - I didn't actually have time to re-test this 
but I guess the bug/fix is obvious in retrospect and it was working fine 
otherwise.

REPOSITORY
  R119 Plasma Desktop

BRANCH
  arcpatch-D3805

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-08 Thread Ivan Čukić
ivan updated this revision to Diff 19304.
ivan added a comment.


  Increasing the result limit

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19303&id=19304

BRANCH
  arcpatch-D3805

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-08 Thread Ivan Čukić
ivan updated this revision to Diff 19303.
ivan added a comment.


  More debugging...

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19301&id=19303

BRANCH
  arcpatch-D3805

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-08 Thread Ivan Čukić
ivan updated this revision to Diff 19301.
ivan edited the summary of this revision.
ivan edited the test plan for this revision.
ivan added a comment.


  Removed model test

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19283&id=19301

BRANCH
  arcpatch-D3805

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-07 Thread Ivan Čukić
ivan updated this revision to Diff 19283.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19263&id=19283

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  CMakeLists.txt
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-07 Thread Eike Hein
hein added a comment.


  Test failure using Kicker:
  
  1. Right-click menu entry -> Show favorite in -> All activities
  2. Verify it's shown on both activities
  3. Be in activity 1, right-click the favorite, click the checkbox item for 
activity 2, favorite disappears from activity 1 as expected
  4. Switch to activity 2 expecting to see favorite: Not there
  5. Switch back to activity 1 (favorite also not there as expected)
  6. Add another favorite to all ativities, switch back to activity 2: Missing 
favorite reappeared along with new one
  
  Addition to #4: I think another fave I had added previously had also 
disappeared and reappeared in #6.
  
  Still same broken behavior as in last test in other words. Sending output via 
email.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-06 Thread Ivan Čukić
ivan added a comment.


  p.s. This is how I restart everything:
  
kquitapp5 plasmashell; kactivitymanagerd stop; touch 
~/.config/kactivitymanagerd-statsrc; make install -j8 && (echo "DELETE FROM 
ResourceLink;" | sqlite3 ~/.local/share/kactivitymanagerd/resources/database) 
&& rm ~/.config/kactivitymanagerd-statsrc && cp 
~/.config/plasma-org.kde.plasma.desktop-appletsrc-prekastats 
~/.config/plasma-org.kde.plasma.desktop-appletsrc && kactivitymanagerd start && 
plasmashell

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-06 Thread Ivan Čukić
ivan updated this revision to Diff 19263.
ivan added a comment.


  Another one to test:
  
  - fixed a small bug related to fav adding
  - added debugging output for easier testing (when you encounter a bug, send 
me an email with plasma output)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19206&id=19263

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-05 Thread Eike Hein
hein added a comment.


  It lmost looked good, but I got this bug back:
  
  1. add fav to current activity (activity 1)
  2. add to activity 2 by checking in context menu while in activity 1
  3. switch to activity 2, verify it was added
  4. switch back to activity 1, in context menu uncheck activity 1
  5. switch back to activity 2 to verify it's still there - but it's gone
  
  I tried to repeat those steps and then at step 3, the favorite that 
disappeared at step 5 actually did show up. So this might be a case where the 
model didn't refresh correctly on activity switch? However with the new 
favorite I was trying it with, it didn't disappear. Then when I tried it again 
after trying some other things, it happened again, and other favorites 
disappeared as well alongside it.
  
  Another UX note: At some point during testing I added a new favorite directly 
to all activities. Then I switched from activity 1 to activity 2, and I saw on 
activity 2 the favorite wasn't appended to the list but appeared in front of 
the activity 2-only favorites. This isn't a huge deal breaker, although I feel 
like it might be simpler and more predictable for users to always just append - 
I thought the applets now have their own ordering conceptually so I was sort of 
surprised this didn't happen. But maybe I'm misunderstanding how per-applet 
ordering and global ordering (new applets need to get ordering from somewhere I 
guess ...) interact, or should interact. So don't get too scared by this 
feedback ...

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-05 Thread Ivan Čukić
ivan updated this revision to Diff 19206.
ivan added a comment.


  Fixing the ordering

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19163&id=19206

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml
  kcms/kfontinst/thumbnail/fontthumbnail.desktop

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-05 Thread Eike Hein
hein added a comment.


  ^ What's new in the latest rev?

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-04 Thread Ivan Čukić
ivan updated this revision to Diff 19163.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19108&id=19163

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D3805: Per-activity favorites (Final, again?)

2017-09-04 Thread Eike Hein
hein added a comment.


  With the updated kactivitymanagerd the missing favorite no longer happens, 
although the "also add it on the second activity by checking item" step inserts 
it in a strange position of last-2 instead of appending it on the same applet 
on the other activity - considering all the other faves in the test are shared, 
I'd expect it to appear the end (where it also was on the first activity). 
Still, progress!

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-09-04 Thread Eike Hein
hein added a comment.


  > After the port, all launchers have the same items on the top, with the new 
items added to the end. Do you have any speial URL formats in your original 
favorites (preferred: needed special treatment, that is why I'm asking)? Can 
you check whether the plasma configuration file has the correct order?
  
  Of course I have a preferred:// favorite: The default favorites have one for 
the browser ...
  
  plasma rc:
  
  
favoriteApps=preferred://browser,org.kde.dolphin.desktop,org.kde.kate.desktop,fontforge.desktop,systemsettings.desktop,gimp.desktop
  
favorites=systemsettings.desktop,org.kde.dolphin.desktop,org.kde.kate.desktop,org.kde.discover.desktop,blender.desktop,preferred://browser,org.kde.krita.desktop
  
  stats rc:
  
  
[Favorites-org.kde.plasma.kicker.favorites.instance-19-00c64f45-3049-42e5-b3c4-568afabb2b3d]
  
ordering=preferred://browser,applications:org.kde.dolphin.desktop,applications:org.kde.kate.desktop,applications:fontforge.desktop,applications:systemsettings.desktop,applications:gimp.desktop,applications:org.kde.discover.desktop,applications:blender.desktop,applications:org.kde.krita.desktop,applications:chocolate-setup.desktop
  
  
[Favorites-org.kde.plasma.kicker.favorites.instance-19-2126853d-731e-4ccb-bdd6-8e00bf5a3ec0]
  
ordering=preferred://browser,applications:org.kde.dolphin.desktop,applications:org.kde.kate.desktop,applications:fontforge.desktop,applications:systemsettings.desktop,applications:gimp.desktop,applications:blender.desktop,applications:org.kde.discover.desktop,applications:org.kde.krita.desktop,applications:org.kde.okular.desktop
  
  [Favorites-org.kde.plasma.kicker.favorites.instance-19-global]
  
ordering=preferred://browser,org.kde.dolphin.desktop,org.kde.kate.desktop,fontforge.desktop,systemsettings.desktop,gimp.desktop
  
  
[Favorites-org.kde.plasma.kickoff.favorites.instance-3-00c64f45-3049-42e5-b3c4-568afabb2b3d]
  
ordering=applications:fontforge.desktop,applications:gimp.desktop,applications:org.kde.dolphin.desktop,applications:org.kde.kate.desktop,applications:systemsettings.desktop,preferred://browser,applications:org.kde.discover.desktop,applications:blender.desktop,applications:org.kde.krita.desktop,applications:chocolate-setup.desktop
  
  
[Favorites-org.kde.plasma.kickoff.favorites.instance-3-2126853d-731e-4ccb-bdd6-8e00bf5a3ec0]
  
ordering=applications:systemsettings.desktop,applications:org.kde.dolphin.desktop,applications:org.kde.kate.desktop,applications:org.kde.discover.desktop,applications:blender.desktop,preferred://browser,applications:org.kde.krita.desktop,applications:fontforge.desktop,applications:gimp.desktop,applications:org.kde.okular.desktop
  
  [Favorites-org.kde.plasma.kickoff.favorites.instance-3-global]
  
ordering=systemsettings.desktop,org.kde.dolphin.desktop,org.kde.kate.desktop,org.kde.discover.desktop,blender.desktop,preferred://browser,org.kde.krita.desktop
  
  > You haven't updated kactivitymanagerd as I said?
  
  I updated all of frameworks, including kactivities and kactivities-stats, I 
assumed kactivitymanagerd is in there? :)

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-09-04 Thread Ivan Čukić
ivan added a comment.


  > Post-migration sorting still feels completely random - not sure how solid 
that feeling is though.
  
  Hmh. My test is - have three launchers with some favs shared, some not.
  
  After the port, all launchers have the same items on the top, with the new 
items added to the end. Do you have any speial URL formats in your original 
favorites (preferred: needed special treatment, that is why I'm asking)? Can 
you check whether the plasma configuration file has the correct order?
  
  > Definitive bug:
  
  You haven't updated kactivitymanagerd as I said?

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-09-04 Thread Eike Hein
hein added a comment.


  And another round of testing:
  
  1. Post-migration sorting still feels completely random - not sure how solid 
that feeling is though. Note my test script is still the same - start with a 
Kickoff and a Kicker instance, append two different new favorites to each, drag 
the first and second default faves (respectively, i.e. #1 on the first applet, 
#2 on the second) between the two new ones, patch, restart Plasma. After that I 
would expect the list of favorites that was identical at the top of both 
favorite lists to remain there, and then for the sorting of the remainder to be 
somewhat jumbly ... but here I get something seemingly random at the top of the 
post-migration result.
  
  2. Definitive bug:
  3. Have two activities
  4. Add a favorite to the current activity
  5. Right-click it, check the other activity in the submenu
  6. Right-click it again, uncheck the current activity
  7. Expected: Favorite is now on the other activity (and only there); Actual 
result: Favorite has disappeared
  
  3. Warning that may be related:
  
  
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/kastatsfavoritesmodel.cpp:415:39:
 warning: unused parameter ‘currentActivity’ [-Wunused-parameter]
  
this, [&] (const QString ¤tActivity) {

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-09-02 Thread Ivan Čukić
ivan added a comment.


  The last patch supports Kickoff, Kicker and Dash. I've tested what I can, 
found an small issue in KAMD (update KAMD to latest master before testing) and 
it looks like we are on the finish line.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-09-02 Thread Ivan Čukić
ivan updated this revision to Diff 19108.
ivan edited the summary of this revision.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=19034&id=19108

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/appentry.cpp
  applets/kicker/plugin/appentry.h
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/code/tools.js
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/ActionMenu.qml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-09-02 Thread Ivan Čukić
ivan edited the summary of this revision.
ivan edited the test plan for this revision.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-09-02 Thread Eike Hein
hein added a comment.


  The Kickoff thing looks more like a model bug to me - there's a duplicate 
delegate for "Firefox", and one of them has a broken row index (-1). Stuff like 
that is usually the result of confusing the view with broken model transactions 
... the QML is very simple (that binding loop is a subitem of the delegate so 
it's not relevant to the placement) and just plain ListView really.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-31 Thread Ivan Čukić
ivan added a comment.


  > Good news: There's actually nothing to do on the favorite ids, Kicker 
already uses 
  >  KService::storageId as favorite id, which will be the menuId when it's 
available.
  
  Great :)
  
  > I didn't write the Kickoff UI code btw so I don't know about the empty 
places issue, but I can try to have a look,
  
  That would be much appreciated, so that I can find a ordering hack that works 
:)

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-31 Thread Ivan Čukić
ivan updated this revision to Diff 19034.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=18220&id=19034

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp
  applets/kickoff/package/contents/config/main.xml
  applets/kickoff/package/contents/ui/FullRepresentation.qml

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-31 Thread Eike Hein
hein added a comment.


  Good news: There's actually nothing to do on the favorite ids, Kicker already 
uses KService::storageId as favorite id, which will be the menuId when it's 
available.
  
  Due to Kai giving me https://bugs.kde.org/show_bug.cgi?id=351553 I thought 
this was an issue, but this is actually about the old Kickoff backend from 
before it was ported to Kicker.
  
  I didn't write the Kickoff UI code btw so I don't know about the empty places 
issue, but I can try to have a look,

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-31 Thread Ivan Čukić
ivan added a comment.


  This might be a hint:
  
contents/ui/KickoffItem.qml:191:9: QML Text: Binding loop detected for 
property "y"

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-31 Thread Ivan Čukić
ivan added a comment.


  Regarding Kickoff - it looks like there are some problems in its model 
handling:
  
  F3894000: Spectacle.m20682.png 
  
  This does not happen with Kicker, Dash nor the KAStats test application.
  
  The empty spaces seem to be empty spaces, not items without title and icon.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-31 Thread Eike Hein
hein added a comment.


  > I haven't managed to make this work. The problem is that the favourites are 
added asynchronously, and setting the ordering for a bunch of them at once 
fails because the items do not exist.
  
  Hmm ... are they added one-by-one? Maybe we need an atomic API to insert 
multiple at once and then they can be kept together as set in sorting?
  
  > The favorites mechanism adds whatever the FavoriteIdRule returns. Can you 
make the the apps model use the menuId, so that I can rebase this patch against 
that?
  
  Will try before weekend. We just have to be a bit careful that we can still 
handle existing URL-based config when matching up. Shouldn't be a problem, a la 
the approach taken in libtm.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-31 Thread Ivan Čukić
ivan added a comment.


  > The initial sorting of the migrated superset seems random. How is it done?
  
  I haven't managed to make this work. The problem is that the favourites are 
added asynchronously, and setting the ordering for a bunch of them at once 
fails because the items do not exist.
  
  > In https://phabricator.kde.org/D7561 we adjusted libtaskmanager to use 
applications: as URL whenever we're dealing with
  
  The favorites mechanism adds whatever the FavoriteIdRule returns. Can you 
make the the apps model use the menuId, so that I can rebase this patch against 
that?

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-30 Thread Eike Hein
hein added a comment.


  No, thatfeels even more convoluted :(. Let's keep the current patch UI and 
focus on merge, we'll talk to the VDG about the UI after.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-30 Thread Ivan Čukić
ivan added a comment.


  With icons:
  
  F3889043: Spectacle.a21410.png 

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-30 Thread Ivan Čukić
ivan added a comment.


  Like this?
  
  F3889018: Spectacle.P18010.png 

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-29 Thread Eike Hein
hein added a comment.


  > Do you want it in this patch, or to push this one and add the kickoff one 
asap?
  
  Let's do it in this one.
  
  > In order for me not to do any more guesswork, or to have any 
misunderstandings - what do you want this this submenu to have exactly.
  
  For the single-activity case: Just Add/Remove actions as now.
  
  Multi-activity case: I think there should always be simple actions for "Add 
to this activity" and "Remove from this activity" availble, and perhaps also a 
pair for "all activities", and the per-activity checkboxes should be a seperate 
section or one more level.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-29 Thread Ivan Čukić
ivan added a comment.


  > No Kickoff support: Personally I think we should actually migrate all 
applets at once.
  
  Do you want it in this patch, or to push this one and add the kickoff one 
asap?
  
  > I really dislike the submenu with the checkboxes, in particular for 
removing a favorite.
  
  In order for me not to do any more guesswork, or to have any 
misunderstandings - what do you want this this submenu to have exactly.
  
  > The initial sorting of the migrated superset seems random. How is it done?
  
  I'll see to keep the ordering
  
  > In https://phabricator.kde.org/D7561 we adjusted libtaskmanager to use 
applications: as URL whenever we're dealing with
  
  Will see about this

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-28 Thread Eike Hein
hein added a comment.


  I've tested now and things look good, the multi-activity-migration thing is 
solved. Here's my remaining concerns:
  
  - No Kickoff support: Personally I think we should actually migrate all 
applets at once. One of the main motivations for this is so users no longer 
unexpectedly lose favorites when swiching between applets using Alternatives. 
If Kickoff (the default applet) doesn't use it, that is not yet actually 
achieved. And since the missing support was based on a misunderstanding ...
  
  - I really dislike the submenu with the checkboxes, in particular for 
removing a favorite. It's just very complicated and hard to use, you need to 
uncheck a checkbox to remove. I know everybody is sick and tired of this merge 
taking so long, but I am really, really hesitant of shipping that to users. It 
sort-of is okay for windows because it's more like tagging there and remove is 
actually done by closing the window, but here it's incredibly awkward.
  
  - The initial sorting of the migrated superset seems random. How is it done?
  
  - In https://phabricator.kde.org/D7561 we adjusted libtaskmanager to use 
applications: as URL whenever we're dealing with a KService 
that returns a non-empty menuId() instead of KService::entryPath(). The 
approach taken is to accept both as input (rc file) but resolve the latter to 
applications: when possible and then use that for the model data roles. As 
adding a new launcher is done from the data roles, newly-added launchers are 
stored as applications:. That makes it a non-absolute path, which fixes cases 
like (a) apps (or the menu editor) making a copy of a .desktop file in $HOME to 
add/update data there and the Task Manager not noticing or (b) having a 
launcher point at a .desktop file in $HOME that disappears later (e.g. menu 
editor reset). Kicker still uses entryPath so it suffers from both problems. 
I'd like this adjustment done here as well, using more or less the same 
approach, and I think it would make sense as part of this patch maybe because 
I'm not sure how it will affect your migration and so we don't add outdated 
stuff to the KAStats db in the first place that would need to be rewritten 
later otherwise?

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-28 Thread Eike Hein
hein added a comment.


  > We can schedule Kickoff for the +1 release - Kicker/Dash would be a nice 
test for the whole thing.
  
  Sounds reasonable, but are you sure you can handle migration then, too? E.g. 
on a patch with this system migration would have already run for two applets 
and then one release later fave changes from not-transitoned Kickoff instances 
would need to be migrated in, can you make that work?

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-28 Thread Eike Hein
hein added a comment.


  Possibly, will test over night (I missed the update).

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-28 Thread Marco Martin
mart added a comment.


  a periodic check on this.. ping?
  can be merged now?

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-16 Thread Ivan Čukić
ivan added a comment.


  p.s. Transitioned items go to all activities and the documents are supported 
in the current patch.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-16 Thread Ivan Čukić
ivan added a comment.


  > Hmm I think the Kickoff thing might have been a misunderstanding, or maybe 
I was full of crap then?
  
  Maybe both :P :D
  
  We can schedule Kickoff for the +1 release - Kicker/Dash would be a nice test 
for the whole thing.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-16 Thread Ivan Čukić
ivan updated this revision to Diff 18220.
ivan edited the summary of this revision.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=16733&id=18220

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/computermodel.h.orig
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-16 Thread Eike Hein
hein added a comment.


  Hmm I think the Kickoff thing might have been a misunderstanding, or maybe I 
was full of crap then? I can't think of why I'd request that ... not having 
this in our default menu would sort of mean most users never get to use it :)

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-16 Thread Ivan Čukić
ivan added a comment.


  > The result of the migration is now the superset of all faves, but sorting 
is a bit weird (maybe this is the best possible?)
  
  Not sure we can do anything about that unfortunately.
  
  > However it only ends up on my first activity, the other activity was 
migrated to zero faves - put the migration result on all activities?
  
  I'll see what is going on there. The initial patch was to put the result on 
all activities.
  
  > No support in Kickoff it seems
  
  No. Some time ago you mentioned you'd like Kickoff to remain as is.
  
  > Dash suppot document faves as well
  
  Had no idea about this. Will test.
  
  > UI design note: Even though I'm nerdy enough to understand the checkbox 
stuff,
  
  The check-boxes are there to mimic the activities menu in KWin. I'm not fond 
of them either, but it is either that, or change the checkboxes to something 
else everywhere - we need to be consistent.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-08 Thread Eike Hein
hein added a comment.


  UI design note: Even though I'm nerdy enough to understand the checkbox 
stuff, sometimes I want to remove a favorite and spend two seconds of confusion 
looking for a Remove action ...

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-04 Thread Eike Hein
hein added a comment.


  I'll now run with this revision of the patch for a while, but please look 
into the above / reply! :)

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-04 Thread Eike Hein
hein added a comment.


  I was on activity 2 and adding some faves on dash from the Recent apps 
section, and the second fav I added had the same icon as the first fav I added, 
even though it was for a different app. Switching to the first activity and 
back to 2 fixed the icon. Could be a Qt Quick issue ... or could be the model 
implementing data roles wrong somehow.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-08-04 Thread Eike Hein
hein added a comment.


  No longer crashing!
  
  Remaining concerns after repeating tests:
  
  - The result of the migration is now the superset of all faves, but sorting 
is a bit weird (maybe this is the best possible?)
  - However it only ends up on my first activity, the other activity was 
migrated to zero faves - put the migration result on all activities?
  - No support in Kickoff it seems
  - The task description mentions only apps and contacts are handled, but 
Kicker and Dash suppot document faves as well

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-16 Thread Eike Hein
hein added a comment.


  I'm on vacation Mon-Wed and then travelling. I don't know yet when I can test 
again. I'm currently wary of touching my system too much because I need it to 
stay reliable as a demo machine for my presentation. If someone else can test 
for the crash using the steps above, please do.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-15 Thread Ivan Čukić
ivan updated this revision to Diff 16733.
ivan added a comment.


  This was a referse-murphy - the second I posted that I can not find the 
reason behind the crash, I managed. Can you try the current revision whether it 
crashes or not?

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=15872&id=16733

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/abstractentry.cpp
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-15 Thread Ivan Čukić
ivan added a comment.


  I've finally managed to reproduce the crash (clean install, clean build, 
clean everything). I still do not see what is the cause of it...

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-05 Thread Marco Martin
mart added a comment.


  I tried the patch, and i'm getting a crash as well, tough a bit different:
  #0  0x7fff39b74cf5 in 
KAStatsFavoritesModel::Private::removeOldCachedEntries() const () from 
/opt/kde5/qml/org/kde/plasma/private/kicker/libkickerplugin.so
  #1  0x7fff39b7377a in KAStatsFavoritesModel::isFavorite(QString const&) 
const () from /opt/kde5/qml/org/kde/plasma/private/kicker/libkickerplugin.so
  #2  0x7fff39b96814 in InvalidAppsFilterProxy::filterAcceptsRow(int, 
QModelIndex const&) const ()
  
from /opt/kde5/qml/org/kde/plasma/private/kicker/libkickerplugin.so
  
  #3  0x70e2892a in QSortFilterProxyModelPrivate::create_mapping 
(this=0x1188af0, source_parent=...) at itemmodels/qsortfilterproxymodel.cpp:343
  #4  0x70e2e7e4 in QSortFilterProxyModel::rowCount (this=0x1188ac0, 
parent=...) at itemmodels/qsortfilterproxymodel.cpp:1878
  #5  0x7fff39b784f1 in ForwardingModel::rowCount(QModelIndex const&) const 
() from /opt/kde5/qml/org/kde/plasma/private/kicker/libkickerplugin.so
  #6  0x7fff39b5bbf3 in AbstractModel::count() const () from 
/opt/kde5/qml/org/kde/plasma/private/kicker/libkickerplugin.so
  #7  0x7fff39b88b87 in GroupEntry::hasChildren() const () from 
/opt/kde5/qml/org/kde/plasma/private/kicker/libkickerplugin.so
  #8  0x7fff39b64a65 in AppsModel::data(QModelIndex const&, int) const () 
from /opt/kde5/qml/org/kde/plasma/private/kicker/libkickerplugin.so
  #9  0x7fff39b89130 in RootModel::data(QModelIndex const&, int) const () 
from /opt/kde5/qml/org/kde/plasma/private/kicker/libkickerplugin.so
  #10 0x7452c63b in QModelIndex::data (this=0x7fff5ff0, arole=263)
  
at 
/home/diau/git/qt5/qtbase/include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:432
  
  #11 0x7452f08e in QQmlDMAbstractItemModelData::value (this=0x2b751e0, 
role=263) at util/qqmladaptormodel.cpp:420
  #12 0x74529d3a in QQmlDMCachedModelData::metaCall (this=0x2b751e0, 
call=QMetaObject::ReadProperty, id=12, arguments=0x7fff6150)
  
at util/qqmladaptormodel.cpp:292
  
  #13 0x7452ee7a in VDMModelDelegateDataType::metaCall (this=0x2b6e7f0, 
object=0x2b751e0, call=QMetaObject::ReadProperty, id=12, 
arguments=0x7fff6150)
  
at util/qqmladaptormodel.cpp:249
  
  #14 0x70e6dfef in QMetaObject::metacall (object=0x2b751e0, 
cl=QMetaObject::ReadProperty, idx=12, argv=0x7fff6150) at 
kernel/qmetaobject.cpp:299
  #15 0x74744682 in QQmlPropertyData::readPropertyWithArgs 
(this=0x2b77f68, target=0x2b751e0, args=0x7fff6150)
  
at 
../../include/QtQml/5.8.1/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:312
  
  #16 0x747445c5 in QQmlPropertyData::readProperty (this=0x2b77f68, 
target=0x2b751e0, property=0x7fff61d0)
  
at 
../../include/QtQml/5.8.1/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:302
  
  #17 0x7473b2eb in loadProperty (v4=0x804360, object=0x2b751e0, 
property=...) at jsruntime/qv4qobjectwrapper.cpp:166
  #18 0x7473c003 in QV4::QObjectWrapper::getProperty (engine=0x804360, 
object=0x2b751e0, property=0x2b77f68, captureRequired=true)
  
at jsruntime/qv4qobjectwrapper.cpp:316
  
  #19 0x7473bc6e in QV4::QObjectWrapper::getQmlProperty 
(this=0x7fffd9b9d638, qmlContext=0x2be2a80, name=0x7fffd9b9d630,
  
revisionMode=QV4::QObjectWrapper::IgnoreRevision, hasProperty=0x0, 
includeImports=true) at jsruntime/qv4qobjectwrapper.cpp:279
  
  #20 0x7473e046 in QV4::QObjectWrapper::get (m=0x7fffd9b9d638, 
name=0x7fffd9b9d630, hasProperty=0x0) at jsruntime/qv4qobjectwrapper.cpp:625
  #21 0x746107b3 in QV4::Object::get (this=0x7fffd9b9d638, 
name=0x7fffd9b9d630, hasProperty=0x0)
  
at 
../../include/QtQml/5.8.1/QtQml/private/../../../../../src/qml/jsruntime/qv4object_p.h:326

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-04 Thread Eike Hein
hein added a comment.


  After the crash, the re-added Appdash seems to have the same favorites as the 
old Appdash instance had, which is still not the superset of the pre-migration 
favorites or anything, nor the same favorites as the Kickoff.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-04 Thread Eike Hein
hein added a comment.


  I get the crash also when removing and re-adding Appdash:
  
  Thread 1 (Thread 0x7f6573ed8dc0 (LWP 3060)):
  [KCrash Handler]
  #6  0x034d3d70 in  ()
  #7  0x7f64c813bb0c in KAStatsFavoritesModel::Private::data(QModelIndex 
const&, int) const (role=266, index=..., this=0x2e1a8c0) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/kastatsfavoritesmodel.cpp:159
  #8  0x7f64c813bb0c in 
KAStatsFavoritesModel::Private::removeOldCachedEntries() const (this=0x2e1a8c0) 
at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/kastatsfavoritesmodel.cpp:123
  #9  0x7f64c81393e5 in KAStatsFavoritesModel::isFavorite(QString const&) 
const (this=this@entry=0x444d0d0, id=...) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/kastatsfavoritesmodel.cpp:310
  #10 0x7f64c8154299 in InvalidAppsFilterProxy::filterAcceptsRow(int, 
QModelIndex const&) const (this=0x46237c0, source_row=, 
source_parent=...) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/recentusagemodel.cpp:94
  #11 0x7f657f986b10 in 
QSortFilterProxyModelPrivate::create_mapping(QModelIndex const&) const 
(this=this@entry=0x4838690, source_parent=...) at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:343
  #12 0x7f657f9884b3 in QSortFilterProxyModel::rowCount(QModelIndex const&) 
const (this=this@entry=0x46237c0, parent=...) at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:1878
  #13 0x7f64c813cb4b in ForwardingModel::rowCount(QModelIndex const&) const 
(this=this@entry=0x44d8db0, parent=...) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/forwardingmodel.cpp:116
  #14 0x7f64c813cb4b in ForwardingModel::rowCount(QModelIndex const&) const 
(this=, parent=...) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/forwardingmodel.cpp:116
  #15 0x7f6582d77948 in QQmlAdaptorModel::count() const (this=0x35c4338) at 
/home/eike/devel/src/qt5-build/qtbase/include/QtQml/5.9.1/QtQml/private/../../../../../../../qt5/qtdeclarative/src/qml/util/qqmladaptormodel_p.h:122
  #16 0x7f6582d77948 in QQmlDelegateModel::componentComplete() 
(this=0x34b7b70) at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/types/qqmldelegatemodel.cpp:338
  #17 0x7f65838e7472 in QQuickItemView::componentComplete() 
(this=0x34b78c0) at 
/home/eike/devel/src/qt5/qtdeclarative/src/quick/items/qquickitemview.cpp:1509

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-04 Thread Eike Hein
hein added a comment.


  Another full test write up.
  
  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.
  
  Test setup:
  
  1. Two activities are set up
  2. build git master
  3. log out
  4. from a tty, make a clean slate (SQL, delete appletsrc, delete statsrc)
  5. log in, add an Appdash widget in addition to the default Kickoff
  6. in both Kickoff and Appdash, add two more favorites in addition to the 
default set, making sure it's different extra favorites in each
  7. in Kickoff, drag the first default favorite (Firefox for me) inbetween the 
two manually added faves
  8. in Appdash, do the same with the second default favorite (System Settings)
  9. log out
  10. build the patch, log in
  
  What I expected:
  
  - All widgets having somehow the superset of the favorites of all widgets 
pre-migration so no favorites are los
  - All activities being initialized to the same migration result
  - Favorite order kinda-sorta somehow reflecting the pre-migration state of 
things
  
  What I actually got:
  
  - Kickoff had the same favorites as pre-migration, none of the Appdash ones, 
and in the pre-migration order
  - 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
  - In the second activity, Appdash has no favorites at all
  - 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)
  
  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.
  
  To conclude, the migration results seem broken and random, with different 
results by widget and activity, and adding favorites is similarly weird.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-03 Thread Eike Hein
hein added a comment.


  Another crash, this time a while after running with migrated favourites:
  
  Thread 1 (Thread 0x7f8ef082cdc0 (LWP 8048)):
  [KCrash Handler]
  #6  0x7f8e44c0dcf8 in 
KAStatsFavoritesModel::Private::removeOldCachedEntries() const 
(this=0x40fc41c800) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/kastatsfavoritesmodel.cpp:122
  #7  0x7f8e44c0c3e5 in KAStatsFavoritesModel::isFavorite(QString const&) 
const (this=this@entry=0x4f255b0, id=...) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/kastatsfavoritesmodel.cpp:310
  #8  0x7f8e44c27299 in InvalidAppsFilterProxy::filterAcceptsRow(int, 
QModelIndex const&) const (this=0x7f5de90, source_row=, 
source_parent=...) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/recentusagemodel.cpp:94
  #9  0x7f8efc2dab10 in 
QSortFilterProxyModelPrivate::create_mapping(QModelIndex const&) const 
(this=this@entry=0xb661410, source_parent=...) at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:343
  #10 0x7f8efc2dc4b3 in QSortFilterProxyModel::rowCount(QModelIndex const&) 
const (this=, parent=...) at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:1878
  #11 0x7f8efc2daad5 in 
QSortFilterProxyModelPrivate::create_mapping(QModelIndex const&) const 
(this=this@entry=0x6f620f0, source_parent=...) at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:340
  #12 0x7f8efc2db9ea in 
QSortFilterProxyModelPrivate::update_source_sort_column() 
(this=this@entry=0x6f620f0) at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:470
  #13 0x7f8efc2dc130 in 
QSortFilterProxyModelPrivate::_q_sourceLayoutChanged(QList
 const&, QAbstractItemModel::LayoutChangeHint) (this=0x6f620f0, 
sourceParents=..., hint=) at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:1374
  #14 0x7f8efc2e03f3 in QSortFilterProxyModel::qt_static_metacall(QObject*, 
QMetaObject::Call, int, void**) (_o=, _c=, 
_id=, _a=) at 
.moc/moc_qsortfilterproxymodel.cpp:209
  #15 0x7f8efc3422ba in QMetaObject::activate(QObject*, int, int, void**) 
(sender=0x7f5de90, signalOffset=, 
local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd378f9b20) 
at /home/eike/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3766
  #16 0x7f8efc3429c7 in QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (sender=, m=m@entry=0x7f8efc5d25e0 
, 
local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd378f9b20) 
at /home/eike/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3628
  #17 0x7f8efc2b4436 in 
QAbstractItemModel::layoutChanged(QList const&, 
QAbstractItemModel::LayoutChangeHint) (this=, _t1=..., 
_t2=) at .moc/moc_qabstractitemmodel.cpp:582
  #18 0x7f8efc2dbfae in QSortFilterProxyModel::invalidate() () at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:2518
  #19 0x7f8e44c262ec in InvalidAppsFilterProxy::connectNewFavoritesModel() 
(this=0x7f5de90) at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/recentusagemodel.cpp:80
  #20 0x7f8efc3423bc in QtPrivate::QSlotObjectBase::call(QObject*, void**) 
(a=0x7ffd378f9c50, r=0x7f5de90, this=0xb730b00) at 
../../include/QtCore/../../../../qt5/qtbase/src/corelib/kernel/qobject_impl.h:101
  #21 0x7f8efc3423bc in QMetaObject::activate(QObject*, int, int, void**) 
(sender=0xb722b10, signalOffset=, local_signal_index=, argv=) at 
/home/eike/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3749
  #22 0x7f8e44c3189e in AbstractModel::qt_static_metacall(QObject*, 
QMetaObject::Call, int, void**) (_o=, _c=, 
_id=, _a=0x7ffd378f9d60) at 
/home/eike/devel/build/kde/workspace/plasma-desktop/applets/kicker/kickerplugin_autogen/7RBZBFH7CH/moc_abstractmodel.cpp:224
  #23 0x7f8eff690f1d in QQmlPropertyData::writeProperty(QObject*, void*, 
QFlags) const (flags=..., value=, 
target=, this=) at 
/home/eike/devel/src/qt5-build/qtbase/include/QtQml/5.9.1/QtQml/private/../../../../../../../qt5/qtdeclarative/src/qml/qml/qqmlpropertycache_p.h:320
  #24 0x7f8eff690f1d in QObjectPointerBinding::write(QV4::Value const&, 
bool, QFlags) (this=0x5e357d0, result=..., 
isUndefined=, flags=...) at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/qml/qqmlbinding.cpp:585
  #25 0x7f8eff692016 in 
QQmlNonbindingBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, 
QFlags, QV4::Scope&) (this=0x5e357d0, watcher=..., 
flags=..., scope=...) at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/qml/qqmlbinding.cpp:210
  #26 0x7f8eff68ef73 in 
QQmlBinding::update(QFlags) (this=0x5e357d0, 
flags=...) at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/qml/qqmlbinding.cpp:167
  #27 0x7f8eff69a7ab in 
QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) (this=0x5ab5490, 
int

D3805: Per-activity favorites (Final, again?)

2017-07-03 Thread Eike Hein
hein added a comment.


  Adding new favorites works. However, starting with the blank favorites I did 
the following:
  
  1. Add a favorite on all activities
  2. Add a favorite specific to the current activity
  3. Add another favorite on all activities
  
  I've noticed that for both #2 and #3, the new favorite was inserted at the 
start of the favorites list. The unpatched behavior is to append rather than 
prepend new favorites.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-03 Thread Eike Hein
hein added a comment.


  Here's what I tried to do today:
  
  1. Set up Kicker and Appdash with different favorites
  2. Patch, install
  3. Log out, log in
  
  Then I got the crash above.
  
  4. Switch back to master, log out and back in, still have the two widgets 
with different faves
  5. Log out
  6. Build patch again
  7. Delete kactivitymanager-statcrc and run the delete from ResourceLink SQL 
thingie
  8. Log back in
  
  No crash this time. But: Neither Kicker nor Appdash have any favorites, 
nothing was migrated.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-03 Thread Eike Hein
hein added inline comments.

INLINE COMMENTS

> main.xml:48
> +
> +  Are the favorites ported to use KActivitiesStats to allow 
> per-activity favorites
> +  false

Pedantic: Broken grammar

> SideBarItem.qml:59
>  onActionClicked: {
> +console.log(actionId + "<-- this is the id");
>  actionTriggered(actionId, actionArgument);

Not a fan of debug stuff that's not really understandable without context ... 
lets take the console.log() calls out when finalizing the patch.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-03 Thread Eike Hein
hein added a comment.


  Reproducable crash:
  
  #0  0x7fff28407f06 in 
KAStatsFavoritesModel::Private::removeOldCachedEntries() const (this=0x3266e40)
  
at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/kastatsfavoritesmodel.cpp:130
  
  #1  0x7fff284063e5 in KAStatsFavoritesModel::isFavorite(QString const&) 
const (this=this@entry=0x317fe70, id=...)
  
at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/kastatsfavoritesmodel.cpp:310
  
  #2  0x7fff28421299 in InvalidAppsFilterProxy::filterAcceptsRow(int, 
QModelIndex const&) const (this=0x33c10b0, source_row=, 
source_parent=...)
  
at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/recentusagemodel.cpp:94
  
  #3  0x718b5b10 in 
QSortFilterProxyModelPrivate::create_mapping(QModelIndex const&) const 
(this=this@entry=0x33c60a0, source_parent=...)
  
at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:343
  
  #4  0x718b74b3 in QSortFilterProxyModel::rowCount(QModelIndex const&) 
const (this=this@entry=0x33c10b0, parent=...)
  
at 
/home/eike/devel/src/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:1878
  
  #5  0x7fff28409b4b in ForwardingModel::rowCount(QModelIndex const&) const 
(this=this@entry=0x33c54b0, parent=...)
  
at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/forwardingmodel.cpp:116
  
  #6  0x7fff28409b4b in ForwardingModel::rowCount(QModelIndex const&) const 
(this=, parent=...)
  
at 
/home/eike/devel/src/kde/workspace/plasma-desktop/applets/kicker/plugin/forwardingmodel.cpp:116
  
  #7  0x74ca6948 in QQmlAdaptorModel::count() const (this=0x34c7068)
  
at 
/home/eike/devel/src/qt5-build/qtbase/include/QtQml/5.9.1/QtQml/private/../../../../../../../qt5/qtdeclarative/src/qml/util/qqmladaptormodel_p.h:122
  
  #8  0x74ca6948 in QQmlDelegateModel::componentComplete() 
(this=0x34c6290) at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/types/qqmldelegatemodel.cpp:338
  #9  0x75816472 in QQuickItemView::componentComplete() 
(this=0x34c57a0) at 
/home/eike/devel/src/qt5/qtdeclarative/src/quick/items/qquickitemview.cpp:1509
  #10 0x74c758bd in 
QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) (this=0x33f21c0, 
interrupt=...)
  
at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1236
  
  #11 0x74bf7d44 in QQmlComponentPrivate::complete(QQmlEnginePrivate*, 
QQmlComponentPrivate::ConstructionState*) (enginePriv=0x843890, state=0x33f2170)
  
at /home/eike/devel/src/qt5/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:900
  
  #12 0x74bf7e07 in QQmlComponentPrivate::completeCreate() 
(this=0x33f20d0) at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:936
  #13 0x74c925a1 in 
QV4::QtObject::method_createQmlObject(QV4::BuiltinFunction const*, QV4::Scope&, 
QV4::CallData*) (scope=..., callData=)
  
at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/qml/v8/qqmlbuiltinfunctions.cpp:1167
  
  #14 0x74bd5fda in QV4::Object::call(QV4::Scope&, QV4::CallData*) 
const (d=0x7fffcf0006f0, scope=..., this=)
  
at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/jsruntime/qv4object_p.h:372
  
  #15 0x74bd5fda in 
QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, int, QV4::CallData*) 
(engine=0x843da0, nameIndex=, callData=0x7fffcf0006f0)
  
at 
/home/eike/devel/src/qt5/qtdeclarative/src/qml/jsruntime/qv4runtime.cpp:1102
  
  Do I need to clean up anything?

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-03 Thread Ivan Čukić
ivan edited the test plan for this revision.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-03 Thread Ivan Čukić
ivan added a comment.


  True, I haven't updated the branch - had more than a few sub-branches since 
the last update.
  
  The diff here is the proposed solution for all my problems ;)
  
  The last comment was just that I've added the test to the review itself (the 
"Test Plan" part).

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-03 Thread Eike Hein
hein added a comment.


  I'm a little confused by the last comment - the branch in the repo hasn't 
been updated in four months, so the new testing location seems to be the diff 
again, yet there's a "I added a test" comment with no diff change ... :)
  
  Anyways, I'll review the diff here.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-02 Thread Ivan Čukić
ivan edited the test plan for this revision.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-07-02 Thread Ivan Čukić
ivan added a comment.


  I've just added another test - having a custom kicker plasmoidsetupscript and 
putting kicker to be the default launcher on a blank user loads the favourites 
from said plasmoidsetupscript.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-06-26 Thread Marco Martin
mart added a comment.


  api-wise i like the concept of initForClient, +1

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-06-26 Thread Ivan Čukić
ivan edited the test plan for this revision.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-06-26 Thread Ivan Čukić
ivan edited the summary of this revision.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-06-26 Thread Ivan Čukić
ivan updated this revision to Diff 15872.
ivan added a comment.


  I realized I can be quite thick.
  
  After I created a new level of indirection so that each applet can have its 
own favourite ordering (as requested), I realized I reimplemented most of the 
logic of `KAStats::ResultModel` inside of Kicker, but with the 
`QSortFilterProxyModel` which did not work correctly (Kicker does not like 
whole model updates on drag and drop).
  
  This is a new and beautiful approach that relies on the ordering implemented 
in the `KAStats::ResultModel` - just with each applet registering as a separate 
client.
  
  I need to test this properly, and I'd like for everyone to join in with the 
testing.
  
  Everything is much cleaner now - both favourites merging and reordering.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=15771&id=15872

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/SideBarItem.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-06-23 Thread Ivan Čukić
ivan updated this revision to Diff 15771.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=12409&id=15771

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/config/main.xml
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/SideBarItem.qml
  applets/kicker/package/contents/ui/main.qml
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp

To: ivan, mart, hein
Cc: Zren, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart, lukas


D3805: Per-activity favorites (Final, again?)

2017-04-05 Thread Marco Martin
mart added a comment.


  In https://phabricator.kde.org/D3805#99934, @hein wrote:
  
  > Personally I think the simplest behavior is to keep the ordering separate 
for every activity and make no attempt to sync the order. When a new activity 
is created, the order should probably be copied from the currently active 
activity.
  
  
  +1, ordering sounds more like a view thing to me

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D3805: Per-activity favorites (Final, again?)

2017-04-05 Thread Eike Hein
hein added a comment.


  In my latest round of testing the behavior is much better and I can't run 
into issues as easily anymore.
  
  I'm still a bit distrustful of the way ordering changes work though. One time 
during testing, I drag-reordered a favorite on all activities to a new 
position, and when I switched activities it had moved position on the other 
activity as well. Later the same favorite suddenly moved to the end of the list 
(or maybe the original position, not sure) on both activities. Other times, 
ordering changes of favorites shared by activities aren't synched across 
activities and fully independent.
  
  Personally I think the simplest behavior is to keep the ordering separate for 
every activity and make no attempt to sync the order. When a new activity is 
created, the order should probably be copied from the currently active activity.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D3805: Per-activity favorites (Final, again?)

2017-04-05 Thread Eike Hein
hein added a comment.


  > echo "delete from ResourceLink" | sqlite3 
~/.local/share/kactivitymanagerd/resources/database
  
  This gets me "incomplete SQL", please update~

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D3805: Per-activity favorites (Final, again?)

2017-04-03 Thread Eike Hein
hein added a comment.


  We discussed migration during today's Plasma weekly meeting, here's the log:
  
  ‎[19:23] ‎<‎Sho_‎>‎ anyhooow
  ‎[19:23] ‎<‎Sho_‎>‎ next there's two tricky things i wanted to inquire about 
because they need some team think
  ‎[19:24] ‎<‎Sho_‎>‎ the first is, ivan's been working on making kicker 
favorites kastats-based, which makes them per-activity, but also global and 
shared across all launcher instances
  ‎[19:24] ‎<‎Sho_‎>‎ the work has been progressing nicely and is getting 
closer to being merged
  ‎[19:24] ‎<‎Sho_‎>‎ but i'm concerned about the migration process
  ‎[19:25] ‎<‎Sho_‎>‎ right now the way migration works is that the first 
kicker-based launcher that kicks it off gets its favorites migrated, and then 
all others use the migrated favorites
  ‎[19:25] ‎<‎Sho_‎>‎ which means there's a russian roulette race picking which 
faves to migrate and all the others get lost
  ‎[19:25] ‎<‎Sho_‎>‎ i don't think that's good enough, but it's hard to code 
up something else
  ‎[19:25] ‎<‎Sho_‎>‎ what do we do?
  ‎[19:25] ‎<‎notmart‎>‎ so cases with multiple kickers with different 
favorites will be extremely rare, but the handful of users that have it will 
have it broken
  ‎[19:26] ‎<‎Sho_‎>‎ not that rare actually
  ‎[19:26] ‎<‎Sho_‎>‎ quite a few users use a regular kicker + dashboard with 
diff faves
  ‎[19:26] ‎<‎Sho_‎>‎ (in fact, i expect angry bug reports about forcing them 
to be shared soon)
  ‎[19:26] ‎<‎notmart‎>‎ another thing, would be on plasma size completely 
forget about whatever is stored, but have another process (a kconfigupdate?)
  ‎[19:26] ‎<‎notmart‎>‎ that runs first and scans the whole configuration file
  ‎[19:27] ‎<‎notmart‎>‎ then "merges" the favorites in one big lists and dumps 
it into kastats?
  ‎[19:27] ‎<‎Sho_‎>‎ that sounds pretty good
  ‎[19:27] ‎<‎Sho_‎>‎ we'd still lose sorting, but at least get the superset
  ‎[19:27] ‎<‎d_ed‎>‎ why make it another process?
  ‎[19:27] ‎<‎d_ed‎>‎ plasma has it's own scripted updates
  ‎[19:27] ‎<‎Sho_‎>‎ it has? :D
  ‎[19:27] ‎<‎notmart‎>‎ ah, as a scripted updated
  ‎[19:27] ‎<‎notmart‎>‎ hm, yeah
  ‎[19:28] ‎<‎Sho_‎>‎ (fwiw, i'll dump this chat log into the phab ticket for 
the thing so ivan is in the loop later)
  ‎[19:28] ‎<‎Sho_‎>‎ i think we at the very least need the superset migration, 
data loss is imho not an option
  ‎[19:28] ‎<‎d_ed‎>‎ ShellCorona::processUpdateScripts()
  ‎[19:28] ‎<‎notmart‎>‎ a scripted updated may also be executed at the proper 
moment
  ‎[19:29] ‎<‎notmart‎>‎ tough, is there any desktop scripting way to populate 
that?
  ‎[19:29] ‎<‎d_ed‎>‎ to populate the activities DB?
  ‎[19:29] ‎<‎notmart‎>‎ (that -> favorites in kastats)
  ‎[19:29] ‎<‎Sho_‎>‎ i suddenly felt a dejavu
  ‎[19:29] ‎<‎Sho_‎>‎ i think i remember telling ivan we need a kastats 
scripting api to populate global favs in plasma scripting
  ‎[19:29] ‎<‎Sho_‎>‎ also for isv default favs ...
  ‎[19:30] ‎<‎Sho_‎>‎ because i don't know how he intends to do distro default 
favs
  ‎[19:30] ‎* ‎Sho_‎‎ is getting concerned we can really do this for 5.10 
still, even as advanced as the work is, and sponsor pressure to get it in
  ‎[19:31] ‎<‎Sho_‎>‎ and tbh, as i said as far as 1-2 years ago, i'm still not 
even sure forcing all launchers to have the same favs is good and serves all 
users correctly
  ‎[19:31] ‎<‎notmart‎>‎ are there places other people can work on?
  ‎[19:31] ‎<‎Sho_‎>‎ sure
  ‎[19:31] ‎<‎Sho_‎>‎ it's in a branch, so if you e.g. want to take a stab at 
the migration stuff, i'm sure ivan would appreciate it (and me)
  ‎[19:31] ‎<‎Sho_‎>‎ the phab ticket is also up to date with all our testing 
correspondence and debuging/testing instructions
  ‎[19:31] ‎<‎Sho_‎>‎ and even a testcase list
  ‎[19:32] ‎<‎notmart‎>‎ again, would need api from desktop scripting tough
  ‎[19:32] ‎<‎notmart‎>‎ but yeah, i can look into that
  ‎[19:33] ‎<‎Sho_‎>‎ thanks
  ‎[19:33] ‎<‎Sho_‎>‎ let's try to stay on that ball throughout this week
  [...]
  [19:36] ‎<‎d_ed‎>‎ Sho_: got a branch name?
  ‎[19:36] ‎<‎d_ed‎>‎ and/or phab link
  ‎[19:38] ‎<‎notmart‎>‎ how is the logic? after how many windows/what size 
should it get a scrollbar?
  ‎[19:38] ‎<‎Sho_‎>‎ d_ed: for the dialog or the faves?
  ‎[19:38] ‎<‎llucas‎>‎ What about backporting a fix for system settings crash 
with qt 5.7.1?
  ‎[19:38] ‎<‎Sho_‎>‎ notmart: the dialog is limited to like one third of 
screen height or something
  ‎[19:39] ‎<‎notmart‎>‎ in master, getting the scrollbar correctly
  ‎[19:39] ‎<‎Sho_‎>‎ d_ed: ivan/new-favourites-per-activity in plasma-desktop 
+ https://phabricator.kde.org/D3805
  ‎[19:39] ‎<‎sKreamer‎>‎ Diff 3805 "Per-activity favorites (Final, again?)" 
[Needs Review] https://phabricator.kde.org/D3805

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D3805: Per-activity favorites (Final, again?)

2017-04-03 Thread Marco Martin
mart added a comment.


  migration:
  can this be accessed by desktop scripting somehow? then it becomes easy
  
  also: this would be needed as well for custom favorites in distributions, 
that is a needed thing as well in order to be shipped

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D3805: Per-activity favorites (Final, again?)

2017-03-27 Thread Ivan Čukić
ivan added a comment.


  p.s. I haven't tested the patch since posting - it is possible that some 
change in plasma broke the thing (like the problematic change that got reverted)

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D3805: Per-activity favorites (Final, again?)

2017-03-27 Thread Ivan Čukić
ivan added a comment.


  
  
  > Could you document here how to reset all state so I can re-test migration 
on a clean base?
  
  
  
  1. kill plasma and kamd
  2. rm .config/kactivitymanagerd-statsrc
  3. echo "delete from ResourceLink" | sqlite3 
~/.local/share/kactivitymanagerd/resources/database
  4. restart kamd and plasma
  
  This should be it.
  
  > Did you do any work yet on migrating as a superset instead of just the 
first launcher roulette?
  
  Unfortunately, I don't see a valid way to do this without accessing the 
related configuration files directly.

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D3805: Per-activity favorites (Final, again?)

2017-03-27 Thread Eike Hein
hein added a comment.


  Could you document here how to reset all state so I can re-test migration on 
a clean base?
  
  Did you do any work yet on migrating as a superset instead of just the first 
launcher roulette?

REVISION DETAIL
  https://phabricator.kde.org/D3805

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D3805: Per-activity favorites (Final, again?)

2017-03-12 Thread Ivan Čukić
ivan updated this revision to Diff 12409.
ivan retitled this revision from "Per-activity favorites (Final?)" to 
"Per-activity favorites (Final, again?)".
ivan edited the test plan for this revision.
ivan added a comment.


  **requires kactivities-stats master**

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D3805?vs=12174&id=12409

REVISION DETAIL
  https://phabricator.kde.org/D3805

AFFECTED FILES
  CMakeLists.txt
  applets/kicker/CMakeLists.txt
  applets/kicker/package/contents/code/tools.js
  applets/kicker/package/contents/ui/ActionMenu.qml
  applets/kicker/package/contents/ui/SideBarItem.qml
  applets/kicker/plugin/computermodel.cpp
  applets/kicker/plugin/computermodel.h
  applets/kicker/plugin/favoritesmodel.cpp
  applets/kicker/plugin/favoritesmodel.h
  applets/kicker/plugin/kastatsfavoritesmodel.cpp
  applets/kicker/plugin/kastatsfavoritesmodel.h
  applets/kicker/plugin/kickerplugin.cpp
  applets/kicker/plugin/placeholdermodel.cpp
  applets/kicker/plugin/placeholdermodel.h
  applets/kicker/plugin/recentusagemodel.cpp
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h
  applets/kicker/plugin/simplefavoritesmodel.cpp
  applets/kicker/plugin/simplefavoritesmodel.h
  applets/kicker/plugin/systemmodel.cpp

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol