Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 693852490e4f6f743d6afb44d28c6a680085801d
https://github.com/openSUSE/open-build-service/commit/693852490e4f6f743d6afb...
Author: Stephan Kulow
Date: 2018-12-17 (Mon, 17 Dec 2018)
Changed paths:
M src/api/app/helpers/flag_helper.rb
M src/api/app/views/models/_package.xml.builder
M src/api/app/views/models/_project.xml.builder
Log Message:
-----------
Move rendering flags into flag helper
Fetch the loops in one go and group_by in ruby (not to be confused
by group, which translates to 'GROUP BY'), so that we can prefetch
all architectures for all flags in one go, which translates into 2
queries - where we had up N+1 queries for architectures and up to
2 queries per flag type
Also share this improvement directly between package and project
Co-authored-by: Ana María Martínez Gómez
Commit: b9f073f86c1e9cc50631aaf3055f6609b291af9e
https://github.com/openSUSE/open-build-service/commit/b9f073f86c1e9cc50631aa...
Author: Victor Pereira
Date: 2018-12-18 (Tue, 18 Dec 2018)
Changed paths:
M src/api/app/helpers/flag_helper.rb
M src/api/app/views/models/_package.xml.builder
M src/api/app/views/models/_project.xml.builder
Log Message:
-----------
Merge pull request #6634 from coolo/optimtize_flags_rendering
Just fetch the flags and check if they are empty afterwards
Compare: https://github.com/openSUSE/open-build-service/compare/1e9d3d37784c...b9f073...
**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.