Commit Graph

67 Commits

Author SHA1 Message Date
Juan Pablo Villafáñez
9e1b80a1be feat: use runners to startup the services 2025-09-12 12:18:47 +02:00
Ralf Haferkamp
76b16765d8 cleanup: Avoid fetching group membership when not needed
Use the new GetUserNoGroups helper to lookup users without resolving
groupmemberships where possible.

Closes: #1005
2025-06-12 09:47:53 +02:00
André Duffeck
e8d35e1280 Use the opencloud reva from now on 2025-01-21 11:16:38 +01:00
Jörn Friedrich Dreyer
9d29d8ce0f notifications
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-16 17:01:27 +01:00
Jörn Friedrich Dreyer
db39b8ed3b use opencloudurl
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-16 11:13:08 +01:00
Ralf Haferkamp
213e9663a9 Rename go-micro services 2025-01-16 09:45:46 +01:00
André Duffeck
6cad539024 Fix tests 2025-01-16 09:27:57 +01:00
André Duffeck
8c8cdd9310 Adapt protobuf naming 2025-01-15 11:04:32 +01:00
Jörn Friedrich Dreyer
b07b5a1149 use plain pkg module
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 16:42:19 +01:00
Jörn Friedrich Dreyer
8e028f17e9 change module name
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 09:58:18 +01:00
Bastian Beier
4b764535c9 refactor: Make sonar happy 2025-01-09 17:35:42 +01:00
Bastian Beier
8e89a34958 fix: Missing return statement after error on getting service user context 2025-01-09 16:34:51 +01:00
Bastian Beier
7697e6d9e5 refactor: Use zerolog.Logger instead of log.Logger 2025-01-09 16:15:53 +01:00
Bastian Beier
6566192777 feat: Add job to create grouped email on event 2025-01-09 16:15:51 +01:00
Bastian Beier
9849e747e1 feat: Persist events for grouped emails based on settings 2025-01-09 16:15:50 +01:00
Bastian Beier
9af84f02e4 feat: Send emails when retrieval of setting fails 2025-01-09 16:15:49 +01:00
Bastian Beier
517660ad06 Add filtering of mails based on settings 2024-12-23 09:29:55 +01:00
jkoberg
995b0e5425 fix(notifications): fix custom translation paths
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-09-27 09:22:57 +02:00
Roman Perekhod
0c7bc8a123 The golang conditional construction moved out from the transifex template 2024-09-12 22:46:31 +02:00
Florian Schade
5ceb081262 enhancement(notifications): process ocm invites and sent out a mail notification 2024-09-05 17:30:33 +02:00
Florian Schade
194921eb0c enhancement: handle ocm event notifications 2024-09-05 17:28:27 +02:00
Jörn Friedrich Dreyer
84e87cd722 set the configured protocol transport for service metadata
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-23 20:51:17 +02:00
Jörn Friedrich Dreyer
d1fd65466f reuse default node id when registering services
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 13:07:54 +02:00
Ralf Haferkamp
ff6674f97b Fix fallout of reva bump
reva tries to avoid copying proto messages now. This changed some calls
to take pointers now (mainly e.g. FormatResourceId())
2024-07-11 15:21:56 +02:00
Roman Perekhod
3520431e1f fixed the email template when the description was marked as a link 2024-06-27 13:51:12 +02:00
jkoberg
24b5f8547a allow using custom lang for space templates
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-03-27 10:56:43 +01:00
jkoberg
b54344196e move more functionality to l10n pkg
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-03-27 10:34:54 +01:00
jkoberg
e1fad5c6e9 make nats-js-kv the default registry
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-19 12:13:28 +01:00
Roman Perekhod
04a5ee283e fix default language fallback (#7479)
* fix default language fallback

* Update services/userlog/pkg/config/config.go

Co-authored-by: Martin <github@diemattels.at>

* Update services/notifications/pkg/config/config.go

Co-authored-by: Martin <github@diemattels.at>

* readme updated. local env vars removed

* Update changelog/unreleased/fix-default-mail-language-fallback.md

Co-authored-by: Martin <github@diemattels.at>

* update readme's and envvar texts

* fix changelog text

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
Co-authored-by: Martin <github@diemattels.at>
2023-10-17 09:56:48 +02:00
jkoberg
ab10e5e152 use service accounts for notifications
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-08-31 12:11:43 +02:00
Daniel Swärd
6a5e21eff4 Replacing implicit grpc client initialization with explicit package local variables. 2023-07-31 12:57:59 +02:00
Roman Perekhod
f3484c3cdd Improve the notification logs when the user has no email address 2023-07-24 10:41:32 +02:00
Ralf Haferkamp
c9a9fddef1 Consitently switch to stretchr/testify
We were using stretchr/testify and test-go/testify inconsitently and
sometimes mixed in the same tests. This can cause very strange issue,
e.g when using things like mock.MatchedBy().

This moves all our code to stretchr/testify, which seems to be far
more active and maintained then test-go/testify.
2023-06-29 13:44:49 +02:00
Florian Schade
4f26424db6 [full-ci] enhancement: use reva client pool selectors (#6452)
* enhancement: use reva client pool selectors

register mock service to registry and pass tests

* enhancement: bump reva

* Fix a couple of linter issues

---------

Co-authored-by: Ralf Haferkamp <rhaferkamp@owncloud.com>
2023-06-08 12:41:04 +02:00
Roman Perekhod
cd39dd4073 Fix to prevent the email notification X-Site scripting 2023-06-02 09:47:06 +02:00
Roman Perekhod
27322c5bbf The email HTML templates added #6146 (#6147)
* The email HTML templates added #6146

* use a single palne text email template. use fs.FS

* Update services/notifications/README.md

Co-authored-by: Martin <github@diemattels.at>

* Update services/notifications/README.md

Co-authored-by: Martin <github@diemattels.at>

* fix md

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
Co-authored-by: Martin <github@diemattels.at>
2023-05-03 10:47:46 +02:00
jkoberg
8b7b8d083a respect disable email setting in notification service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-04-26 15:33:55 +02:00
Roman Perekhod
6cf09321c9 Determine the users preferred language to translate emails via Transifex. #6087 2023-04-21 16:30:48 +02:00
Roman Perekhod
22f8076a4f README.md updated.
returned value swapped
2023-04-17 16:15:21 +02:00
Roman Perekhod
cd59424a16 Make Emails translatable via transifex #6025
The transifex translation add in to the email templates.
The optional environment variable NOTIFICATIONS_TRANSLATION_PATH added to config.
2023-04-16 14:02:40 +02:00
Jörn Friedrich Dreyer
ce9c7b2868 fix notification tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-02-16 13:15:57 +00:00
Jörn Friedrich Dreyer
9b00f02383 bump reva to ec27f5f8feb3
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-02-15 15:26:07 +00:00
jkoberg
9bb83c8753 unit tests
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-01-12 13:21:37 +01:00
jkoberg
63b592a04d membership expired notification
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-01-12 13:21:11 +01:00
jkoberg
cfe7f39027 share expired notification
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-01-12 13:20:57 +01:00
David Christofas
445e594eff add notification for space unshares 2022-12-21 11:20:42 +01:00
David Christofas
68ead43000 extract code to methods 2022-12-20 14:42:14 +01:00
Jörn Friedrich Dreyer
b2b4f9893c align revactx package import (#5206)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-12-08 14:45:30 +01:00
Andre Duffeck
1b764d2142 Handle more events (#5071)
* Handle SpaceShared events

* Adapt to changed ID in the SpaceShared event

* Handle the SpaceUnshared events

* Handle the SpaceUpdated event

* update reva to latest edge

* fix typo

* Disable cyclomatic complexity check for StartAuditLogger

Co-authored-by: Michael Barz <mbarz@owncloud.com>
2022-11-23 14:00:29 +01:00
jkoberg
2443d7d687 use private link syntax for spaceinvite link
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-11-03 15:18:03 +01:00