~cjwatson/interface-pgsql:fix-readiness-check-v2

Last commit made on 2023-03-16
Get this branch:
git clone -b fix-readiness-check-v2 https://git.launchpad.net/~cjwatson/interface-pgsql
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
fix-readiness-check-v2
Repository:
lp:~cjwatson/interface-pgsql

Recent commits

70d2da5... by Colin Watson

Make commands_pre compatible with tox 3

ac3c26b... by Colin Watson

Fix unit tests following cross-model relation support

Commit 133726c646b31d63cf5c33e73322598ba1012b07 broke
`TestConnectionStringConstructor`, since `_cs` now works a bit
differently. Fix the tests to cope.

997402b... by Colin Watson

Document CHARM_DIR requirements for running tests

7c0be54... by Colin Watson

Fix unit readiness check for v2 protocol

Commit 133726c646b31d63cf5c33e73322598ba1012b07 broke the readiness
check in `ConnectionStrings._authorized` when using the v2 protocol
(used particularly by proxies), because `self[name]` is only populated
usefully for units using the v1 protocol. The previous code essentially
seemed to be checking the bottom half of the `_cs` function, so I split
that out into a new function and arranged to call it directly to avoid
them getting out of sync again.

The unit tests seem to have bitrotted and I couldn't figure out how to
get them to run, but I've tested this with direct relations to the
`postgresql` charm, and Guillermo Gonzalez has tested this using the
`external-services` charm which acts as a proxy.

c35ef4a... by Stuart Bishop

Ensure 'changed' flags are set in upgrade-charm

f8b6006... by Stuart Bishop

Do not repeatedly reset states after departing relation

Addresses lp:1798118

38c2d4b... by Stuart Bishop

ConnectionStrings.standbys should never return None

6e39748... by Stuart Bishop

Avoid calling provider handlers before relation exists

81b9fc6... by Stuart Bishop

Add and document 'changed' flags. Update docs for modern charms.reactive.

4fca56a... by Stuart Bishop

Update maintainer