Branch: refs/heads/next_rails-7/fix-specs
Home: https://github.com/openSUSE/open-build-service
Commit: eefacaffb7ed2704abaa27aed0f42d35cfeddd94
https://github.com/openSUSE/open-build-service/commit/eefacaffb7ed2704abaa27...
Author: Dany Marcoux
Date: 2022-10-27 (Thu, 27 Oct 2022)
Changed paths:
M src/api/test/functional/person_controller_test.rb
Log Message:
-----------
Be less strict in assertion of test_update_watchlist
In Rails 6.x, the summary will be `Couldn't find Project`. In Rails 7.x,
it's slightly more verbose with `Couldn't find Project with [WHERE
`projects`.`id` NOT IN (?, ?) AND `projects`.`name` = ?]`.
Commit: 8ecb55fe3664c1e73e0370d17d97fb32b04833d2
https://github.com/openSUSE/open-build-service/commit/8ecb55fe3664c1e73e0370...
Author: Dany Marcoux
Date: 2022-10-27 (Thu, 27 Oct 2022)
Changed paths:
M src/api/app/models/maintenance_incident.rb
Log Message:
-----------
Remove unneeded quotes in SQL query for MaintenanceIncident#project_name
With Rails 7.x, MySQL surrounds numeric values with quotes whenever
queries are built from SQL fragments. This was changed to prevent
potential security vulnerabilities. This means the quotes we had before
in the modified quotes aren't needed.
For details, see https://github.com/rails/rails/issues/44312
Compare: https://github.com/openSUSE/open-build-service/compare/ba3c033bd121...8ecb55...