Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(angular): fix race condition on initialization #1052

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

lukas-reining
Copy link
Member

@lukas-reining lukas-reining commented Oct 21, 2024

This PR

Fixes a race condition when the directive is first rendered.
Initially the initialization code in the constructor before the @Inputs were bound to the variables.
This meant that in some cases providers were called with undefined as flag key, which most providers accept, but for flipt-web the engine paniced due to the value being unit instead of a string.

Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
@lukas-reining lukas-reining requested a review from a team as a code owner October 21, 2024 18:51
@toddbaert
Copy link
Member

Not a blocker for me, but if you can think of a quick test for this it might be good.

@toddbaert toddbaert self-requested a review October 21, 2024 18:54
@lukas-reining lukas-reining added this pull request to the merge queue Oct 21, 2024
Merged via the queue into main with commit 12eaa97 Oct 21, 2024
6 of 8 checks passed
@lukas-reining lukas-reining deleted the fix/angular-race-condition branch October 21, 2024 19:29
github-merge-queue bot pushed a commit that referenced this pull request Oct 21, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.0.5-experimental](angular-sdk-v0.0.4-experimental...angular-sdk-v0.0.5-experimental)
(2024-10-21)


### 🐛 Bug Fixes

* **angular:** fix race condition on initialization
([#1052](#1052))
([12eaa97](12eaa97))


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

---------

Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.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