15 Commits

Author SHA1 Message Date
Alexander Brandon Coles d17da65477 Freeze string literals in app/models
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/models
2025-07-22 18:26:13 +01:00
ulferts cd615f5108 move shared function user code into module 2024-09-24 14:26:21 +02:00
ulferts 35ca717a98 include fallback to user_default_timezone and utc into all system users 2024-08-30 16:29:27 +02:00
ulferts 6298b8762d use UTC time zone as user pref if non is explicitly configured
The system did this anyway, but now it becomes explicit
2024-08-30 12:51:44 +02:00
Ivan Kuchin 22b219d2be fix copyright years for files which got them from efbd3e9b41 2024-08-16 19:27:45 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02: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
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +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 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +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
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Wieland Lindenthal efbd3e9b41 Placeholder user backend (#8935)
* Add missing copyright note to AnonymousUser [ci skip]

* Addin PlaceholderUser model and its associations

* Ensure PlaceholderUser do not "leak out" uncontrolled

* Extract Associations for User and PlaceholderUser.

- remove obsolete #assigned_issues
- remove obsoete #:responsible_for_issues
- add specs and factory for PlaceholderUser
Adding specs to PlaceholderModel

* Migration: enforce uniqueness of lastname for Group and PlaceholderUser

* Remove obsolete callback `after_add` on groups association.

The association of principals and groups still had a callback
`after_add` that called a method `user_added` on the group.
That method was not defined anymore as it was removed in
commit d93ff52a27.

* Move validation for #groupname to the right spec.

* Cleanup placeholder and group specs

* Remove Setting `workpackage_group_assignment`

* Refactoring: Extract assignable scope from Project to Member

* Refactor: Add Member scope not_locked.

* deprecate hacky scope

* remove wp_group_assignment specific test case

Co-authored-by: ulferts <jens.ulferts@googlemail.com>
2021-01-29 09:59:37 +01:00
ulferts 9e2287bfcc rename and inflect according to zeitwerk 2020-02-21 20:47:24 +01:00