Closed zmraul closed 2 months ago
@welpaolo This branch is being merged and based on the one with the test. So it's already passing here :)
@deusebio Once this PR is merged on the test branch, I can rebase on main and that should be addressed no?
Yes, but probably when rebasing you will have conflicts, given we are touching the same lines. Just remember to keep the spelling consistent! :D
Anyhow, the changes proposed in the PR, looks good to me!
Copying from a comment:
Passing
self
togetattr
means that none of those fields on the array exist on the inheritance tree fromKafkaRequiresEventHandlers
. Because of this, the lib would always write an empty string to databag, sotopic_requested
is never triggered.Using the full
KafkaRequires
class works because we pass data indirectly to viaKafkaRequiresEventHandlers.__init__(self, charm, self)
The 3rd argument is a self reference, soKafkaRequiresData
fields are available down the line.NOTE: alternative, less intrusive fix