Skip to content

Conversation

@kinyoklion
Copy link
Member

No description provided.

self.emit_provider_configuration_changed(ProviderEventDetails(flags_changed=[change.key]))
pass

def initialize(self, evaluation_context: EvaluationContext):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should handle the cases where the client failed or succeeded within the start_wait period, or where it exceeded that period and the data source later becomes VALID or OFF.

@kinyoklion kinyoklion marked this pull request as ready for review June 10, 2024 21:42
@kinyoklion kinyoklion requested a review from a team June 10, 2024 21:42
try:
api.set_provider(openfeature_provider)
# The method should throw
assert False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can also do this, which is probably slightly preferred.

Suggested change
assert False
pytest.fail("set_provider should have raised an exception")

@kinyoklion kinyoklion merged commit c69231a into main Jun 11, 2024
@kinyoklion kinyoklion deleted the rlamb/add-provider-events branch June 11, 2024 16:21
kinyoklion pushed a commit that referenced this pull request Jun 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](0.1.2...0.2.0)
(2024-06-11)


### Features

* Add support for provider events.
([#12](#12))
([c69231a](c69231a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants