[openSUSE/open-build-service] 5d090c: Fix fetching a nil sourcediff

Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 5d090c7c0a4933cfccd74b5a4515d88b9d28d273 https://github.com/openSUSE/open-build-service/commit/5d090c7c0a4933cfccd74b... Author: Dani Donisa <dani.doni@gmail.com> Date: 2024-02-27 (Tue, 27 Feb 2024) Changed paths: M src/api/app/controllers/webui/request_controller.rb Log Message: ----------- Fix fetching a nil sourcediff This fixes an "undefined method `reduce' for nil:NilClass" error. The fetch has a default option for when the `:sourcediff` key does not exist, but if the sourcediff is actually nil, the reduce fails. This PR adds a default empty array for the reduce to work. Commit: 3d1c972ae954029b5e50214aa8dafbff53e4adc5 https://github.com/openSUSE/open-build-service/commit/3d1c972ae954029b5e5021... Author: Dani Donisa <dani.doni@gmail.com> Date: 2024-02-28 (Wed, 28 Feb 2024) Changed paths: M src/api/app/controllers/webui/request_controller.rb Log Message: ----------- Merge pull request #15562 from danidoni/fix-fetching-a-nil-sourcediff Fix fetching a nil sourcediff Compare: https://github.com/openSUSE/open-build-service/compare/3ac1a5cc57d9...3d1c97... To unsubscribe from these emails, change your notification settings at https://github.com/openSUSE/open-build-service/settings/notifications
participants (1)
-
Dani Donisa