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
Make error_not_found a common attribute error
Oliver Günthera12dbc69ba5a
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex a100605a28d..2b2021c50a0 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1320,6 +1320,7 @@ en:error_unauthorized: "may not be accessed."error_readonly: "was attempted to be written but is not writable."error_conflict: "Information has been updated by at least one other user in the meantime."+ error_not_found: "not found."email: "is not a valid email address."empty: "can't be empty."enterprise_plan_required: "requires at least the %{plan_name}."@@ -1479,8 +1480,6 @@ en:cannot_be_a_non_working_day: "can't be a non-working day."query:attributes:- project:- error_not_found: "not found"public:error_unauthorized: "- The user has no permission to create public views."group_by:@@ -1520,10 +1519,8 @@ en:circular_dependency: "The relationship creates a circle of relationships."attributes:to_id:- error_not_found: "not found or not visible."error_readonly: "cannot be changed for existing relations."from_id:- error_not_found: "not found or not visible."error_readonly: "cannot be changed for existing relations."repository:not_available: "SCM vendor is not available"@@ -1663,10 +1660,6 @@ en:description: "'Password confirmation' should match the input in the 'New password' field."status:invalid_on_create: "is not a valid status for new users."- ldap_auth_source:- error_not_found: "not found"- auth_source:- error_not_found: "not found"member:principal_blank: "Please choose at least one user or group."role_blank: "need to be assigned."diff --git a/spec/requests/api/v3/queries/create_query_spec.rb b/spec/requests/api/v3/queries/create_query_spec.rbindex f142ebe5de9..323918b54a1 100644--- a/spec/requests/api/v3/queries/create_query_spec.rb+++ b/spec/requests/api/v3/queries/create_query_spec.rb@@ -171,7 +171,7 @@ RSpec.describe "POST /api/v3/queries",post!expect(last_response).to have_http_status :unprocessable_entity- expect(json["message"]).to eq "Project not found"+ expect(json["message"]).to eq "Project not found."endit "yields a 422 error given an unknown operator" dodiff --git a/spec/requests/api/v3/queries/update_query_spec.rb b/spec/requests/api/v3/queries/update_query_spec.rbindex 8ec7dc898da..98a852b1095 100644--- a/spec/requests/api/v3/queries/update_query_spec.rb+++ b/spec/requests/api/v3/queries/update_query_spec.rb@@ -191,7 +191,7 @@ RSpec.describe "PATCH /api/v3/queries/:id",post!expect(last_response).to have_http_status :unprocessable_entity- expect(json["message"]).to eq "Project not found"+ expect(json["message"]).to eq "Project not found."endit "yields a 422 error given an unknown operator" do