Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 9708debfb499d9cdac5bd09ca67d8c15e76f0fed
https://github.com/openSUSE/open-build-service/commit/9708debfb499d9cdac5bd0...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/models/event/base.rb
A src/api/app/models/event/create_report.rb
M src/api/app/models/event_subscription.rb
Log Message:
-----------
Add `create_report` to events and event subscription
Commit: 9898bc2696ffa018775492da7c914f00a01b12de
https://github.com/openSUSE/open-build-service/commit/9898bc2696ffa018775492...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/models/report.rb
Log Message:
-----------
Trigger report event creation when a report is created
Commit: 3cc4bfdb0ec434ad0e7b32c26c5c356b136947a9
https://github.com/openSUSE/open-build-service/commit/3cc4bfdb0ec434ad0e7b32...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/models/user.rb
Log Message:
-----------
Add `is_moderator?` method to user model
For now we consider users with `admin` and `staff` role
as moderator for reports.
Commit: 5f7fcf80d931591a78a9bc47bd59b6194777ce16
https://github.com/openSUSE/open-build-service/commit/5f7fcf80d931591a78a9bc...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/models/event_subscription/form.rb
Log Message:
-----------
Show `create_report` event subscription form only to moderators in beta
Commit: 1fa67f620703751da475715e8fac74a180143cdb
https://github.com/openSUSE/open-build-service/commit/1fa67f620703751da47571...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/services/notification_service/notifier.rb
M src/api/app/services/notification_service/web_channel.rb
M src/api/app/services/notified_projects.rb
Log Message:
-----------
Create web notifications for `create_report` event
Commit: ef0f9a69d0db5aeb4a9d8b09845749c5fc0d6137
https://github.com/openSUSE/open-build-service/commit/ef0f9a69d0db5aeb4a9d8b...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/components/notification_action_description_component.rb
M src/api/app/components/notification_avatars_component.rb
M src/api/app/components/notification_component.rb
M src/api/app/components/notification_filter_component.html.haml
M src/api/app/components/notification_filter_component.rb
M src/api/app/components/notification_filter_link_component.rb
M src/api/app/components/notification_notifiable_link_component.rb
M src/api/app/controllers/webui/users/notifications_controller.rb
M src/api/app/views/webui/users/notifications/_update.js.erb
M src/api/app/views/webui/users/notifications/index.html.haml
Log Message:
-----------
Display report web notifications for moderators in beta
Commit: 20122be8e039b55b9266fab77b36cfb920f4d2c9
https://github.com/openSUSE/open-build-service/commit/20122be8e039b55b9266fa...
Author: Dani Donisa
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/components/notification_notifiable_link_component.rb
Log Message:
-----------
Fix notification notifiable link component
Commit: e4fac5a2813af2d8648cfa2934fae5f10cb12406
https://github.com/openSUSE/open-build-service/commit/e4fac5a2813af2d8648cfa...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/queries/notifications_finder.rb
A src/api/app/queries/outdated_notifications_finder/report.rb
Log Message:
-----------
Add report notifications to finder class
Commit: 41103be29832dd3d82c66f64e27da20d3f20bc10
https://github.com/openSUSE/open-build-service/commit/41103be29832dd3d82c66f...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
A src/api/app/helpers/webui/reportables_helper.rb
M src/api/app/jobs/send_event_emails_job.rb
M src/api/app/mailers/event_mailer.rb
A src/api/app/views/event_mailer/create_report.html.haml
M src/api/spec/factories/event_subscriptions.rb
M src/api/spec/factories/reports.rb
M src/api/spec/mailers/event_mailer_spec.rb
Log Message:
-----------
Send emails for `create_report` event to moderators in beta
Commit: a59cbdfae9cc7bef30f793f5119a55dd2cfe7a5d
https://github.com/openSUSE/open-build-service/commit/a59cbdfae9cc7bef30f793...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/spec/components/notification_action_description_component_spec.rb
M src/api/spec/factories/notification.rb
Log Message:
-----------
Add specs for NotificationActionDescriptionComponent
Co-authored-by: Daniel Donisa
Commit: a0311938667515d8179323ff3fe838611cf7044a
https://github.com/openSUSE/open-build-service/commit/a0311938667515d8179323...
Author: Eduardo Navarro
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/services/notification_service/notifier.rb
Log Message:
-----------
Prevent from creating create report notifications for the RSS channel
Commit: a3bbb0b45315d0e4a4ae659657826acf0bffebf9
https://github.com/openSUSE/open-build-service/commit/a3bbb0b45315d0e4a4ae65...
Author: Eduardo Navarro
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/models/event_subscription/for_channel_form.rb
Log Message:
-----------
Disable subscription to RSS for Reports
We disable the checkbox for the RSS channel for CreateReport events in the notifications configuration page.
Commit: 7931785bc8340b1156cb90c2eda79cef4cb95e94
https://github.com/openSUSE/open-build-service/commit/7931785bc8340b1156cb90...
Author: Dani Donisa
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/spec/components/notification_notifiable_link_component_spec.rb
M src/api/spec/factories/notification.rb
Log Message:
-----------
Add spec for NotificationNotifiableLinkComponent
We only need to test that the link_for_reportables and the
link_for_commentables_on_reportables work as expected. The commentable
uses both so, that's it.
Commit: 3bf13b6bdb9a9c46920a122a9e8aff17007bf036
https://github.com/openSUSE/open-build-service/commit/3bf13b6bdb9a9c46920a12...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/spec/components/notification_filter_component_spec.rb
Log Message:
-----------
Consider content moderation beta in notification filter component spec
Commit: b4bffac5b37f77fc1cd7332c28cb91d9ef1f45ec
https://github.com/openSUSE/open-build-service/commit/b4bffac5b37f77fc1cd733...
Author: Lukas Krause
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M src/api/app/components/notification_action_description_component.rb
M src/api/app/components/notification_avatars_component.rb
M src/api/app/components/notification_component.rb
M src/api/app/components/notification_filter_component.html.haml
M src/api/app/components/notification_filter_component.rb
M src/api/app/components/notification_filter_link_component.rb
M src/api/app/components/notification_notifiable_link_component.rb
M src/api/app/controllers/webui/users/notifications_controller.rb
A src/api/app/helpers/webui/reportables_helper.rb
M src/api/app/jobs/send_event_emails_job.rb
M src/api/app/mailers/event_mailer.rb
M src/api/app/models/event/base.rb
A src/api/app/models/event/create_report.rb
M src/api/app/models/event_subscription.rb
M src/api/app/models/event_subscription/for_channel_form.rb
M src/api/app/models/event_subscription/form.rb
M src/api/app/models/report.rb
M src/api/app/models/user.rb
M src/api/app/queries/notifications_finder.rb
A src/api/app/queries/outdated_notifications_finder/report.rb
M src/api/app/services/notification_service/notifier.rb
M src/api/app/services/notification_service/web_channel.rb
M src/api/app/services/notified_projects.rb
A src/api/app/views/event_mailer/create_report.html.haml
M src/api/app/views/webui/users/notifications/_update.js.erb
M src/api/app/views/webui/users/notifications/index.html.haml
M src/api/spec/components/notification_action_description_component_spec.rb
M src/api/spec/components/notification_filter_component_spec.rb
M src/api/spec/components/notification_notifiable_link_component_spec.rb
M src/api/spec/factories/event_subscriptions.rb
M src/api/spec/factories/notification.rb
M src/api/spec/factories/reports.rb
M src/api/spec/mailers/event_mailer_spec.rb
Log Message:
-----------
Merge pull request #14913 from krauselukas/feature/report_notifications
Create notifications for reported objects
Compare: https://github.com/openSUSE/open-build-service/compare/ea4513e3f589...b4bffa...