-
Notifications
You must be signed in to change notification settings - Fork 11
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
Added flipper, so admin could enable or disable mhc calculator #969
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #969 +/- ##
===========================================
+ Coverage 91.76% 91.79% +0.03%
===========================================
Files 73 73
Lines 1044 1048 +4
===========================================
+ Hits 958 962 +4
Misses 86 86 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@@ -52,4 +53,8 @@ def collection | |||
def resource | |||
collection.friendly.find(params[:slug]) | |||
end | |||
|
|||
def check_mhc_flipper | |||
raise ActionController::RoutingError, "Mhc calculator flipper is disabled" unless Flipper[:mhc_calculator_status].enabled? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
404 має бути
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
і краще спочатку умову мати з ретурном, а вже знизу от наприклад редірект, чи рейзання ерори, чи ще щось
unknown_2024.11.22-19.21_1.mp4
Code reviewers
Summary of issue
There is no feature flipper for the mhc calculator
Summary of change
Added feature flipper for the mhc calculator
CHECK LIST