Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 20b9157af46964a006f7a5a1ce9396522330de4c
https://github.com/openSUSE/open-build-service/commit/20b9157af46964a006f7a5...
Author: Björn Geuken
Date: 2018-09-03 (Mon, 03 Sep 2018)
Changed paths:
M src/api/app/models/bs_request.rb
M src/api/spec/models/bs_request_spec.rb
Log Message:
-----------
Fix missing attribute error in statistics controller
In 429c1b2 we include some additional data to the json representation of
bs requests. This was needed by the staging controller / openSUSE release tools.
Though when the superseded_by attribute is not defined, eg. by fetching
a subset of attributes from the database, this would cause a 'missing
attribute' error.
Checking whether superseded_by is defined before calling it fixes the
issue.
Fixes #5761
Commit: c2612ef813b51e0c0ba02f1d13b32c1fc05f0bc4
https://github.com/openSUSE/open-build-service/commit/c2612ef813b51e0c0ba02f...
Author: Björn Geuken
Date: 2018-09-04 (Tue, 04 Sep 2018)
Changed paths:
M src/api/app/models/bs_request.rb
M src/api/spec/models/bs_request_spec.rb
Log Message:
-----------
Merge pull request #5771 from bgeuken/fix_issue_5761
Fix missing attribute error in statistics controller
Compare: https://github.com/openSUSE/open-build-service/compare/ab87cc456eb8...c2612e...
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.