canonical / canonical/data-platform-libs

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

Open
#125 1 comment 0 reactions 1 assignee Claimed by @juditnovak View on GitHub
bug
Dominant language
Python
Stars
13
Forks
12
PR merge metrics
No merged PRs in 30d

Description

[Code causing issue](https://github.com/canonical/data-platform-libs/blob/045506f777d39d86ed30d540097586ed28003f50/lib/charms/data_platform_libs/v0/data_interfaces.py#L1128-L1137)

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.