Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 517717cea174d4da58316465139e974cac2f6004
https://github.com/openSUSE/open-build-service/commit/517717cea174d4da583164...
Author: Dany Marcoux
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M src/api/app/models/report.rb
M src/api/spec/policies/appeal_policy_spec.rb
Log Message:
-----------
Enforce the presence of a reportable on a report's creation
Creating a report without a reportable is pointless since what would
even be reported in this case? Nothing!
However after its creation, a report doesn't necessarily have a
reportable if this reportable is deleted. This is why the validation is
only on creation.
Commit: 7c5c63e5b4ef72308f22a12251500f60cb014a15
https://github.com/openSUSE/open-build-service/commit/7c5c63e5b4ef72308f22a1...
Author: Dani Donisa
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M src/api/app/models/report.rb
M src/api/spec/policies/appeal_policy_spec.rb
Log Message:
-----------
Merge pull request #15360 from dmarcoux/validations-report-reportable
Enforce the presence of a reportable on a report's creation
Compare: https://github.com/openSUSE/open-build-service/compare/e888ceba6672...7c5c63...