Ops 3.1.0 and 2.23.1 released

Ops 3.1.0 (and ops-scenario 8.1.0 and ops-tracing 3.1.0) are now available!

This release brings a small new feature when testing: you can get the app name and (mocked) unit ID from the Context object. More significantly, the release addresses issues introduced with the last release’s changed to allow accessing relation data for a departed unit. We’re no longer inserting the unit into Relation.units, and only into Relation.data. We think we’ve got it right this time, and we’re very sorry to have had a release with so many problems around this change.

We’ve also backported this fix, releasing ops 2.23.1 (and ops-scenario 7.23.1 and ops-tracing 2.23.1 to align, but they don’t contain any changes from their previous versions).

A reminder that ops 3.0 and ops 2.23.0 are identical other than 3.0 dropping support for Python 3.8 and 3.9. As long as your charm doesn’t need to support 20.04, you can upgrade from 2.x to 3.1 just as you would have upgraded to a 2.24.

Read more in the full release notes on GitHub.

1 Like

Thank you, Tony!