server: kde plasma prompter support#371
Conversation
bilelmoussaoui
left a comment
There was a problem hiding this comment.
what are chances of mocking the plasma prompter like we have for gnome at https://github.com/bilelmoussaoui/oo7/blob/main/server/src/tests.rs#L210-L432? and we could potentially run the tests using first gnome prompter then the plasma one
|
Let me know if you need help pushing this forward, as i will be doing a new release the upcoming week or so :) |
|
Sorry, vacation got in the way ⛷️ 😄 |
de1c190 to
19fe595
Compare
e8d5078 to
77c15f1
Compare
77c15f1 to
6feabe1
Compare
|
Alrighty. New revision:
one big open topic is testing still |
6feabe1 to
59a90ac
Compare
|
Now also includes a mock prompter for testing. I am not a 100% happy with how the diff looks right now, certainly is very noisy, but I guess it's a start. There now is a I've somewhat clumsily forked a e.g. The static IS_PLASMA was reshuffled again and is now a thread local mutable so we can toggle plasma-behavior at runtime in tests. Looks a bit awkward. |
59a90ac to
1249854
Compare
311bc3c to
4418918
Compare
|
I've added some fmt fixes. Also I've renamed the features so we don't break backwards compatibility (and hopefully the CI actions pass :D): |
|
The CI is failing because of an update of zbus, please run |
Took care of that along with adding a gnome feature that disables everything gnome related |
4418918 to
903185b
Compare
|
All comments should be addressed. Seems the gnome conditionals broke for the tests. I've fixed it in my commit for now. |
going to be part of the upcoming Plasma 6.6 release
903185b to
c08d063
Compare
bilelmoussaoui
left a comment
There was a problem hiding this comment.
Will merge once the CI passes
|
Thanks a lot! |
|
Yay! Thank you for the reviews and patience 😃 |
|
@hsitter Hey there, it seems like the current tests never hit the "dismissed" code path, could you please add a test case / extend current one, to cover that? There is also a new https://linux-credentials.github.io/oo7/coverage/server/src/plasma/index.html might be useful. |
|
👍 It may take me a couple weeks to get to it though. |
|
No worries at all, thanks a lot |
the prompter UI currently lives at
https://invent.kde.org/mart/ksecretprompter and hopefully will make its way into plasma 6.6 (scheduled for february 2026)