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

Create :burial_module_enabled Flipper #98411

Open
aplatt-coforma opened this issue Dec 4, 2024 · 0 comments
Open

Create :burial_module_enabled Flipper #98411

aplatt-coforma opened this issue Dec 4, 2024 · 0 comments
Labels
Burial Form 21P-530EZ engineering Engineering topics

Comments

@aplatt-coforma
Copy link
Contributor

aplatt-coforma commented Dec 4, 2024

Add a flipper :burial_module_enabled to allow us to easily switch between our current setup and the new module

  • Update features.yml:
burial_module_enabled:
  actor_type: user
  description: Enables new Burial module
  enable_in_development: true
  • Update routes.rb to something like:
 namespace :v0, defaults: { format: 'json' } do
   ...
  if Flipper.enabled?(:burial_module_enabled)
    # Use the new controller from the module folder
    resources :burial_claims, only: %i[create show], controller: 'modules/burials/burial_claims_controller'
  else
    # Use the existing controller
    resources :burial_claims, only: %i[create show], controller: 'v0/burial_claims_controller'
  end
  ...
end
@aplatt-coforma aplatt-coforma added this to the Burial Modules milestone Dec 4, 2024
@aplatt-coforma aplatt-coforma added Burial Form 21P-530EZ engineering Engineering topics labels Dec 4, 2024
@balexandr balexandr changed the title Demo Burial Module ticket Create :burial_module_enabled Flipper Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Burial Form 21P-530EZ engineering Engineering topics
Projects
None yet
Development

No branches or pull requests

1 participant