33 Commits

Author SHA1 Message Date
Klaus Zanders f404f7c354 Properly destroy items linked to the user when they are destroyed 2026-04-23 10:38:12 +02:00
Klaus Zanders 0902b6de44 Add specs for the deletion of our new models 2026-03-06 13:36:04 +01:00
Klaus Zanders a415b615e9 Fix deletion specs 2026-03-03 16:39:16 +01:00
Alexander Brandon Coles 2b144e8542 Fix wording: Change "Favored" to "Favorited"
Favorite is the correct term in the context of expressing a preference
for a particular project / other OpenProject domain object.

Updates `ActsAsFavorable` to `ActsAsFavoritable`, as well as filenames,
identifiers and strings to:

    favored => favorited
    favorable => favoritable
    favoring => favoriting
2025-09-10 19:08:15 +01:00
Pavel Balashou f5da66ccb7 [#66996] Hide deleted users from everywhere.
https://community.openproject.org/work_packages/66996
2025-08-29 17:05:08 +02:00
Klaus Zanders c0db85b35b Remove remaining usages of work_package instead of entity in Unit Specs 2025-07-14 09:31:26 +02:00
Jan Sandbrink da9aa9b6a5 Add service accounts
Service accounts are intended to be special users
that are not explicitly manageable through the users UI
(just like "System" and the like), but are intended for
identification of "services", not real people.

The initial scope of this will be to allow authentication
of SCIM clients, that will be able to provision users into
and out of OpenProject. However, the general idea is to
allow using service accounts for generic application-to-application
communication as well. Given proper permissions and scopes (i.e. api_v3),
it would also be possible to use a service account for requests
against our normal APIv3.
2025-03-25 15:18:54 +01:00
Alexander Brandon Coles 1d707895c6 Grammar fixes in code, docs: possessive its/it's
- **it's** is a contraction of _it is_ or _it has_. It requires an
apostrophe.
- **its** is the posssive form of _it_, denoting ownership. It should
not use an apostrophe.
2025-02-12 06:36:46 -03:00
Oliver Günther d9c8489626 Allow deletion of users that favored projects
https://community.openproject.org/work_packages/60171
2024-12-17 10:34:29 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Klaus Zanders db580141cc Move ProjectQuery model to the main namespace 2024-06-26 16:23:10 +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
Oliver Günther 517ca15ea6 Replace reference of user in CostEntry
https://community.openproject.org/work_packages/53038
2024-02-26 19:10:41 +01:00
ulferts 83bd82d33d persisted project queries 2024-01-25 13:49:25 +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
ulferts 2b2abf864a introduce ProjectRole model 2023-10-09 14:34:20 +02:00
ulferts 417d5c9460 handle role selection on invite 2023-09-26 18:14:40 +02: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
Oliver Günther 4e2b1fc5ea Remove tokens on deletion and add migration and foreign key
https://community.openproject.org/wp/44500
2022-10-17 09:41:04 +02:00
ulferts a0ad5eed39 add mention replacements for groups 2022-06-28 10:53:56 +02:00
ulferts 31e801ffa4 replace structured mentions of user upon deletion 2022-06-23 18:03:12 +02:00
ulferts f2bcc11b48 Merge branch 'release/12.1' into dev 2022-06-21 08:52:47 +02:00
ulferts c0b615a0c2 delete views along with their queries 2022-06-20 09:56:43 +02:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Christophe Bliard 47a297daae Fix argument alignment since f08bea3467 (#10129)
* Fix argument alignment since f08bea3467

The FactoryBot.* prefix has been removed in f08bea3467. Since then
rubocop complains about Layout/ArgumentAlignment. This commit fixes it.

* do not fix alignments for modules/*/spec yet

hoping to be under the limit of 65535 characters for reviewdog to report on rubocop errors
2022-02-02 21:48:06 +01:00
Oliver Günther f08bea3467 Remove FactoryBot.* prefix where applicable 2022-01-25 08:19:06 +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 5d52ac0a26 Replace and delete users in notifications once deleted
https://sentry2.openproject.com/organizations/sentry/issues/480
2021-07-26 09:46:43 +02:00
Oliver Günther f4dfd6c6c6 [36238] Extract and fix user references in other objects (#9007)
* Move replacing invalid references into separate job for principals

* Write migration to remove existing invalid custom values and responsible

* Fix other specs

* Fix other specs

* rewrite replacing user in records

* consolidate principal deletion

* include placeholder users in spec

Co-authored-by: ulferts <jens.ulferts@googlemail.com>
2021-02-16 08:46:53 +01:00