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 loadFeatures in FeatureGateway when data is null #663

Merged
merged 2 commits into from
May 9, 2023

Conversation

nilsreichardt
Copy link
Member

Fixes #662

@docs-page
Copy link

docs-page bot commented May 9, 2023

To view this pull requests documentation preview, visit the following URL:

docs.page/sharezoneapp/sharezone-app~663

Documentation is deployed and generated using docs.page.

@@ -28,7 +28,7 @@ class FeatureGateway {
final featureSet = <Feature>{};

final features =
Features.fromJson(doc?.data()['features'] as Map<String, dynamic>);
Features.fromJson(doc?.get('features') as Map<String, dynamic>);
if (features != null) {
if (features.allColors) featureSet.add(AllColors());
Copy link
Member Author

Choose a reason for hiding this comment

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

Short note: we are not using AllColors anymore because since a few years everyone has access to all colors. #664

@github-actions
Copy link

github-actions bot commented May 9, 2023

Visit the preview URL for this PR (updated for commit 8de878c):

https://sharezone-test--pr663-fix-features-gateway-3qs74w8h.web.app

(expires Tue, 16 May 2023 14:15:35 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@nilsreichardt nilsreichardt added this pull request to the merge queue May 9, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 9, 2023
@nilsreichardt nilsreichardt enabled auto-merge May 9, 2023 14:06
@nilsreichardt nilsreichardt added this pull request to the merge queue May 9, 2023
Merged via the queue into main with commit 2dae801 May 9, 2023
@nilsreichardt nilsreichardt deleted the fix-features-gateway branch May 9, 2023 14:47
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.

Integration tests are failing sometimes because of Tried calling: []("features")
2 participants