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

feat(state): record change-update notices on change status updates #379

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

ZeyadYasser
Copy link
Contributor

This PR records change-update notices based as mentioned in the JU048 spec.

  • NewChange addresses the change spawned case.
  • notifyStatusChange is for all other status changes.

This is backport from snapd snapcore/snapd#13528.

This is backport from snapd.

snapcore/snapd#13528

Signed-off-by: Zeyad Gouda <zeyad.gouda@canonical.com>
Copy link
Contributor

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! This is an exact copy of what we've already reviewed over in snapd-land, so I think this is good to go.

One typo fix that I'll merge directly.

internals/overlord/state/change_test.go Outdated Show resolved Hide resolved
@benhoyt
Copy link
Contributor

benhoyt commented Mar 11, 2024

I've also done some ad-hoc manual testing using the Pebble CLI, and it seems to work well.

@benhoyt benhoyt merged commit 951f38f into canonical:master Mar 11, 2024
15 checks passed
@benhoyt
Copy link
Contributor

benhoyt commented Mar 11, 2024

Thanks for this, @ZeyadYasser!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants