[openSUSE/open-build-service] 2f2023: Handle statistics result returning nil
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 2f20230f7e1c38c3ee29b61755216866c8a2e457 https://github.com/openSUSE/open-build-service/commit/2f20230f7e1c38c3ee29b6... Author: Saray Cabrera Padrón <scabrerapadron@suse.de> Date: 2023-12-20 (Wed, 20 Dec 2023) Changed paths: M src/api/app/models/local_build_statistic/for_package.rb Log Message: ----------- Handle statistics result returning nil The backend statistics return no results (nil) in some corner cases. We better use `blank?` than `empty?` to cover both empty array and nil. Commit: 560162e92566a5daafba88c890eaa11cc39c90d9 https://github.com/openSUSE/open-build-service/commit/560162e92566a5daafba88... Author: Saray Cabrera Padrón <scabrerapadron@suse.com> Date: 2023-12-20 (Wed, 20 Dec 2023) Changed paths: M src/api/app/models/local_build_statistic/for_package.rb Log Message: ----------- Merge pull request #15407 from saraycp/fix_15404/empty_statistics_result Handle statistics result returning nil Compare: https://github.com/openSUSE/open-build-service/compare/9bc909ed6e55...560162...
participants (1)
-
Saray Cabrera Padrón