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: throw exception if feature flag is not enabled #2998

Merged
merged 7 commits into from
Dec 23, 2024

Conversation

taefi
Copy link
Contributor

@taefi taefi commented Dec 12, 2024

Description

This also removes the client-side check for
the feature flag to let the UI being rendered
normally, and server-side get a chance to
evaluate the feature-flag while handling the
requests for subscribe or update.

Fixes #2937

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

@taefi taefi added the hilla Issues related to Hilla label Dec 12, 2024
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.57%. Comparing base (37af690) to head (0173a5f).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2998      +/-   ##
==========================================
- Coverage   92.57%   92.57%   -0.01%     
==========================================
  Files          85       85              
  Lines        3166     3164       -2     
  Branches      776      775       -1     
==========================================
- Hits         2931     2929       -2     
  Misses        183      183              
  Partials       52       52              
Flag Coverage Δ
unittests 92.57% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@taefi taefi marked this pull request as ready for review December 12, 2024 14:49
This also removes the client-side check for
the feature flag to let the UI being rendered
normally, and server-side get a chance to
handle the requests for subscribe or update.

Fixes #2937
@taefi taefi force-pushed the taefi/throw-if-featureflag-not-enabled branch from af3de59 to e68243e Compare December 20, 2024 12:23
@taefi taefi requested a review from cromoteca December 20, 2024 18:19
@taefi taefi enabled auto-merge (squash) December 23, 2024 10:19
@taefi taefi merged commit 67be5ed into main Dec 23, 2024
15 checks passed
@taefi taefi deleted the taefi/throw-if-featureflag-not-enabled branch December 23, 2024 10:28
vaadin-bot pushed a commit that referenced this pull request Dec 23, 2024
* fix: throw exception if feature flag is not enabled

This also removes the client-side check for
the feature flag to let the UI being rendered
normally, and server-side get a chance to
handle the requests for subscribe or update.

Fixes #2937

* remove feature flag test

* refine the import

* apply changes from the review
taefi added a commit that referenced this pull request Dec 23, 2024
#3086)

fix: throw exception if feature flag is not enabled (#2998)

* fix: throw exception if feature flag is not enabled

This also removes the client-side check for
the feature flag to let the UI being rendered
normally, and server-side get a chance to
handle the requests for subscribe or update.

Fixes #2937

* remove feature flag test

* refine the import

* apply changes from the review

Co-authored-by: Soroosh Taefi <[email protected]>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Hilla 24.7.0.alpha4 and is also targeting the upcoming stable 24.7.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DX] When Full-stack signals feature flag is not set, it should throw an exception during the startup
3 participants