28 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
Alexander Brandon Coles 0091ee164d Freeze string literals in app/contracts
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/contracts
2025-07-18 17:51:41 +01:00
Ivan Kuchin 398c8136e3 check for both ApplyWorkingDaysChangeJobs 2025-06-04 18:33:21 +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 b600e76244 Sync days_per_week and days_per_month on client side 2024-05-24 11:44:26 -05:00
Aaron Contreras 102b0cc252 Make hours/day, hours/week, days/month configurable 2024-05-24 11:44:25 -05:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01: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 8eb5674445 Remove TODO comment in favor of dedicated ticket.
https://community.openproject.org/wp/53122
2024-02-28 17:21:06 +01:00
Pavel Balashou 2267a0a1e3 React on comments from review.
- Do not use string literals for job class names. Use `class.name` instead.
- Rename `ApplicationJob#good_job_scheduled_at` to `ApplicationJob#job_scheduled_at` to be backend agnostic.
- update queries in bin/check-worker-liveness to use good_jobs table
- Set good_job config options through appropriate OpenProject::Configuration
- Remove delayed_jobs table.
- Update health_check docs.
2024-02-27 22:35:33 +01: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
Dombi Attila 685b8226de [#45339] Modify the backend to support saving the non working days
https://community.openproject.org/work_packages/45339
2023-01-09 14:55:37 +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