Skip to content

Commit 1c44f78

Browse files
Release OpenProject 12.1.2
2 parents 2d972e1 + 9edb5df commit 1c44f78

File tree

39 files changed

+388
-124
lines changed

39 files changed

+388
-124
lines changed

app/models/setting.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ def value
157157
end
158158

159159
def value=(val)
160-
unless definition.writable?
160+
set_value! val
161+
end
162+
163+
def set_value!(val, force: false)
164+
unless force || definition.writable?
161165
raise NoMethodError, "#{name} is not writable but can be set through env vars or configuration.yml file."
162166
end
163167

app/services/principals/replace_references_service.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def rewrite_active_models(from, to)
4848
rewrite_assigned_to(from, to)
4949
rewrite_responsible(from, to)
5050
rewrite_actor(from, to)
51+
rewrite_owner(from, to)
5152
end
5253

5354
def rewrite_custom_value(from, to)
@@ -107,6 +108,12 @@ def rewrite_actor(from, to)
107108
end
108109
end
109110

111+
def rewrite_owner(from, to)
112+
[::Doorkeeper::Application].each do |klass|
113+
klass.where(owner_id: from.id).update_all(owner_id: to.id)
114+
end
115+
end
116+
110117
def rewrite_assigned_to(from, to)
111118
[WorkPackage].each do |klass|
112119
klass.where(assigned_to_id: from.id).update_all(assigned_to_id: to.id)

