26 Commits

Author SHA1 Message Date
Tomas Hykel 008f39b7f4 Revert "[STC-356] Disallow setting journal aggregation period to >2 hours"
This reverts commit 75de0dbcd2.
2026-06-12 15:36:40 +02:00
Tomas Hykel 75de0dbcd2 [STC-356] Disallow setting journal aggregation period to >2 hours 2026-06-12 15:31:55 +02:00
Ivan Kuchin fa1145e7db add test for Projects::Phases::ApplyWorkingDaysChangeJob not running in Settings::WorkingDaysAndHoursParamsContract 2025-06-04 18:33:29 +02:00
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Christophe Bliard b5b0c411bf Remove days per month and days per week from admin
The days_per_month setting is kept as it is also used in the frontend,
and could be useful if some people input months as durations.

The rest has been removed and can be easily retrieved from source
history.
2024-06-10 12:11:28 +02:00
Aaron Contreras 47755d0066 Ensure durations are properly validated 2024-05-31 10:59:28 -05:00
Aaron Contreras 15d4145f9e Ensure durations are positive numbers 2024-05-24 11:44:28 -05:00
Aaron Contreras be3c0c83a1 Ensure backend validation for days_per_week/days_per_month consistency 2024-05-24 11:44:27 -05:00
Aaron Contreras 102b0cc252 Make hours/day, hours/week, days/month configurable 2024-05-24 11:44:25 -05:00
jjabari-op b4590b4f64 Merge branch 'dev' into epic/49688-custom-set-of-project-attributes-grouped-in-sections 2024-03-21 05:21:28 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Dombi Attila 89ce735d23 Merge branch 'dev' into epic/49688-custom-set-of-project-attributes-grouped-in-sections 2024-03-19 20:42:54 +02:00
Oliver Günther a5bcba9416 Replace manual job checking for GoodJob concurrency checks
Replaces the manual query for the job with good_job concurrency controls.
To make this work in the test environment, we have to enqueue the job with GoodJob itself,
which is not the default.

https://community.openproject.org/work_packages/53122
2024-03-13 11:12:44 +01:00
Oliver Günther 337eda7dfa Revert "Revert "Merge pull request #12998 from opf/task/48717-replace-delayedjob""
This reverts commit dfa75621ea.
2024-03-07 13:59:24 +01:00
Markus Kahl dfa75621ea Revert "Merge pull request #12998 from opf/task/48717-replace-delayedjob"
This reverts commit 9f3e4c48ea, reversing
changes made to 10412f7c85.
2024-03-07 12:40:15 +00:00
Pavel Balashou fd6a899b29 [#48717] Replace DelayedJob with GoodJob.
https://community.openproject.org/work_packages/48717
2024-02-14 10:18:27 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Christophe Bliard 4c2a9d0aa8 Enable RSpec zero monkey patching mode
The plan for RSpec 4.0 is to disable monkey patching.

See https://github.com/rspec/rspec-core/blob/main/features/configuration/zero_monkey_patching_mode.feature for details.
2023-05-31 19:22:29 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
ulferts 81d52906d7 bail on altering working days before last change is processed 2022-09-26 11:40:26 +02:00
Dombi Attila bb107a7223 [#43819] Basic administration for non working days (excluding danger zone)
https://community.openproject.org/work_packages/43819

WorkingDays as Setting
2022-09-12 21:10:10 +02:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Oliver Günther 34f8e9dff8 Validate admin guard for all settings writers (#9012)
* Validate admin guard for all settings writers

* Add spec to test access to all links under admin

* Fix broken specs

* Keep only UpdateContract and add spec

* Move admin settings under their own namespace for clarity

Move all admin related settings under ::Admin::SettingsController

* Fix more paths and views for settings

Adds another spec to ensure all links in admin can be viewed by admin

* Fix wrongly changed settings path for repositories page

* Use plugin name for plugin settings
2021-02-22 20:46:27 +01:00