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

Update get_notices "select=all" to "users=all" #1132

Closed
benhoyt opened this issue Feb 22, 2024 · 1 comment
Closed

Update get_notices "select=all" to "users=all" #1132

benhoyt opened this issue Feb 22, 2024 · 1 comment
Assignees
Labels
feature New feature or request ops-next To be done before shipping the next version of ops small item

Comments

@benhoyt
Copy link
Collaborator

benhoyt commented Feb 22, 2024

Per discussion with @olivercalder and Gustavo, we're going to change the select=all parameter in Pebble (and snapd) to users=all, and we should make the same change in pebble.Client.get_notices (as well as Container.get_notices). This is a breaking change, but it's almost certain that no one is using this yet (if anything they'll fetch the notice via event.notice for a custom event), so I think we should just go ahead and make the breaking change before it's too late, rather than try to alias everything and try to have fallbacks for different Pebble versions, and so on.

For reference, the spec for user-specific notices is OP042.

@benhoyt benhoyt added feature New feature or request small item labels Feb 22, 2024
@benhoyt benhoyt changed the title Update get_notices "select" to "users" Update get_notices "select=all" to "users=all" Feb 22, 2024
@olivercalder
Copy link
Member

The relevant PR for pebble is: canonical/pebble#368

@benhoyt benhoyt assigned benhoyt and IronCore864 and unassigned benhoyt Mar 8, 2024
@benhoyt benhoyt added the ops-next To be done before shipping the next version of ops label Mar 8, 2024
benhoyt pushed a commit that referenced this issue Mar 12, 2024
…1146)

Pebble added support for notices, aggregated events that are recorded with a type and key. The `/v1/notices` API had a parameter "select=all" to show notices for all users, and the parameter name is changed to "users=all" in recent [release v1.9.0](https://github.com/canonical/pebble/releases/tag/v1.9.0).

This PR is the corresponding changes to the ops framework.

Related doc: [OP042 - User ID features for Pebble Notices
](https://docs.google.com/document/d/1tQwUxz-rV-NjH-UodDbSDhGcMJGfD3OSoTnBLI9aoGU/edit#heading=h.kavgppauvkj5)

See here: #1132
@benhoyt benhoyt closed this as completed Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request ops-next To be done before shipping the next version of ops small item
Projects
None yet
Development

No branches or pull requests

3 participants