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

Added feature flipper for calculators constructor #983

Merged
merged 7 commits into from
Nov 28, 2024

Conversation

SleekMutt
Copy link
Contributor

@SleekMutt SleekMutt commented Nov 26, 2024

unknown_2024.11.26-17.17.mp4

Code reviewers

Second Level Review

Summary of issue

There is not feature flipper for the calculators constructor.

Summary of change

Added feature flipper for calculators constructor, so admin could turn on/off it

CHECK LIST

  • СI passed
  • Сode coverage >=95%
  • PR is reviewed manually again (to make sure you have 100% ready code)
  • All reviewers agreed to merge the PR
  • I've checked new feature as logged in and logged out user if needed
  • PR meets all conventions

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.51%. Comparing base (62610c8) to head (4e6330c).
Report is 8 commits behind head on calculators-constructor.

Additional details and impacted files
@@                     Coverage Diff                     @@
##           calculators-constructor     #983      +/-   ##
===========================================================
+ Coverage                    85.41%   85.51%   +0.09%     
===========================================================
  Files                           68       68              
  Lines                         1049     1056       +7     
===========================================================
+ Hits                           896      903       +7     
  Misses                         153      153              

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

@SleekMutt SleekMutt self-assigned this Nov 26, 2024
@SleekMutt SleekMutt added the enhancement New feature or request label Nov 26, 2024
@@ -26,6 +26,20 @@
end
end

RSpec.shared_context :show_constructor do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
RSpec.shared_context :show_constructor do
RSpec.shared_context :enable_calculators_constructor do

app/controllers/calculators_controller.rb Show resolved Hide resolved
Comment on lines 13 to 15
before(:example, :disabled_constructor) do
include_context :disable_calculators_constructor
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

щось не дуже розумію, що тут робиться

@loqimean loqimean merged commit 0537196 into calculators-constructor Nov 28, 2024
7 checks passed
@loqimean loqimean deleted the constructor-feature-flag branch November 28, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready for QA
Development

Successfully merging this pull request may close these issues.

2 participants