app/services/projects/copy/work_packages_dependent_service.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ def copy_work_package_attribute_overrides(source_work_package, parent_id, user_c
134134
assigned_to_id: work_package_assigned_to_id(source_work_package),
135135
responsible_id: work_package_responsible_id(source_work_package),
136136
custom_field_values: custom_value_attributes,
137+
# We don't support copying budgets right now
138+
budget_id: nil,
139+
137140
# We fetch the value from the global registry to persist it in the job which
138141
# will trigger a delayed job for potentially sending the journal notifications.
139142
send_notifications: ActionMailer::Base.perform_deliveries

app/views/onboarding/_menu_item.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ See COPYRIGHT and LICENSE files for more details.
2929
<li
3030
class="op-menu--item"
3131
data-augmented-model-wrapper
32+
data-activation-selector=".onboarding-modal--activation-link"
3233
data-modal-iframe-url="<%= OpenProject::Configuration.onboarding_video_url %>"
3334
data-modal-class-name="onboarding-modal op-modal_autoheight -highlight"
3435
>
3536
<%= link_to t(:label_introduction_video),
3637
'',
3738
title: t(:label_introduction_video),
38-
class: 'op-menu--item-action modal-delivery-element--activation-link' %>
39+
class: 'op-menu--item-action onboarding-modal--activation-link' %>
3940
<%= render partial: '/onboarding/onboarding_video_modal' %>
4041
</li>

config/constants/settings/definitions.rb

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@
100100
value: nil,
101101
writable: false
102102

103+
# Configures the authentication capabilities supported by the instance.
104+
# Currently this is focused on the configuration for basic auth.
105+
# e.g.
106+
# authentication:
107+
# global_basic_auth:
108+
# user: admin
109+
# password: 123456
110+
add :authentication,
111+
format: :hash,
112+
value: nil,
113+
writable: false
114+
103115
add :autofetch_changesets,
104116
value: true
105117

@@ -510,6 +522,10 @@
510522
value: false,
511523
writable: false
512524

525+
add :ldap_users_disable_sync_job,
526+
value: false,
527+
writable: false
528+
513529
add :ldap_tls_options,
514530
value: {},
515531
writable: false
@@ -725,8 +741,7 @@
725741

726742
add :sendmail_location,
727743
format: :string,
728-
value: "/usr/sbin/sendmail",
729-
writable: false
744+
value: "/usr/sbin/sendmail"
730745

731746
# Which breadcrumb loggers to enable
732747
add :sentry_breadcrumb_loggers,
@@ -807,7 +822,6 @@
807822
add :smtp_authentication,
808823
format: :string,
809824
value: 'plain',
810-
writable: false,
811825
env_alias: 'SMTP_AUTHENTICATION'
812826

813827
add :smtp_enable_starttls_auto,

config/locales/crowdin/ca.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@ ca:
6363
main-menu-bg-color: "Color de fons del menú lateral de l'esquerra."
6464
theme_warning: Canviant el tema substituireu el vostre estil personalitzat. El disseny es perdrà. N'esteu segurs que voleu continuar?
6565
enterprise:
66-
upgrade_to_ee: "Upgrade to the Enterprise Edition"
66+
upgrade_to_ee: "Actualitza a l'edició Enterprise"
6767
add_token: "Puja un token de suport de l'Enterprise Edition"
6868
replace_token: "Reemplaça el token de suport actual"
69-
order: "Order Enterprise on-premises Edition"
69+
order: "Ordena l'edició Enterpise on-premises"
7070
paste: "Enganxeu el vostre token de suport de l'Enterprise Edition"
7171
required_for_feature: "Aquesta característica només està disponible amb un token de suport de l'Enterprise Edition."
7272
enterprise_link: "Per a més informació, cliqueu aquí."
73-
start_trial: 'Start free trial'
74-
book_now: 'Book now'
75-
get_quote: 'Get a quote'
73+
start_trial: 'Inicia la prova gratuïta'
74+
book_now: 'Reserva ara'
75+
get_quote: 'Obtenir un pressupost'
7676
buttons:
77-
upgrade: "Upgrade now"
78-
contact: "Contact us for a demo"
79-
enterprise_info_html: "is an Enterprise <strong class='icon-medal'></strong> feature."
80-
upgrade_info: "Please upgrade to a paid plan to activate and start using it in your team."
77+
upgrade: "Actualitza ara"
78+
contact: "Contacta amb nosaltres per una demostració"
79+
enterprise_info_html: "és una secció <strong class='icon-medal'></strong> Enterprise"
80+
upgrade_info: "Si us plau, actualitza a una versió de pagament per tal d'activar i començar a utilitzar aquesta funcionalitat en el teu equip."
8181
journal_aggregation:
8282
explanation:
8383
text: "Individual actions of a user (e.g. updating a work package twice) are aggregated into a single action if their age difference is less than the specified timespan. They will be displayed as a single action within the application. This will also delay notifications by the same amount of time reducing the number of emails being sent and will also affect %{webhook_link} delay."

config/locales/crowdin/de.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2244,7 +2244,7 @@ de:
22442244
assigned_to_role: "Rolle der zugewiesenen Person"
22452245
member_of_group: "Gruppe der zugewiesenen Person"
22462246
assignee_or_group: "Zugewiesen an Nutzer oder dessen Gruppe"
2247-
subproject_id: "Including subproject"
2247+
subproject_id: "Einschließlich Unterprojekt"
22482248
only_subproject_id: "Nur Unterprojekt"
22492249
name_or_identifier: "Name oder Kennung"
22502250
repositories:

config/locales/crowdin/js-ca.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ ca:
2323
js:
2424
ajax:
2525
hide: "Amagar"
26-
loading: "Loading…"
27-
updating: "Updating"
26+
loading: "Carregant..."
27+
updating: "Actualitzant"
2828
attachments:
2929
draggable_hint: |
3030
Arrossega al editor per a pujar una imatge o referenciar un adjunt. Els camps tancats del editor seguiran oberts mentre se segueixi arrossegant.
@@ -86,7 +86,7 @@ ca:
8686
button_save: "Desa"
8787
button_settings: "Configuració"
8888
button_uncheck_all: "Desmarca-ho tot"
89-
button_update: "Actualitza"
89+
button_update: "Actualitzar"
9090
button_export-pdf: "Descarregar PDF"
9191
button_export-atom: "Descarregar Atom"
9292
button_create: "Crear"
@@ -1149,7 +1149,7 @@ ca:
11491149
role:
11501150
label: 'Role in %{project}'
11511151
no_roles_found: 'No roles were found'
1152-
description: 'This is the role that %{principal} will receive when they join your project. The role defines which actions they are allowed to take and which information they are allowed to see. <a href="https://www.openproject.org/docs/system-admin-guide/users-permissions/roles-permissions/#roles-and-permissions" target="_blank"> Learn more about roles and permissions. </a>'
1152+
description: 'Aquest és el rol que els %{principal} rebran quan s''uneixin al teu projecte. El rol defineix quines accions els hi són permeses i quina informació poden veure. <a href="https://www.openproject.org/docs/system-admin-guide/users-permissions/roles-permissions/#roles-and-permissions" target="_blank"> Més informació sobre rols i permisos. </a>'
11531153
required: 'Please select a role'
11541154
next_button: 'Següent'
11551155
message:

config/locales/crowdin/js-de.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ de:
11481148
role:
11491149
label: 'Rolle in %{project}'
11501150
no_roles_found: 'Keine Rollen gefunden'
1151-
description: 'This is the role that %{principal} will receive when they join your project. The role defines which actions they are allowed to take and which information they are allowed to see. <a href="https://www.openproject.org/docs/system-admin-guide/users-permissions/roles-permissions/#roles-and-permissions" target="_blank"> Learn more about roles and permissions. </a>'
1151+
description: 'Dies ist die Rolle, die %{principal} erhalten wird, wenn sie Ihrem Projekt beitreten. Die Rolle legt fest, welche Maßnahmen sie ergreifen dürfen und welche Informationen ihnen erlaubt sind. <a href="https://www.openproject.org/docs/system-admin-guide/users-permissions/roles-permissions/#roles-and-permissions" target="_blank"> Erfahren Sie mehr über Rollen und Berechtigungen. </a>'
11521152
required: 'Bitte eine Rolle auswählen'
11531153
next_button: 'Weiter'
11541154
message:

docs/api/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Examples for this include managing work packages, projects and users.
2626

2727
[Go to OpenProject API](./introduction/)
2828

29+
### OpenAPI Specification
30+
31+
Download the API specification in OpenAPI format as [json](https://www.openproject.org/docs/api/v3/spec.json) or [yml](https://www.openproject.org/docs/api/v3/spec.yml).
32+
2933
## BCF v2.1
3034

3135
This API supports BCF management in the context of BIM projects.

0 commit comments

Comments
 (0)