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

chore: Bump ops from 2.9.0 to 2.10.0 #36

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 31, 2024

Bumps ops from 2.9.0 to 2.10.0.

Release notes

Sourced from ops's releases.

2.10.0 Pebble custom notices, adjustments to relation-broken, and more

This release adds support for Pebble custom notices, including in the Harness testing framework, and removes the broken relation from the model's relations list when in the relation-broken event. There's also the usual collection of documentation improvements, bug fixes, and other minor improvements.

Pebble Notices

Pebble now includes a subsystem called Notices, each of which has a type and a key (currently the only type is "custom"). Custom notices allow the workload to wake up the charm when something interesting happens with the workload, for example, when a PostgreSQL backup process finishes, or some kind of alert occurs.

Workloads can run pebble notify to record an occurrence of a custom notice, providing a unique key and optional data, and Juju will trigger a PebbleCustomNotice event on the charm for it to take appropriate action.

Support for Pebble Notices is available from Juju 3.4.0 onwards. Read the docs about how to use custom notices from the workload container.

Relation-Broken

When a charm is handling a relation-broken event, the relation is on the verge of being removed. A common pattern in charms is to iterate through Model.relations (to generate a configuration file, for example), and the broken relation should not be included with the active relations. To simplify charm code, Model.relations now excludes the broken relation. The relation is still accessible via the event's .relation attribute, and all Relation objects now have an .active attribute to distinguish between the broken relation (active == False) and other relations (active == True).

The plan is that this change will also appear when using the Juju hook tools directly in a future version of Juju.

This does not change accessing the relation data during relation-broken, and this does not change any behaviour in relation-departed.

Features

Fixes

Documentation

Tooling

Many thanks to @​PietroPasotti, @​yanksyoon, and @​tmihoc for their contributions to this release!

Full Changelog: canonical/operator@2.9.0...2.10.0

Changelog

Sourced from ops's changelog.

2.10.0

  • Added support for Pebble Notices (PebbleCustomNoticeEvent, get_notices, and so on)
  • Added Relation.active, and excluded inactive relations from Model.relations
  • Added full support for charm metadata v2 (in particular, extended ContainerMeta, and various info links in CharmMeta)
Commits
  • 3dd4621 Bump version for release. (#1117)
  • 94263b0 ci: reinstate postgresql-operator tests now that issue is fixed (#1116)
  • d49fa98 fix(charm): make collect-status a LifeCycleEvent to avoid logging it (#1080)
  • 4678130 fix: add pebble log targets and checks to testing plan (#1111)
  • dc47640 feat: add support for v2 fields in CharmMeta (#1106)
  • 41a4ad4 ci: use a trusted publisher token for publishing to PyPI (#1061)
  • aa04950 build: migrate to pyproject.toml (#1068)
  • cc29ea3 feat: add Relation.active, exclude inactive relations from Model.relations (#...
  • ea1cf19 feat: model error on testing module if invalid status set by charm (#1107)
  • 261c441 fix(typing): update to latest version of Pyright and fix errors (#1105)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ops](https://github.com/canonical/operator) from 2.9.0 to 2.10.0.
- [Release notes](https://github.com/canonical/operator/releases)
- [Changelog](https://github.com/canonical/operator/blob/main/CHANGES.md)
- [Commits](canonical/operator@2.9.0...2.10.0)

---
updated-dependencies:
- dependency-name: ops
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner January 31, 2024 13:53
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jan 31, 2024
@gruyaume gruyaume merged commit 65e3d83 into main Jan 31, 2024
8 checks passed
@gruyaume gruyaume deleted the dependabot/pip/ops-2.10.0 branch January 31, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant