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

Add refresh_events to COSAgentProvider to update relation data #151

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

chanchiwai-ray
Copy link
Contributor

@chanchiwai-ray chanchiwai-ray commented Jan 26, 2024

Add refresh_events to COSAgentProvider to update relation data when

  • config changed (default behavior)
  • upgrade charm.

Closes: #127

config changed (default behavior) and upgrade charm.
@chanchiwai-ray
Copy link
Contributor Author

We could do some manual tests about it. However, the unit test should already be able check the behavior.

Copy link
Contributor

@jneo8 jneo8 left a comment

Choose a reason for hiding this comment

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

LGTM.

One non-blocking comment.

src/charm.py Show resolved Hide resolved
Copy link
Contributor

@dashmage dashmage left a comment

Choose a reason for hiding this comment

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

Left some small comments. But mostly LGTM 😄

tests/unit/test_charm.py Outdated Show resolved Hide resolved
tests/unit/test_charm.py Outdated Show resolved Hide resolved
tests/unit/test_charm.py Outdated Show resolved Hide resolved
@chanchiwai-ray chanchiwai-ray merged commit eff2431 into canonical:master Jan 29, 2024
5 checks passed
@Pjack Pjack linked an issue Jan 30, 2024 that may be closed by this pull request
@chanchiwai-ray chanchiwai-ray deleted the bug/#127 branch March 8, 2024 01:26
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.

Charm upgrade doesn't update alert rules
3 participants