Commit Graph

73 Commits

Author SHA1 Message Date
Marek Libra d55b8e317d Avoid false check for broadcast emails
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-08-14 15:13:51 +02:00
Patrik Oldsberg 9ad63932cf Merge pull request #25685 from JounQin/fix/notifications
fix: consider broadcast union with user
2024-08-14 12:20:02 +02:00
Heikki Hellgren 7a05f50908 fix: allow using notifications without users in catalog
additionally refactored and added tests for the notification receiver
logic

fixes #25768

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-07-25 13:45:40 +03:00
JounQin 0ce75e308d test: add related test cases
Signed-off-by: JounQin <admin@1stg.me>
2024-07-18 20:24:54 +08:00
JounQin 2322291216 fix: consider broadcast union with user
close #25682

Signed-off-by: JounQin <admin@1stg.me>
2024-07-18 19:32:43 +08:00
Vladimir Kobzev d7b8ca5aca Add topic field to NotificationGetOptions, add router query topic param, add topic filter to DatabaseNotificationsStore.ts, add unit test
Signed-off-by: Vladimir Kobzev <vkobzev@bol.com>
2024-06-03 10:58:42 +02:00
Marek Libra 484d11f469 Merge pull request #24731 from ydayagi/flpath1289
feat: add notifications filtering by processors
2024-05-22 12:50:53 +02:00
Yaron Dayagi 07a789b8c5 feat: add notifications filtering by processors
Signed-off-by: Yaron Dayagi <ydayagi@redhat.com>
2024-05-20 17:07:06 +03:00
Camila Belo eb34b87d5a refactor: stop using getVoidLogger in tests
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-05-16 09:21:54 +02:00
Camila Belo d229dc49ad refator(backend-common): extract path utilities to plugin api
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-05-13 13:23:45 +02:00
Heikki Hellgren 295c05db69 feat: support to filter notification recipients after resolving
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-21 21:50:15 +03:00
Patrik Oldsberg d1d4ddccab Merge pull request #23537 from mareklibra/FLPATH-1005.severity.followUp
chore: use colors from theme for notification's severity
2024-04-14 17:59:22 +02:00
Patrik Oldsberg 5a32ee11d4 Merge pull request #23346 from drodil/migrate_local_dev
chore: migrate to new backend in local development
2024-04-14 13:49:28 +02:00
Patrik Oldsberg 9552eff1ce Merge pull request #23882 from mareklibra/export.severities
fix(notifications): export notificationSeverities for reuse
2024-04-13 16:11:45 +02:00
Patrik Oldsberg 6f432a84c9 Merge pull request #24126 from drodil/notifications_owner_resolution
fix: entity owner relation resolution in notifications
2024-04-13 16:08:12 +02:00
Heikki Hellgren 282f62f490 chore: use code snippet for signal debugging
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-10 20:39:14 +03:00
Heikki Hellgren 9a41a7bfa8 chore: migrate to new backend in local development
additionally allow defining custom sidebar item for dev app page.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-10 20:36:44 +03:00
Heikki Hellgren 0d99528300 feat: notification processor improvements
Notification processor functions are now renamed to `preProcess` and `postProcess`.
Additionally, processor name is now required to be returned by `getName`.
A new processor functionality `processOptions` was added to process options before sending the notification.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-10 10:07:03 +03:00
Marek Libra e003e0ec87 fix(notifications): export notificationSeverities for reuse
The ordered array of constants is exported by the notifications-common
for reusability by other plugins.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-04-10 08:19:15 +02:00
Heikki Hellgren 6206039bb1 fix: entity owner relation resolution in notifications
use relations instead `spec.owner` field

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-09 15:18:59 +03:00
Fredrik Adelöw 0d60f65572 Merge pull request #23990 from marleypowell/patch-2
fix: retrieve relations when mapping group entities for notifications
2024-04-09 14:04:58 +02:00
Marley 6de1398fb7 added spec.owner
Signed-off-by: Marley <55280588+marleypowell@users.noreply.github.com>
2024-04-09 10:57:09 +00:00
Marley 7703c53089 refactor: use parentOf relations instead of using spec.children
Signed-off-by: Marley <55280588+marleypowell@users.noreply.github.com>
2024-04-09 09:16:52 +00:00
Marley 0fd2f618d0 also added spec.children
Signed-off-by: Marley <55280588+marleypowell@users.noreply.github.com>
2024-04-04 14:39:57 +00:00
Marley 07fed1ddf0 fix: retrieve relations when mapping group entities for notifications
Signed-off-by: Marley <55280588+marleypowell@users.noreply.github.com>
2024-04-04 15:28:14 +01:00
Marek Libra 376d5ef797 chore: use colors from theme for notification's severity
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-04-02 10:34:29 +02:00
Marek Libra ec40998df3 feat: add bulk actions to the Notifications page
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-21 12:11:12 +01:00
Patrik Oldsberg 4467036e2a plugins: allow unauthenticated access to health check endpoints
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-03-18 11:40:39 +01:00
Marek Libra ab7b464290 Merge pull request #23450 from mareklibra/FLPATH-1004.sorting.followup
fix: use orderField and createdAfter to unify for other plugins
2024-03-15 13:23:49 +01:00
Marek Libra 5983bcd705 chore: implement parseEntityOrderFieldParams
Based on the implemntation in plugins/catalog-backend.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-14 13:56:41 +01:00
Marek Libra cd96173afb fix: use camelCase for createdAfter in the Notifications URL
Instead of the former created_after.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-14 13:13:24 +01:00
Marek Libra bf90f64641 fix: use orderField instead of sort,sortOrder for notifications
To unify with the Catalog API.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-14 13:04:46 +01:00
Heikki Hellgren d3e45b429c chore: rebase broadcast notifications
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-03-14 13:54:16 +02:00
Heikki Hellgren 6c1547a4fb feat: add type definition to signal recipients
follows more the notifications way of setting recipients and is more
future proof

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-03-14 13:49:03 +02:00
Heikki Hellgren f1676ca73b fix: conflicts with severity filter
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-03-14 13:28:52 +02:00
Patrik Oldsberg ba14657b41 Merge branch 'master' into broadcast_notifications
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-03-14 12:10:31 +01:00
Marek Libra 883dfde5bf chore: use strings for severities instead of numbers
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-14 11:46:16 +01:00
Heikki Hellgren ba14c0e4f2 feat: support for broadcast notifications
the broadcast notifications are returned with the same queries as user
notifications with only few exceptions in the store

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-03-13 14:39:27 +02:00
Marek Libra dff7a7e9e2 feat(notifications): implement severity of notifications
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-13 12:02:50 +01:00
Patrik Oldsberg 739415b07c Merge pull request #23409 from mareklibra/flpath-1001.saved
feat: add "Save" action for notifications
2024-03-13 11:05:46 +01:00
Patrik Oldsberg 5fbb3f6e30 Merge pull request #23481 from drodil/signals_service_rename
chore: rename SignalService to SignalsService
2024-03-12 11:40:57 +01:00
Heikki Hellgren 6d84ee63ce chore: rename SignalService to SignalsService
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-03-12 12:01:24 +02:00
Marek Libra 75f2d84069 feat: add "Save" action for notifications
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-09 13:46:41 +01:00
Marek Libra 483703d1c1 chore: split DatabaseNotificationsStore tests to smaller cases
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-05 13:10:21 +01:00
Marek Libra 6e6d096b3e feat: enable sorting of notifications
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-03-04 09:28:12 +01:00
Patrik Oldsberg 80bcb8a84d Merge pull request #23246 from mareklibra/FLPATH-1003.pagination
feat(notifications): use pagination on the backend layer
2024-02-29 22:58:22 +01:00
Heikki Hellgren a790a3dfa0 feat: move notifications origin resolving to backend
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-02-29 21:33:16 +02:00
Heikki Hellgren daf85dc4ab feat(signals,events)!: migrate signals to use events service
+ allow defining event paylod in events service

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-02-28 16:00:26 +02:00
Marek Libra c0f059728a chore: use static uuids to siplify testing
It's easier to debug failing tests with constant UUIDs.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-02-28 13:21:12 +01:00
Marek Libra 8740058516 chore: regenerate api-report.md
Signed-off-by: Marek Libra <marek.libra@gmail.com>
2024-02-28 10:55:20 +01:00