29 Commits

Author SHA1 Message Date
Tobias Dillmann 0537f52f4b [#71305] Introduce MODULE_ENABLED event and use it for backlogs 2026-05-19 14:21:54 +02:00
Dombi Attila e0d5584fb6 [#72878] Reset the project sharing settings when disabling the backlogs module
https://community.openproject.org/work_packages/72878
2026-03-12 17:44:47 +02:00
Oliver Günther 0be915f1df Add subscribe listeners for JOURNAL_UPDATED 2024-11-04 11:39:44 +01:00
Oliver Günther 9dd1b79abe Merge remote-tracking branch 'origin/release/14.4' into dev 2024-08-13 10:05:30 +02:00
Marcello Rocha 291ad4be4b Introduce RemoteIndentity to decouple remote user ids from oauth tokens (#16366)
* Introduce RemoteIndentity to decouple remote user ids from oauth tokens

* Introduce RemoteIndentity to decouple remote user ids from oauth tokens

* Move dependent destroy to DB layer via ON DELETE CASCADE for remote identities

* Appease rubocop on has_many

---------

Co-authored-by: Wieland Lindenthal <w.lindenthal@forkmerge.com>
2024-08-09 19:00:05 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Ivan Kuchin 6678cab48d auto correct quotes 2024-03-28 18:22:34 +01:00
Andreas Pfohl ad895b631a Added HealthService for storages 2024-03-01 09:27:35 +01:00
Andreas Pfohl 902a71a1c6 Added storages mailer and events 2024-03-01 09:27:34 +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
Aaron Contreras 3c91ac2751 Add after_perform hook to send notifications on successful shares 2023-09-27 10:27:33 -05:00
Pavel Balashou 1be27321ae Add PROJECT_ARCHIVED PROJECT_UNARCHIVED events. 2023-08-09 16:58:41 +02:00
Pavel Balashou 89fac9d474 Apply a couple of refactorings.
- Introduce Roles::DeleteService
- Add a specific spec for testing event handlers behaviour
- Apply minor improvements
2023-08-02 16:25:34 +02:00
Pavel Balashou 24392365c8 [#49071] Trigger synchronization on oauth token creation and role storage permissions change.
https://community.openproject.org/work_packages/49071
2023-07-17 15:39:54 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
ulferts a7febaf6a0 remove journal aggregate event 2022-07-06 17:47:55 +02:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther 900ca53c18 [39177] Fix double mentioned notifications
By causing aggregated journals to update mentioned notifications before
the predecessor journal is destroyed, we can keep information about a
mention in the notification realm and skip creating another notification
for the same mention.

https://community.openproject.org/wp/39177
2021-11-09 15:51:29 +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 63ad2e8dd1 Generate IAN near real time (#9570)
* destroy notifications upon journal destruction

* breakup spec by journable

* have a dedicated job for scheduling journal completed events

* generate notifications in delayed job

* route wiki journal events through notifications

* combine mail sending for notifications into single job

* robustness if a journal is deleted

* linting

* differentiate BaseJournal and AssociatedJournal

BaseJournal holds the data of a journal that reflects the columns in the journaled model while AssociatedJournal reflects the columns of a model associated to the journaled model via a has_many/one association

* route news journal events through notifications

This does not yet include notifications for comments on news

* include news comment in notification workflow

* have the whole workflow in a single state machine job

* include forum message in notification workflow

* include document in notification workflow

* less dependencies from acts as watchable

* fix, test and document workflow job
2021-08-23 15:25:47 +02:00
Oliver Günther d2ce834e23 [37866] Add attachment_created event and webhook (#9418)
* [37866] Add attachment_created event and webhook

* Remove other usages of direct attachment creation

* Add attachment webhook spec

* Fix other webhook specs

* Fix attachment adding in mail_handler

* Don't set content_type outside attachment#file=

* Fix unrelated spec

Co-authored-by: ulferts <jens.ulferts@googlemail.com>
2021-06-29 09:24:11 +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
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 ae2edad19b Fix/copy project wiki notifications (#8777)
* rename to convey applicability to all journal notifications

* adapt journal completed job to handle wiki content

* remove empty module

* create wiki_content mail service

* introduce copy/create service and contract for wiki pages

* specify set attributes and create contract for wiki pages

* copy the content attributes

* use wiki page create service when copying wiki

* introduce specifc service for copying wiki pages

The contract disables checks for permissions on the wiki page. The copy_projects permission should suffice to copy everthing in a project

* copy wiki pages top down to rewrite hierarchy

* limit copied attachments to copied type
2020-11-03 15:24:25 +00:00
Oliver Günther 489a1b634f [33355] Enable projects for outgoing webhooks
https://community.openproject.com/wp/33355
2020-05-18 14:17:54 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 4944f02e2d Add time entry webhook 2019-11-11 17:06:02 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Markus Kahl a642714eb7 put Events into separate file 2017-12-19 14:01:49 +01:00