[obs-commits] [openSUSE/open-build-service] 8e47df: Refactor Attrib#write_container_attributes method
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 8e47dfcefdcb9a935e988cedbaaea008c2cbf608 https://github.com/openSUSE/open-build-service/commit/8e47dfcefdcb9a935e988c... Author: Björn Geuken <bgeuken@suse.de> Date: 2019-05-16 (Thu, 16 May 2019) Changed paths: M src/api/app/models/attrib.rb Log Message: ----------- Refactor Attrib#write_container_attributes method Commit: 16caa820a238063c07acededac63ff7ffb00e4f4 https://github.com/openSUSE/open-build-service/commit/16caa820a238063c07aced... Author: Björn Geuken <bgeuken@suse.de> Date: 2019-05-16 (Thu, 16 May 2019) Changed paths: M src/api/app/models/attrib.rb Log Message: ----------- Prevent writing of attributes if it's container is marked for destruction After deletion of attribute instances we send a request to the backend to update it there. But if the attribute deletion happens as part of the project / package deletion we don't want this to happen. Otherwise it could happen that the attribute deletion (after_commit callback) is requested from the backend after the project / package was deleted. Admittedly this is a shot in the dark, as I couldn't reproduce this issue. But this seems to be the only possible cause for the reported failure. Fixes #7419 Commit: acf241c7969dfda0dd221857c2550b693affce4b https://github.com/openSUSE/open-build-service/commit/acf241c7969dfda0dd2218... Author: David Kang <dkang@suse.com> Date: 2019-05-17 (Fri, 17 May 2019) Changed paths: M src/api/app/models/attrib.rb Log Message: ----------- Merge pull request #7577 from bgeuken/fix_issue_7419 Fix issue 7419 Compare: https://github.com/openSUSE/open-build-service/compare/a0572a1e8556...acf241...
participants (1)
-
David Kang