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
rewrite keyword args on enums
ulfertsab7df09580bd
diff --git a/modules/github_integration/app/models/github_check_run.rb b/modules/github_integration/app/models/github_check_run.rbindex a142c00c0e6..beb15aaba80 100644--- a/modules/github_integration/app/models/github_check_run.rb+++ b/modules/github_integration/app/models/github_check_run.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbH@@ -29,13 +31,13 @@class GithubCheckRun < ApplicationRecordbelongs_to :github_pull_request, touch: true- enum status: {+ enum :status, {completed: "completed",in_progress: "in_progress",queued: "queued"}- enum conclusion: {+ enum :conclusion, {action_required: "action_required",cancelled: "cancelled",failure: "failure",diff --git a/modules/gitlab_integration/app/models/gitlab_pipeline.rb b/modules/gitlab_integration/app/models/gitlab_pipeline.rbindex a576d084c55..8a36007b92b 100644--- a/modules/gitlab_integration/app/models/gitlab_pipeline.rb+++ b/modules/gitlab_integration/app/models/gitlab_pipeline.rb@@ -33,7 +33,7 @@ class GitlabPipeline < ApplicationRecordbelongs_to :gitlab_merge_request, touch: true# TODO: confirm with the gitlab documentation what are the different statuses.- enum status: {+ enum :status, {created: "created",running: "running",success: "success",diff --git a/modules/meeting/app/models/meeting_outcome.rb b/modules/meeting/app/models/meeting_outcome.rbindex 3c26051e121..b0ccabc62c0 100644--- a/modules/meeting/app/models/meeting_outcome.rb+++ b/modules/meeting/app/models/meeting_outcome.rb@@ -31,11 +31,11 @@ class MeetingOutcome < ApplicationRecordbelongs_to :meeting_agenda_itembelongs_to :work_package- enum kind: {+ enum :kind, {information: 0,decision: 1,work_package: 2- }.freeze, _suffix: true, _default: "information"+ }.freeze, suffix: true, default: "information"validates_presence_of :meeting_agenda_itemvalidates_presence_of :notes, if: -> { information_kind? }diff --git a/modules/storages/app/models/storages/last_project_folder.rb b/modules/storages/app/models/storages/last_project_folder.rbindex 478edf5d088..cd9cb99b1ee 100644--- a/modules/storages/app/models/storages/last_project_folder.rb+++ b/modules/storages/app/models/storages/last_project_folder.rb@@ -31,5 +31,5 @@class Storages::LastProjectFolder < ApplicationRecordbelongs_to :project_storage, class_name: "Storages::ProjectStorage"- enum mode: { inactive: "inactive", manual: "manual", automatic: "automatic" }.freeze+ enum :mode, { inactive: "inactive", manual: "manual", automatic: "automatic" }.freezeend