-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix(notices): replace "select=all" with "users=all" #368
fix(notices): replace "select=all" with "users=all" #368
Conversation
This is a backport of a fix from the snapd port of pebble notices. The original PR can be found at: canonical/snapd#13630 As snapd lacks a client or cli for notices, this commit also replaces "select" with "users" in the pebble client and cli. Signed-off-by: Oliver Calder <oliver.calder@canonical.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! Just for the record, we acknowledge this is a backwards-incompatible change, however, we think it's highly unlikely anyone has started using GET /v1/notices
especially with select=all
yet, so now's the time to change and break it.
Copying this from the snapd PR for context.
Per discussions with @niemeyer, @pedronis, and @olivercalder, we have decided to rename the select=all query parameter for notices. The word "select" should be used when selecting a particular subset of items from a complete set, but in the case of notices, it was being used to extend the original set of notices to include those from all other users.
It has been proposed to rename select=all to users=all, and since select=all and user-id=1234 were mutually exclusive, it makes sense that a client may choose to use either user-id=1234 or users=all, as these are more clearly related.
This is a backport of a fix from the snapd port of pebble notices. The original PR can be found at: canonical/snapd#13630 As snapd lacks a client or cli for notices, this commit also replaces "select" with "users" in the pebble client and cli. Signed-off-by: Oliver Calder <oliver.calder@canonical.com>
This Pebble version adds the following since v1.7.1: - canonical/pebble#368: replace "select=all" with "users=all". Strictly speaking this is a breaking change, however, it was a design mistake and we want to fix it as soon as possible. It's almost certainly that no one is using this feature yet. - canonical/pebble#369: avoid acquiring state lock in health check endpoint. This fixes (or is one aspect of the fix for) the issue described in https://bugs.launchpad.net/juju/+bug/2052517, so that the GET /v1/health endpoint returns much quicker even when under load. In addition, this has the side effect of bumping up a few of the golang.org/x packages, as Pebble depends on higher versions.
This Pebble version adds the following since v1.7.1: - canonical/pebble#368: replace "select=all" with "users=all". Strictly speaking this is a breaking change, however, it was a design mistake and we want to fix it as soon as possible. It's almost certainly that no one is using this feature yet. - canonical/pebble#369: avoid acquiring state lock in health check endpoint. This fixes (or is one aspect of the fix for) the issue described in https://bugs.launchpad.net/juju/+bug/2052517, so that the GET /v1/health endpoint returns much quicker even when under load.
#16981 This Pebble version adds the following since v1.7.1: - canonical/pebble#368: replace "select=all" with "users=all". Strictly speaking this is a breaking change, however, it was a design mistake and we want to fix it as soon as possible. It's almost certainly that no one is using this feature yet. - canonical/pebble#369: avoid acquiring state lock in health check endpoint. This fixes (or is one aspect of the fix for) the issue described in https://bugs.launchpad.net/juju/+bug/2052517, so that the GET /v1/health endpoint returns much quicker even when under load.
#16982 This Pebble version adds the following since v1.7.1: - canonical/pebble#368: replace "select=all" with "users=all". Strictly speaking this is a breaking change, however, it was a design mistake and we want to fix it as soon as possible. It's almost certainly that no one is using this feature yet. - canonical/pebble#369: avoid acquiring state lock in health check endpoint. This fixes (or is one aspect of the fix for) the issue described in https://bugs.launchpad.net/juju/+bug/2052517, so that the GET /v1/health endpoint returns much quicker even when under load. In addition, this has the side effect of bumping up a few of the golang.org/x packages, as Pebble depends on higher versions.
This is a backport of a fix from the snapd port of pebble notices. The original PR can be found at:
canonical/snapd#13630
As snapd lacks a client or cli for notices, this commit also replaces "select" with "users" in the pebble client and cli.