From a7619c140cd200ec4dff0de3d99ee37931b101bb Mon Sep 17 00:00:00 2001 From: Ryan Wold <64987852+ryanwoldatwork@users.noreply.github.com> Date: Mon, 10 Mar 2025 08:20:18 -0700 Subject: [PATCH 1/3] update gems --- Gemfile.lock | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 5f237a2b5..136e1a59f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,9 @@ GIT remote: https://github.com/18F/omniauth_login_dot_gov.git - revision: 616a865a0d2ac8b5e01c07a5809bc37a10cfc42b + revision: b4d30dc92f2659e46680161bf02550ba424d768e branch: main specs: - omniauth_login_dot_gov (2.2.0) + omniauth_login_dot_gov (3.0.0) faraday (~> 2.0) json-jwt (~> 1.11) jwt (~> 2.2) @@ -102,11 +102,11 @@ GEM public_suffix (>= 2.0.2, < 7.0) aes_key_wrap (1.1.0) ast (2.4.2) - aws-eventstream (1.3.1) - aws-partitions (1.1056.0) + aws-eventstream (1.3.2) + aws-partitions (1.1062.0) aws-record (2.13.2) aws-sdk-dynamodb (~> 1, >= 1.85.0) - aws-sdk-core (3.219.0) + aws-sdk-core (3.220.1) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.992.0) aws-sigv4 (~> 1.9) @@ -345,7 +345,7 @@ GEM mime-types (3.6.0) logger mime-types-data (~> 3.2015) - mime-types-data (3.2025.0220) + mime-types-data (3.2025.0304) mini_magick (5.2.0) benchmark logger @@ -431,7 +431,7 @@ GEM puma (6.6.0) nio4r (~> 2.0) racc (1.8.1) - rack (3.1.10) + rack (3.1.11) rack-attack (6.7.0) rack (>= 1.0, < 4) rack-cors (2.0.2) @@ -494,7 +494,7 @@ GEM psych (>= 4.0.0) redis (5.4.0) redis-client (>= 0.22.0) - redis-client (0.23.2) + redis-client (0.24.0) connection_pool redis-namespace (1.11.0) redis (>= 4) @@ -527,7 +527,7 @@ GEM rspec-support (3.13.2) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.73.1) + rubocop (1.73.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -540,7 +540,7 @@ GEM unicode-display_width (>= 2.4.0, < 4.0) rubocop-ast (1.38.1) parser (>= 3.3.1.0) - rubocop-rails (2.30.2) + rubocop-rails (2.30.3) activesupport (>= 4.2.0) lint_roller (~> 1.1) rack (>= 1.1) @@ -571,12 +571,12 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) - sidekiq (7.3.9) - base64 - connection_pool (>= 2.3.0) - logger - rack (>= 2.2.4) - redis-client (>= 0.22.2) + sidekiq (8.0.1) + connection_pool (>= 2.5.0) + json (>= 2.9.0) + logger (>= 1.6.2) + rack (>= 3.1.0) + redis-client (>= 0.23.2) simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) @@ -601,9 +601,9 @@ GEM thread_safe (0.3.6) tilt (2.6.0) timeout (0.4.3) - turbo-rails (2.0.11) - actionpack (>= 6.0.0) - railties (>= 6.0.0) + turbo-rails (2.0.13) + actionpack (>= 7.1.0) + railties (>= 7.1.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (3.1.4) From bd06256cc028bf376df74f353543cb04d5584a46 Mon Sep 17 00:00:00 2001 From: Ryan Wold <64987852+ryanwoldatwork@users.noreply.github.com> Date: Tue, 11 Mar 2025 09:23:43 -0700 Subject: [PATCH 2/3] update gems --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 136e1a59f..eb538ee44 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -103,7 +103,7 @@ GEM aes_key_wrap (1.1.0) ast (2.4.2) aws-eventstream (1.3.2) - aws-partitions (1.1062.0) + aws-partitions (1.1064.0) aws-record (2.13.2) aws-sdk-dynamodb (~> 1, >= 1.85.0) aws-sdk-core (3.220.1) @@ -431,7 +431,7 @@ GEM puma (6.6.0) nio4r (~> 2.0) racc (1.8.1) - rack (3.1.11) + rack (3.1.12) rack-attack (6.7.0) rack (>= 1.0, < 4) rack-cors (2.0.2) From 6bfb7ba230a3b843c6700bdc17100d0f7ebd653b Mon Sep 17 00:00:00 2001 From: Ryan Wold <64987852+ryanwoldatwork@users.noreply.github.com> Date: Tue, 11 Mar 2025 09:27:58 -0700 Subject: [PATCH 3/3] remove cx action plans --- .../admin/cx_action_plans_controller.rb | 63 -------- .../cx_action_plans/_cx_action_plan.html.erb | 22 --- .../admin/cx_action_plans/_form.html.erb | 37 ----- app/views/admin/cx_action_plans/edit.html.erb | 13 -- .../admin/cx_action_plans/index.html.erb | 44 ------ app/views/admin/cx_action_plans/new.html.erb | 11 -- app/views/admin/cx_action_plans/show.html.erb | 46 ------ config/routes.rb | 2 - .../20250307211304_rm_cx_action_plans.rb | 5 + db/schema.rb | 11 +- spec/requests/admin/cx_action_plans_spec.rb | 141 ------------------ 11 files changed, 6 insertions(+), 389 deletions(-) delete mode 100644 app/controllers/admin/cx_action_plans_controller.rb delete mode 100644 app/views/admin/cx_action_plans/_cx_action_plan.html.erb delete mode 100644 app/views/admin/cx_action_plans/_form.html.erb delete mode 100644 app/views/admin/cx_action_plans/edit.html.erb delete mode 100644 app/views/admin/cx_action_plans/index.html.erb delete mode 100644 app/views/admin/cx_action_plans/new.html.erb delete mode 100644 app/views/admin/cx_action_plans/show.html.erb create mode 100644 db/migrate/20250307211304_rm_cx_action_plans.rb delete mode 100644 spec/requests/admin/cx_action_plans_spec.rb diff --git a/app/controllers/admin/cx_action_plans_controller.rb b/app/controllers/admin/cx_action_plans_controller.rb deleted file mode 100644 index d2dff6c4e..000000000 --- a/app/controllers/admin/cx_action_plans_controller.rb +++ /dev/null @@ -1,63 +0,0 @@ -class Admin::CxActionPlansController < AdminController - before_action :set_cx_action_plan, only: %i[ show edit update destroy ] - - def index - @cx_action_plans = CxActionPlan.all - end - - def show - end - - def new - @service_providers = ServiceProvider.all.includes(:organization).order('organizations.name', 'service_providers.name') - @cx_action_plan = CxActionPlan.new - end - - def edit - @service_providers = ServiceProvider.all.includes(:organization).order('organizations.name', 'service_providers.name') - end - - def create - @cx_action_plan = CxActionPlan.new(cx_action_plan_params) - - respond_to do |format| - if @cx_action_plan.save - format.html { redirect_to admin_cx_action_plan_url(@cx_action_plan), notice: "Cx action plan was successfully created." } - format.json { render :show, status: :created, location: @cx_action_plan } - else - format.html { render :new, status: :unprocessable_entity } - format.json { render json: @cx_action_plan.errors, status: :unprocessable_entity } - end - end - end - - def update - respond_to do |format| - if @cx_action_plan.update(cx_action_plan_params) - format.html { redirect_to admin_cx_action_plan_url(@cx_action_plan), notice: "Cx action plan was successfully updated." } - format.json { render :show, status: :ok, location: @cx_action_plan } - else - format.html { render :edit, status: :unprocessable_entity } - format.json { render json: @cx_action_plan.errors, status: :unprocessable_entity } - end - end - end - - def destroy - @cx_action_plan.destroy - - respond_to do |format| - format.html { redirect_to cx_action_plans_url, notice: "Cx action plan was successfully destroyed." } - format.json { head :no_content } - end - end - - private - def set_cx_action_plan - @cx_action_plan = CxActionPlan.find(params[:id]) - end - - def cx_action_plan_params - params.require(:cx_action_plan).permit(:service_provider_id, :year, :delivered_current_year, :to_deliver_next_year) - end -end diff --git a/app/views/admin/cx_action_plans/_cx_action_plan.html.erb b/app/views/admin/cx_action_plans/_cx_action_plan.html.erb deleted file mode 100644 index 689c5c99a..000000000 --- a/app/views/admin/cx_action_plans/_cx_action_plan.html.erb +++ /dev/null @@ -1,22 +0,0 @@ -
- Service provider: - <%= cx_action_plan.service_provider_id %> -
- -- Year: - <%= cx_action_plan.year %> -
- -- Delivered current year: - <%= cx_action_plan.delivered_current_year %> -
- -- To deliver next year: - <%= cx_action_plan.to_deliver_next_year %> -
- -- <%= form.submit class: "usa-button" %> -
-<% end %> diff --git a/app/views/admin/cx_action_plans/edit.html.erb b/app/views/admin/cx_action_plans/edit.html.erb deleted file mode 100644 index f826fa8ef..000000000 --- a/app/views/admin/cx_action_plans/edit.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -<% content_for :navigation_title do %> - Editing CX Action Plan -<% end %> - -- <%= link_to admin_cx_action_plan_path(@cx_action_plan) do %> - - Back to CX Action Plan - <% end %> -
- - -<%= render "form", cx_action_plan: @cx_action_plan %> diff --git a/app/views/admin/cx_action_plans/index.html.erb b/app/views/admin/cx_action_plans/index.html.erb deleted file mode 100644 index 640d2a596..000000000 --- a/app/views/admin/cx_action_plans/index.html.erb +++ /dev/null @@ -1,44 +0,0 @@ -<% content_for :navigation_title do %> - CX Action Plans - - <%= link_to new_admin_cx_action_plan_path, class: "usa-button usa-button-inverted float-right" do %> - - New CX Action Plan - <% end %> -<% end %> - -| - Organization name - | -- Service Provider name - | -- Year - | -- | -
|---|---|---|---|
| - <%= cx_action_plan.service_provider.organization.name %> - | -- <%= cx_action_plan.service_provider.name %> - | -- <%= cx_action_plan.year %> - | -- <%= link_to 'View', admin_cx_action_plan_path(cx_action_plan) %> - | -
- <%= link_to admin_cx_action_plans_path do %> - - Back to CX Action Plans - <% end %> -
- -<%= render "form", cx_action_plan: @cx_action_plan %> diff --git a/app/views/admin/cx_action_plans/show.html.erb b/app/views/admin/cx_action_plans/show.html.erb deleted file mode 100644 index edd16a422..000000000 --- a/app/views/admin/cx_action_plans/show.html.erb +++ /dev/null @@ -1,46 +0,0 @@ -<% content_for :navigation_title do %> - CX Action Plan - <%= link_to edit_admin_cx_action_plan_path(@cx_action_plan), class: "usa-button usa-button-inverted float-right" do %> - - Edit - <% end %> -<% end %> -- <%= link_to admin_cx_action_plans_path do %> - - Back to CX Action Plans - <% end %> -
- -- Organization name: - <%= @cx_action_plan.service_provider.organization.name %> -
- -- Service provider: - <%= link_to @cx_action_plan.service_provider.name, admin_service_provider_path(@cx_action_plan.service_provider) %> -
- -- Year: - <%= @cx_action_plan.year %> -
- -- Delivered current year: - <%= to_markdown(@cx_action_plan.delivered_current_year) %> -
- -- To deliver next year: - <%= to_markdown(@cx_action_plan.to_deliver_next_year) %> -
-