PoC: Cleanup `usage_quotas_pipelines_vue` feature flag
What does this MR do and why?
#360784 (closed)
PoC for:Breaking down this MR:
(If you need to copy/past these paths you can replace ...
with app/assets/javascripts
.
-
Remove usage_quotas_pipelines_vue feature flag
- Remove FF in
ee/.../ci/usage_quotas/pipelines/index.js
- Clean up
ee/.../pages/groups/usage_quotas/index.js
- Cleanup the Group controller:
ee/app/controllers/groups/usage_quotas_controller.rb
- Cleanup the Profile controller:
ee/app/controllers/profiles/usage_quotas_controller.rb
- Remove FF in Groups:
ee/app/views/groups/usage_quotas/index.html.haml
- Remove FF in Profiles:
ee/app/views/profiles/usage_quotas/index.html.haml
- Delete Yaml:
ee/config/feature_flags/development/usage_quotas_pipelines_vue.yml
- Specs:
ee/spec/features/ci/ci_minutes_spec.rb
ee/spec/features/groups/usage_quotas/pipelines_tab_spec.rb
ee/spec/features/groups/usage_quotas/seats_tab_spec.rb
ee/spec/features/groups/usage_quotas/usage_quotas_spec.rb
ee/spec/features/profiles/usage_quotas_spec.rb
ee/spec/requests/groups/usage_quotas_spec.rb
- Remove FF in
-
Delete unused HAML files:
ee/app/views/namespaces/pipelines_quota/_list.html.haml
ee/app/views/namespaces/pipelines_quota/_ci_minutes_report.html.haml
ee/app/views/namespaces/pipelines_quota/_extra_shared_runners_minutes_quota.html.haml
-
Remove Group CI minutes usage old app
- Remove
ee/.../ci/usage_quotas/ci_minutes_usage/components/app.vue
. This app was used in the old HAML view to display the graphs for Groups. We're now usingee/.../ci/usage_quotas/pipelines/components/minutes_usage_charts.vue
- Remove
ee/.../ci/usage_quotas/ci_minutes_usage/index.js
as it's the initializer of the old app for groups - Move
ee/.../ci/usage_quotas/ci_minutes_usage/graphql/queries/ci_minutes_namespace.query.graphql
and update its reference inee/.../ci/usage_quotas/pipelines/components/app.vue
- Delete
ee/spec/frontend/ci/usage_quotas/ci_minutes_usage/...
- Remove
-
Remove Profile CI minutes usage old app
- Remove
ee/.../ci/ci_minutes_usage/components/app.vue
: This app was used in the old HAML view to display the graphs for profiles. We're now usingee/.../ci/usage_quotas/pipelines/components/minutes_usage_charts.vue
- Move the files in
ee/.../ci/ci_minutes_usage
toee/.../ci/usage_quotas/
:minutes_usage_month_chart.vue
minutes_usage_project_chart.vue
no_minutes_alert.vue
shared_runner_usage_month_chart.vue
- These are the actual graphs. We need to update the reference in
ee/.../ci/usage_quotas/pipelines/components/minutes_usage_charts.vue
- Move
ci_minutes.query.graphql
fromee/.../ci/ci_minutes_usage
toee/.../ci/usage_quotas/
:- We need to update its reference in
ee/.../ci/usage_quotas/pipelines/components/app.vue
- Remove
ee/.../ci/ci_minutes_usage/constants.js
. Whatever constant being used is now moved toee/.../ci/usage_quotas/pipelines/constants.js
- Remove
ee/.../ci/ci_minutes_usage/index.js
as it's the initializer of the old app for profiles (item 1.) - We also need to remove its call in
ee/.../pages/profiles/usage_quotas/index.js
- Move
ee/.../ci/ci_minutes_usage/utils.js
as is toee/.../ci/usage_quotas/pipelines/utils.js
- Amend tests in
ee/spec/frontend/ci/ci_minutes_usage/mock_data.js
- We need to update its reference in
- Remove
Title | MR | Description |
---|---|---|
Remove JS and FF calls from HAML files | !105487 (merged) | With this MR all the old JS/ruby code will never be executed because it's never being included. This gives us more piece to break down the JS removals in more MRs. We can remove the FF as well, at this point |
Remove the remaining backend code | !105723 (merged) | This finishes the removal of all dead code on the backend |
Remove unused Group CI frontend code | !105795 (merged) | Removes the old frontend files for Group Usage Quotas |
Remove unused Profile CI frontend code | !105880 (merged) | Removes the old frontend files for Profile Usage Quotas. This finishes the removal of all dead code on the frontend |
Screenshots or screen recordings
No UI changes. Details: #360785 (comment 1180904501)
How to set up and validate locally
- Checkout the branch
- Visit: http://gdk.test:3000/groups/flightjs/-/usage_quotas#pipelines-quota-tab
- Visit: http://gdk.test:3000/-/profile/usage_quotas#pipelines-quota-tab
- Make sure both pages are rendering correctly
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sheldon Led