Closed Gu1nness closed 2 months ago
I have logged a ticket to do the implementation you are suggesting @juditnovak but I think this is out of scope for this ticket and I don't have some additional bandwidth to handle this during this pulse. This will be reviewed, scoped, and tackled as soon as we have some time.
Issue
Solution
This library was not using the data interface library the right way. The provider should not write in the databag before the
database_requested
event which is fired when the requirer asks for the DB and write its name + therequested-secrets
list in the databag.This commit hence:
database_requested
eventrelation_changed
events by checking first if thedatabase
field is in the relation databag, which can happen only after thedatabase_requested
event has run.