OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Rename controller action
Oliver Günther9c6c5668b1b2
diff --git a/frontend/src/stimulus/controllers/dynamic/recurring-meetings/form.controller.ts b/frontend/src/stimulus/controllers/dynamic/recurring-meetings/form.controller.tsindex 2d55c2ca546..64c6e0044bf 100644--- a/frontend/src/stimulus/controllers/dynamic/recurring-meetings/form.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/recurring-meetings/form.controller.ts@@ -23,7 +23,7 @@ export default class OpRecurringMeetingsFormController extends ApplicationControvoid this.turboRequests.request(- `${this.pathHelper.staticBase}/recurring_meetings/update_schedule?${urlSearchParams.toString()}`,+ `${this.pathHelper.staticBase}/recurring_meetings/humanize_schedule?${urlSearchParams.toString()}`,{headers: { Accept: 'text/vnd.turbo-stream.html' },},diff --git a/modules/meeting/app/controllers/recurring_meetings/schedule_controller.rb b/modules/meeting/app/controllers/recurring_meetings/schedule_controller.rbindex 4c078a3f4e3..8c8b842494c 100644--- a/modules/meeting/app/controllers/recurring_meetings/schedule_controller.rb+++ b/modules/meeting/app/controllers/recurring_meetings/schedule_controller.rb@@ -3,12 +3,12 @@ module RecurringMeetingsbefore_action dodo_authorize :create_meetings, global: trueend- authorization_checked! :update_text+ authorization_checked! :humanize_schedulearound_action :with_user_time_zonebefore_action :build_meeting- def update_text+ def humanize_scheduletext = @recurring_meeting.human_frequency_schedulerespond_to do |format|format.html { render plain: text }diff --git a/modules/meeting/config/routes.rb b/modules/meeting/config/routes.rbindex a46a4ff75b1..4d6b4b84570 100644--- a/modules/meeting/config/routes.rb+++ b/modules/meeting/config/routes.rb@@ -65,7 +65,7 @@ Rails.application.routes.draw dopost :template_completedendcollection do- get :update_schedule, controller: "recurring_meetings/schedule", action: :update_text+ get :humanize_schedule, controller: "recurring_meetings/schedule", action: :humanize_scheduleendenddiff --git a/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_schedule_spec.rb b/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_schedule_spec.rbindex ac44c13d2d3..33fb596bb52 100644--- a/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_schedule_spec.rb+++ b/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_schedule_spec.rb@@ -52,7 +52,7 @@ RSpec.describe "Recurring meetings schedule text",let(:format) { :html }subject do- get update_schedule_recurring_meetings_path(params:, format:)+ get humanize_schedule_recurring_meetings_path(params:, format:)responseend