canonical / data-platform-libs

A collection of charm libraries curated by the Data Platform Team
https://charmhub.io/data-platform-libs
Apache License 2.0
9 stars 9 forks source link

Failure to remove a field results in no other secret fields getting removed #125

Open MiaAltieri opened 6 months ago

MiaAltieri commented 6 months ago

Code causing issue

Steps to reproduce

self.database_provides.delete_relation_data(
                relation.id, fields=["username", "password", "uris", "field-that-cannot-be-removed"]
            )

Expected behavior

juju show-unit app-name/0

shows no secrets for "username", "password", "uris",

Actual behavior

juju show-unit app-name/0

still has secrets for "username", "password", "uris",

Versions

Juju 3.1.6, latest lib

github-actions[bot] commented 6 months ago

https://warthogs.atlassian.net/browse/DPE-3321