23 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
Alexander Brandon Coles 03572f4444 Freeze string literals in app/workers
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/workers
2025-07-18 17:42:42 +01:00
Kabiru Mwenja f2c12315e6 bug/61756 Cannot delete users who have work package reminders (#18067)
Add missing active record assoc dependent destroy strategy. Destroy reminder notifications join table first to avoid foreign key violation

https://community.openproject.org/work_packages/61756
2025-02-25 10:12:49 +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
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
Klaus Zanders 0c7fd939c8 Fixes Performance/MapCompact offenses 2023-09-06 11:06:36 +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 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 512f35a96f Merge remote-tracking branch 'origin/release/12.0' into dev 2022-02-15 11:52:21 +01:00
Markus Kahl f83f96a172 elevated prio for jobs users might wait for 2022-02-09 10:59:47 +01:00
ulferts 0fe90c21a7 rework hidden/starred of queries
The MenuItems::QueryMenuItems class used to map the `starred` state is replaced by a simple boolean flag. The hidden flag is removed (but still readable) as the concept of `View`s completely replaces it.
2021-12-10 17:37:45 +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
ulferts 9fa5599392 Feature/member notifications (#8958)
* spec with correctly scoped links

* move db check into own file - fix deprecation

* basic spec for member creation service

* use constants for all notifications

* send an OP notification after member has been created

* send an OP notification after member has been updated

* mails on group member added

Depending on whether the membership existed before or not, an updated or
a created notification is send. This is done asynchronously.

* move all mail sender background jobs into namespace

* wip

* wip

* correct handling group member notifications

* add setting enable/disable mail sending on member alterations

* use services in members controller

* move Notifiable to OpenProject

* remove member after save hooks

* cleanup/testing/linting

* render member mails in receiver locale

* remove add_member! method

* use mailer layout for all mailers

* Update app/services/groups/cleanup_inherited_roles_service.rb

Co-authored-by: Oliver Günther <mail@oliverguenther.de>

* use around callback to avoid prepending

* handle nil params

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-04-20 13:45:42 +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