Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 462938c85b146eb211f7ecfe42e3d0b345a6ea02
https://github.com/openSUSE/open-build-service/commit/462938c85b146eb211f7ec...
Author: Christian Bruckmayer
Date: 2018-04-10 (Tue, 10 Apr 2018)
Changed paths:
M src/api/app/jobs/bs_request_action_webui_infos_job.rb
M src/api/app/models/bs_request_action/differ/source_package_finder.rb
Log Message:
-----------
[webui] Fix 'undefined method can_modify_project? for nil:NilClass' in BsRequestActionWebuiInfosJob
The issue was in the DelayedJob is no User.current set which causes that BsRequestAction.source_access_check!
in SourcePackageFinder to throw a 'undefined method can_modify_project? for nil:NilClass'
for packages coming from a remote or linked project as they can not be found with Package#find_by_name_and_project.
This Job is only to warm up the caches in the backend by sending the diff requests and immediately discard it.
Therefore we can skip the access check anyway as the result won't be displayed somewhere.
Fix #4404
Commit: ac2b5ced59b0e9dd011600fd938bfcb29284e90b
https://github.com/openSUSE/open-build-service/commit/ac2b5ced59b0e9dd011600...
Author: Christian Bruckmayer
Date: 2018-04-10 (Tue, 10 Apr 2018)
Changed paths:
M src/api/app/jobs/bs_request_action_webui_infos_job.rb
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/for_a_superseded_request/1_1_3_1.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/for_a_superseded_request/1_1_4_1.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/for_a_target_package/creates_the_diff.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/with_non_existing_source_package/1_1_3_1.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/with_non_existing_source_package/1_1_3_2.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/with_non_existing_target_project/1_1_2_1.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/with_non_existing_target_project/1_1_2_2.yml
M src/api/spec/jobs/bs_request_action_webui_infos_job.rb
Log Message:
-----------
[webui] Implement cache for superseded requests
as we implemented diffs between superseded requests it is necessary to warm up the cache in the backend for these diffs.
See #4741.
Commit: 8cfd34996d349d2bda5c4661c865f472191462f5
https://github.com/openSUSE/open-build-service/commit/8cfd34996d349d2bda5c46...
Author: Christian Bruckmayer
Date: 2018-04-10 (Tue, 10 Apr 2018)
Changed paths:
M src/api/app/models/bs_request_action/differ/query_builder_for_superseded.rb
M src/api/spec/models/bs_request_action/differ/query_builder_for_superseded_spec.rb
Log Message:
-----------
[webui][ci] Set revision to 0
when there is no revision in query for superseded requests.
Otherwise it would return a DiffError because of not existing revision.
Commit: a009548a86e8948204ecd35392fe351af5c4013f
https://github.com/openSUSE/open-build-service/commit/a009548a86e8948204ecd3...
Author: Henne Vogelsang
Date: 2018-04-10 (Tue, 10 Apr 2018)
Changed paths:
M src/api/app/jobs/bs_request_action_webui_infos_job.rb
M src/api/app/models/bs_request_action/differ/query_builder_for_superseded.rb
M src/api/app/models/bs_request_action/differ/source_package_finder.rb
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/for_a_superseded_request/1_1_3_1.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/for_a_superseded_request/1_1_4_1.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/for_a_target_package/creates_the_diff.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/with_non_existing_source_package/1_1_3_1.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/with_non_existing_source_package/1_1_3_2.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/with_non_existing_target_project/1_1_2_1.yml
A src/api/spec/cassettes/BsRequestActionWebuiInfosJob/_perform/with_non_existing_target_project/1_1_2_2.yml
M src/api/spec/jobs/bs_request_action_webui_infos_job.rb
M src/api/spec/models/bs_request_action/differ/query_builder_for_superseded_spec.rb
Log Message:
-----------
Merge pull request #4763 from ChrisBr/feature/cache-superseded-requests
Implemented caching of superseded requests in BsRequestActionWebuiInfosJob
Compare: https://github.com/openSUSE/open-build-service/compare/49c98d311b99...a00954...