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

Feature/mvp interview survey #4549

Conversation

JustWaveThings
Copy link
Contributor

@JustWaveThings JustWaveThings commented May 30, 2024

Because

  • We need a feature flag to hide the interview survey feature behind.

This PR

  • Creates route, controller, view, and updates flipper gates
  • Adds feature flag check to controller
  • System test coverage for feature flag behavior to ensure no one can access the feature if it is disabled

Issue

Related to #4524

Missing tests that were called for in that issue. There are now two system tests.

Additional Information

The feature flag does work correctly in the view, but I'm not getting a redirect to work in the controller if the feature is disabled. It still renders the page as if the feature was enabled. This is resolved.

@JustWaveThings JustWaveThings marked this pull request as ready for review May 30, 2024 17:46
@bycdiaz bycdiaz requested a review from KevinMulhern May 30, 2024 17:54
app/controllers/interview_surveys_controller.rb Outdated Show resolved Hide resolved
app/controllers/interview_surveys_controller.rb Outdated Show resolved Hide resolved
config/routes.rb Outdated Show resolved Hide resolved
spec/system/interview_survey_spec.rb Outdated Show resolved Hide resolved
app/controllers/interview_surveys_controller.rb Outdated Show resolved Hide resolved
spec/system/interview_survey_spec.rb Outdated Show resolved Hide resolved
Because:
* We want to be able to turn on and off the feature.

This commit:
* Adds a feature flag for the interview survey feature.
* Adds a view, controller, and route for the feature.
* Adds 2 tests for the feature flag.
Copy link
Member

@KevinMulhern KevinMulhern left a comment

Choose a reason for hiding this comment

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

Great work! 🚀

@KevinMulhern KevinMulhern merged commit 6950307 into TheOdinProject:main Jun 4, 2024
3 checks passed
@JustWaveThings JustWaveThings deleted the feature/mvp_interview_survey branch June 4, 2024 18:01
@JustWaveThings JustWaveThings restored the feature/mvp_interview_survey branch June 8, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants