"Enable Auto DevOps" button on project overview page leads to 404 page when CI/CD is disabled
Summary
When CI/CD is disabled under "Settings -> General", the "Enable Auto DevOps" button leads to a 404 page.
Possible fixes
One potential solution would be to not show the "Enable Auto DevOps" button if CI/CD is disabled.
Implementation plan suggestion
- Update
project_presenter
'sautodevops_anchor_data
method to return nil if!project.feature_available?(:builds, current_user)
- Add a corresponding test to
project_presenter_spec.rb
- Add a corresponding test to
user_sees_setup_shortcut_buttons_spec.rb
Edited by Anna Vovchenko