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

Tidy up downtime edit page by removing toggle and legacy edit endpoints #2188

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 0 additions & 139 deletions app/assets/javascripts/legacy_modules/legacy_downtime_message.js

This file was deleted.

24 changes: 0 additions & 24 deletions app/assets/stylesheets/downtime.scss

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/stylesheets/legacy-application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@import "error_summary";

// Pages
@import "downtime";
@import "smart_answer_builder";
@import "smart_answer_flowchart";

Expand Down
56 changes: 0 additions & 56 deletions app/controllers/legacy_downtimes_controller.rb

This file was deleted.

88 changes: 0 additions & 88 deletions app/views/legacy_downtimes/_form.html.erb

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions app/views/legacy_downtimes/edit.html.erb

This file was deleted.

4 changes: 0 additions & 4 deletions config/features.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@
default: true,
description: "A feature only used by tests; not to be used for any actual features."
end

feature :design_system_downtime_edit,
default: true,
description: "A transition of the edit downtime page to the GOV.UK Design System"
end
9 changes: 2 additions & 7 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@
}
end

resource :downtime, only: %i[new create]

constraints FeatureConstraint.new("design_system_downtime_edit") do
resource :downtime, only: %i[edit update destroy]
get "downtime" => "downtimes#destroy", as: :destroy_downtime
end
resource :downtime, only: %i[edit update destroy], controller: "legacy_downtimes"
resource :downtime, only: %i[new create edit update destroy]
get "downtime" => "downtimes#destroy", as: :destroy_downtime
end

get "reports" => "reports#index", as: :reports
Expand Down
Loading
Loading