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

feat!: implement config cat web provider #918

Merged
merged 28 commits into from
Jul 21, 2024
Merged

Conversation

lukas-reining
Copy link
Member

@lukas-reining lukas-reining commented May 25, 2024

This PR

Implements ConfigCat Web Provider as discussed here #816.
It mainly moves the context and result mapping logic to a shared package and implements the usage of snapshots for the web-sdk as discussed with @adams85.

@github-actions github-actions bot requested review from beeme1mr and toddbaert May 25, 2024 22:00
@lukas-reining lukas-reining force-pushed the feat/config-cat-web branch 5 times, most recently from 258a9b1 to 30921a7 Compare May 25, 2024 22:32
@lukas-reining lukas-reining marked this pull request as ready for review May 25, 2024 22:36
@lukas-reining lukas-reining requested a review from a team as a code owner May 25, 2024 22:36
@lukas-reining
Copy link
Member Author

@adams85 it took some time to find time to implement, but here it is, as we discussed in #816.
I could not add you as a reviewer, because you are not part of the org. If you like to join the org, I can add you :)
Would be happy about a review.

Copy link
Contributor

@adams85 adams85 left a comment

Choose a reason for hiding this comment

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

Hey @lukas-reining,

Awesome news! I did a quick review.

libs/providers/config-cat/package.json Outdated Show resolved Hide resolved
libs/providers/config-cat-web/package.json Outdated Show resolved Hide resolved
libs/shared/config-cat-core/src/lib/result-mapping.ts Outdated Show resolved Hide resolved
libs/shared/config-cat-core/src/lib/result-mapping.ts Outdated Show resolved Hide resolved
@toddbaert
Copy link
Member

This is my only concern.

lukas-reining and others added 9 commits July 11, 2024 21:56
Co-authored-by: adams85 <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Co-authored-by: adams85 <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Co-authored-by: Michael Beemer <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
@lukas-reining
Copy link
Member Author

lukas-reining commented Jul 11, 2024

Hey @adams85, took me quite some time to get to it but I just changed the two things you proposed :)
Would be happy about a re-review!
I changed the mapping to support your new typings for the User object and only allow AutoPoll for the web sdk.
Marking this as breaking is the User mapping changed.

@lukas-reining lukas-reining changed the title feat: implement config cat web provider feat!: implement config cat web provider Jul 11, 2024
Signed-off-by: Lukas Reining <[email protected]>
lukas-reining and others added 3 commits July 15, 2024 18:18
Co-authored-by: adams85 <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Co-authored-by: adams85 <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Co-authored-by: adams85 <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

Approved! Nice work. Please just carefully consider this: https://github.com/open-feature/js-sdk-contrib/pull/918/files#r1681377307 (I could be missing something).

Copy link
Contributor

@adams85 adams85 left a comment

Choose a reason for hiding this comment

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

Spotted some outdated info in README.md files.

libs/providers/config-cat-web/README.md Outdated Show resolved Hide resolved
libs/providers/config-cat-web/README.md Outdated Show resolved Hide resolved
libs/providers/config-cat-web/README.md Outdated Show resolved Hide resolved
libs/providers/config-cat/README.md Outdated Show resolved Hide resolved
lukas-reining and others added 4 commits July 17, 2024 19:15
Co-authored-by: adams85 <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Co-authored-by: adams85 <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Co-authored-by: adams85 <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
Signed-off-by: Lukas Reining <[email protected]>
@lukas-reining lukas-reining merged commit e280014 into main Jul 21, 2024
6 checks passed
@toddbaert toddbaert deleted the feat/config-cat-web branch July 23, 2024 14:06
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.

4 participants