Files
snapd/tests/main
Michael Vogt 218b5abbaa snapstate: notify user when refresh-app-awareness snap finished (#12715)
* snapstate: notify user when refresh-app-awareness snap refreshed

This is a minimal commit to show a notification when a refresh that
was triggered by the user closing an application is now ready
to use.

* {iface,snap}state: make LinkParticipant pass a *SnapSetup

* snapstate: use notifyLinkParticipant mechanism to trigger finish notification

* agentnotify: move agent notification into their own package

* snapstate: make AutoRefresh() take *AutoRefreshOptions

* agentnotify: import from overlord to ensure linkParticipant handler gets registered

* tests: add new refresh-app-awareness-notify spread test

* snapstate: fix unreachable code

* tests: move from wormhole to test-snapd-sh in refresh-app-awareness-notify

* agentnotify: send notification when snap starts to refresh

* usersession: tweak wording when refresh is ready (thanks to Oliver)

* usersession: actually add the missing finishRefreshNotificationCmd endpoint

* snap: disable graphicalSessionFlow() to avoid confusion

It's unclear if this flow ever worked and the finish-refresh
part for sure never worked because in the userd the API for
finish-notification was not wired in.

This needs to be re-examined when we have a proper UX design.

* usersession: show notification when update is finished (thanks to Oliver)

* agentnotify: remove uneeded notifyUnlinkSnap()

After a quick sync with Oliver the decision was taken to have
just a notification message when the snap refresh is finished
and not when it starts to avoid too many user distractions.

* usersession: tweak wording when refresh is ready (thanks to Oliver)

* agentnotify: remove unneeded comment

* usersession: one more wording tweak (thanks to Oliver)

* agentnotify: add missing unit test

* snapstate: add test that ensures the snapsup.Flags.IsContinuedAutoRefresh is set

* snapstate: add TODO

* many: tweak wordings/comment/variable names (thanks to Miguel)

* tests: simplify refresh-app-awareness-notify test (thanks to Miguel)

* tests: fix quoting in test

* snap: simplify how inhibit worflow inhibited

* tests: tweak tests and ensure "jq" is installed

* agent: fix unit test error
2023-04-18 14:35:47 +02:00
..
2021-06-09 18:03:24 -03:00
2021-05-17 19:11:12 -03:00
2021-04-13 07:13:20 -03:00
2021-09-16 19:01:39 +01:00
2021-05-26 14:29:24 -03:00
2022-09-28 16:38:27 +02:00
2021-04-21 09:08:50 -03:00
2021-03-10 08:41:31 -03:00
2021-04-21 09:08:50 -03:00
2021-04-21 09:08:50 -03:00
2021-06-09 18:03:24 -03:00
2021-03-04 09:27:19 -03:00
2023-03-07 17:25:04 -03:00
2021-04-21 09:08:50 -03:00
2021-04-08 15:05:29 -03:00
2021-08-31 14:49:47 -03:00