Skip to content

Commit

Permalink
[MISC] Rock with locales (#291)
Browse files Browse the repository at this point in the history
* Rock with locales

* Disable discourse test

* Bump lib
  • Loading branch information
dragomirp authored Oct 18, 2023
1 parent 68b92c3 commit da3c5d1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/charms/data_platform_libs/v0/data_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _on_topic_requested(self, event: TopicRequestedEvent):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 19
LIBPATCH = 20

PYDEPS = ["ops>=2.0.0"]

Expand Down Expand Up @@ -1674,6 +1674,10 @@ def _assign_relation_alias(self, relation_id: int) -> None:
if relation:
relation.data[self.local_unit].update({"alias": available_aliases[0]})

# We need to set relation alias also on the application level so,
# it will be accessible in show-unit juju command, executed for a consumer application unit
self.update_relation_data(relation_id, {"alias": available_aliases[0]})

def _emit_aliased_event(self, event: RelationChangedEvent, event_name: str) -> None:
"""Emit an aliased event to a particular relation if it has an alias.
Expand Down
2 changes: 1 addition & 1 deletion lib/charms/postgresql_k8s/v0/postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 16
LIBPATCH = 17

INVALID_EXTRA_USER_ROLE_BLOCKING_MESSAGE = "invalid role(s) for extra user roles"

Expand Down
2 changes: 1 addition & 1 deletion metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resources:
postgresql-image:
type: oci-image
description: OCI image for PostgreSQL
upstream-source: ghcr.io/canonical/charmed-postgresql@sha256:1517d0053d6c039b42b5e2820c8f7a3eb13b67eee2b101fd1f562216eb4179ca
upstream-source: ghcr.io/canonical/charmed-postgresql@sha256:a6aa592506aa4cda85b63f66e1c9d079088ca7c9d84ed4bba9442dea36ec3f17

peers:
database-peers:
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ async def test_indico_db_blocked(ops_test: OpsTest) -> None:
)


@pytest.mark.skip(reason="Should be ported and moved to the new relation tests")
async def test_discourse(ops_test: OpsTest):
database_application_name = f"extensions-{DATABASE_APP_NAME}"
if database_application_name not in ops_test.model.applications:
Expand Down

0 comments on commit da3c5d1

Please sign in to comment.