Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[app] Custom User and Team Notifications #394

Merged

Conversation

ricoberger
Copy link
Member

It is now possible to customize the notification settings per user and
team. For that a new "notifications" property was added to both CRDs,
which can be used to define custom notification groups. If a user or
teams has not defined any notifications the global notification groups
are used.

We also adjusted the documentation and added a "Notification Options"
section for each plugin.

Closes #385

@ricoberger ricoberger force-pushed the app-allow-users-and-teams-to-customize-notifications branch from a6e4160 to 3248be8 Compare July 13, 2022 17:49
It is now possible to customize the notification settings per user and
team. For that a new "notifications" property was added to both CRDs,
which can be used to define custom notification groups. If a user or
teams has not defined any notifications the global notification groups
are used.

We also adjusted the documentation and added a "Notification Options"
section for each plugin.

Besides that we also fixed a bug in the applications and teams API,
where the "Teams" field was used to check the users permissions instead
of the "Permissions.Teams" field from the user context. This was
noticed, because we added the list of teams from the corresponding
header also when authentication is disabled.
@ricoberger ricoberger force-pushed the app-allow-users-and-teams-to-customize-notifications branch from 3248be8 to 5520a50 Compare July 13, 2022 17:53
@codecov-commenter
Copy link

Codecov Report

Merging #394 (5520a50) into main (ea7a43e) will increase coverage by 0.21%.
The diff coverage is 84.12%.

@@            Coverage Diff             @@
##             main     #394      +/-   ##
==========================================
+ Coverage   45.21%   45.43%   +0.21%     
==========================================
  Files         134      134              
  Lines       10379    10435      +56     
==========================================
+ Hits         4693     4741      +48     
- Misses       5608     5614       +6     
- Partials       78       80       +2     
Impacted Files Coverage Δ
pkg/hub/api/applications/topology.go 0.00% <0.00%> (ø)
pkg/hub/hub.go 0.00% <0.00%> (ø)
pkg/hub/store/shared/satellite.go 62.66% <0.00%> (-7.49%) ⬇️
pkg/hub/api/applications/applications.go 100.00% <100.00%> (ø)
pkg/hub/api/notifications/notifications.go 100.00% <100.00%> (ø)
pkg/hub/api/teams/teams.go 100.00% <100.00%> (ø)
pkg/hub/middleware/userauth/auth.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea7a43e...5520a50. Read the comment docs.

@ricoberger ricoberger merged commit 9ac1581 into main Jul 13, 2022
@ricoberger ricoberger deleted the app-allow-users-and-teams-to-customize-notifications branch July 13, 2022 18:09
@ricoberger ricoberger added the changelog: added A new feature was added label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: added A new feature was added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[app] Add Notifications
2 participants