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
fix[Op-51021]: cascade attribute name change to oauth client id
Kabiru Mwenjaa908be022569
diff --git a/app/contracts/oauth_clients/create_contract.rb b/app/contracts/oauth_clients/create_contract.rbindex 3500a4774ce..ddfcc19866f 100644--- a/app/contracts/oauth_clients/create_contract.rb+++ b/app/contracts/oauth_clients/create_contract.rb@@ -31,7 +31,7 @@ module OAuthClientsinclude ActiveModel::Validationsattribute :client_id, writable: true- validates :client_id, presence: { message: I18n.t('oauth_client.errors.client_id_blank') }, length: { maximum: 255 }+ validates :client_id, presence: true, length: { maximum: 255 }attribute :client_secret, writable: truevalidates :client_secret, presence: true, length: { maximum: 255 }diff --git a/config/locales/en.yml b/config/locales/en.ymlindex df8d39d44be..c46a2eaa204 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -231,7 +231,7 @@ en:editable: "Allow the field to be editable by users themselves."visible: "Make field visible for all users (non-admins) in the project overview and displayed in the project details widget on the Project Overview."is_filter: >- Allow the custom field to be used in a filter in work package views.+ Allow the custom field to be used in a filter in work package views.Note that only with 'For all projects' selected, the custom field will show up in global views.tab:@@ -591,6 +591,8 @@ en:row_count: "Number of rows"column_count: "Number of columns"widgets: "Widgets"+ oauth_client:+ client: "Client ID"relation:delay: "Delay"from: "Work package"@@ -3535,7 +3537,6 @@ en:oauth_returned_json_error: "OAuth2 returned a JSON error"oauth_returned_http_error: "OAuth2 returned a network error"oauth_returned_standard_error: "OAuth2 returned an internal error"- client_id_blank: "ID can't be blank."wrong_token_type_returned: "OAuth2 returned a wrong type of token, expecting AccessToken::Bearer"oauth_issue_contact_admin: "OAuth2 reported an error. Please contact your system administrator."oauth_client_not_found: "OAuth2 client not found in 'callback' endpoint (redirect_uri)."diff --git a/spec/contracts/oauth_clients/create_contract_spec.rb b/spec/contracts/oauth_clients/create_contract_spec.rbindex a7b0a2ec5f2..8c418853f9e 100644--- a/spec/contracts/oauth_clients/create_contract_spec.rb+++ b/spec/contracts/oauth_clients/create_contract_spec.rb@@ -78,7 +78,7 @@ RSpec.describe OAuthClients::CreateContract doit 'is invalid, includes `ID` in error message' doexpect(contract).not_to be_valid- expect(contract.errors[:client_id]).to eq(["ID can't be blank."])+ expect(contract.errors[:client_id]).to eq(["can't be blank."])endend