Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some cherry-picks from Notifications v2 (!1298) #1386

Conversation

GeorgesStavracas
Copy link
Member

Uncontroversial commits with mostly testing improvements

jsparber and others added 4 commits June 25, 2024 17:17
Adding a notification may fail, instead of waiting for the timeout
we can check the result we get in the callback.

Co-authored-by: Georges Basile Stavracas Neto <feaneron@igalia.com>
For debugging it's important that the backend doesn't just crash without
telling the reason. It would be even nicer if the test would fail
immediately instead of hitting the timeout, but that' currently not
possible since the client doesn't know whether the backend failed.
We can reuse most of the test setup for all tests. This will make it
easier to test more properties.

Co-authored-by: Georges Basile Stavracas Neto <feaneron@igalia.com>
This filters unsupported properties from a notification request without
failing it. This allows backwards compatibility after adding new
properties. This should had been the case from the beginning so that we
don't have to break API when extending the notification interface. See
[1].

[1] https://dbus.freedesktop.org/doc/dbus-api-design.html#extensibility

Co-authored-by: Georges Basile Stavracas Neto <feaneron@igalia.com>
@swick
Copy link
Contributor

swick commented Jun 25, 2024

CI also isn't happy

@GeorgesStavracas GeorgesStavracas force-pushed the gbsneto/notifications-v2-cherrypicks-pt1 branch from 7b4ba49 to 331300c Compare June 25, 2024 21:53
jsparber and others added 5 commits June 25, 2024 19:03
Co-authored-by: Georges Basile Stavracas Neto <feaneron@igalia.com>
This allows setting a custom path for the icon validator, especially
useful when testing without installing.
The sandbox for the icon-validator needs a privileged container.
And it needs librsvg to be able to validate SVGs.
If debug messages are turned on the output of validate-icon isn't a
valid key file since it contains log output as well.
@GeorgesStavracas GeorgesStavracas force-pushed the gbsneto/notifications-v2-cherrypicks-pt1 branch from 331300c to 6bad17d Compare June 25, 2024 22:03
@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Jun 25, 2024
@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Jun 25, 2024
Merged via the queue into flatpak:main with commit e34c577 Jun 25, 2024
4 checks passed
@GeorgesStavracas GeorgesStavracas deleted the gbsneto/notifications-v2-cherrypicks-pt1 branch June 25, 2024 22:10
@GeorgesStavracas GeorgesStavracas added tests Test suite portal: notifications Notifications portal labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
portal: notifications Notifications portal tests Test suite
Projects
Status: Triaged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants