diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 304e87f53..9e7b9790c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: Release to latest/edge +name: Release to 6/edge on: push: @@ -19,7 +19,7 @@ jobs: name: Build charm uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v5 with: - charmcraft-snap-channel: "latest/edge" + charmcraft-snap-channel: "latest/stable" release: name: Release charm diff --git a/lib/charms/mongodb/v1/shards_interface.py b/lib/charms/mongodb/v1/shards_interface.py index b2ec45b8b..4de1fe68f 100644 --- a/lib/charms/mongodb/v1/shards_interface.py +++ b/lib/charms/mongodb/v1/shards_interface.py @@ -469,7 +469,7 @@ def wait_for_draining(self, mongos_hosts: List[str]): break - def get_shard_status(self) -> StatusBase: + def get_shard_status(self) -> Optional[StatusBase]: """Returns the current status of the shard. Note: No need to report if currently draining, since that check block other hooks from diff --git a/src/charm.py b/src/charm.py index ff325cb48..b2e5fae5f 100755 --- a/src/charm.py +++ b/src/charm.py @@ -1404,7 +1404,7 @@ def is_relation_feasible(self, rel_interface) -> bool: if ( not self.is_sharding_component() - and rel_interface != Config.Relations.SHARDING_RELATIONS_NAME + and rel_interface == Config.Relations.SHARDING_RELATIONS_NAME ): self.unit.status = BlockedStatus("role replication does not support sharding") logger.error(