33 Commits

Author SHA1 Message Date
Alexander Brandon Coles 5e9f3827f5 Freeze string literals in app/services
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/services
2025-07-18 17:45:24 +01:00
Marcello Rocha 2f15ea96ec Allow multi user custom field actions to apply multiple users 2025-07-10 09:03:06 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Ivan Kuchin fa5d03eae0 rubocop safe autocorrect all except Rails/WhereRange 2024-05-30 19:54:08 +02:00
Aaron Contreras 9ac2f1cd18 Run rubocop -a on app/services 2024-03-01 18:16:56 -05: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 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Christophe Bliard 4aab84d6ff Merge remote-tracking branch 'origin/dev' into feature/file-links 2022-03-11 14:22:15 +01: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 d983d7601f Merge branch 'dev' into feature/file-links 2022-03-02 14:03:03 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Christophe Bliard 221a006eef make some code easier to read 2022-02-14 09:42:52 +01:00
ulferts e4bced1a5c replace deprecated access to errors 2021-11-19 14:03:30 +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
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
ulferts a112999dcc fix ruby 2.7 deprecations (#8867) 2020-12-07 08:22:34 +01:00
ulferts 9e2287bfcc rename and inflect according to zeitwerk 2020-02-21 20:47:24 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
ulferts a93ecca5a8 Feature/members api show (#7308)
* basic members collection response

* complete member index end point

* document versions#index

* remove user association from members

There is already a more generic principals association. Having both causes confusion and leads to duplicate loading of models

* linting

* remove disabled test

* add members#show api end point

* add project and principal to member representer

* replace member.user reference with principal

* use principal reference in project members association

* modernize roles api

* complete member representer rendering

* replace remnants of user association

* add member schema api endpoint

* have dedicated available projects end point for versions

* linting

* limit roles to assignable ones in schema

* rename member to membership in api

* remove remnants of user in member

* spec fixes

* use available_projects endpoint in versions board

* add eager loading to memberships#index

* members create form api endpoint

* ensure role exists for default assignment

* extract switch for users/groups to work_packages representer

* document membership create form

* add l10n expected in specs

* strengthen the usage of a delete base service

* use base class for set attributes service

* fix alias in service

* add create endpoint to members api

* document members create endpoint

* linting

* adapt to altered service signature

* use default endpoint for wp#get

* use CF infused representer


[ci skip]
2019-05-29 09:31:56 +03:00
ulferts 1850622f20 Feature/versions api update (#7299)
Feature/versions api update

[ci skip]
2019-05-22 10:29:06 +03:00
Oliver Günther aa9897561b [28455] Ensure model contracts are initiaited immediately before saving 2018-09-05 21:03:28 +02:00
Jens Ulferts fb14d4259c restore only when new actions are an option 2018-08-21 09:34:37 +02:00
Jens Ulferts 95a4c352d7 allow sorting custom actions 2018-02-22 12:54:17 +01:00
Jens Ulferts 570788fa70 fix comparing errorenous and active actions 2018-02-22 09:13:59 +01:00
Jens Ulferts 7bba51bd44 add type and project action 2018-02-08 12:07:16 +01:00
Jens Ulferts a1812699f0 validate actions 2018-02-06 16:47:45 +01:00
Jens Ulferts abbbad5c49 handle unknown keys for actions and conditions 2018-02-06 16:47:45 +01:00
Jens Ulferts 709afa4f89 don't apply actions leading to errors 2018-02-06 16:47:44 +01:00
Jens Ulferts 414212c49f handle multi select custom fields 2018-02-06 16:42:46 +01:00
Jens Ulferts 886273ee86 initial implementation of conditions - status 2018-02-06 16:42:46 +01:00
Jens Ulferts 8d14f4b420 implement editing custom actions 2018-02-06 16:42:45 +01:00
Jens Ulferts 92ce554e53 configurable actions on custom actions 2018-02-06 16:42:45 +01:00