-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete the list node and indirect container proxy when you purge a fi…
…leset (#1368) * delete the list node and indirect container proxy when you purge a fileset Our current application isn't cleaning up all the proxies when you purge a fileset. This results in an `owning_class` error when trying to perform a FileAttachementJob. `unlocked_obj.ordered_members.to_a` is `[nil]` Hydra-works is confusing. I can see why this might have been missed the first time around * fix the moving target bug The problem with iterating through the proxies and trying to delete the nil proxies in place is that on any subsequent deletes the index has moved. For example uo.ordered_members = [nil, nil] uo.ordered_member_proxies.delete_at(0) uo.ordered_members = [nil] uo.ordered_member_proxies.delete_at(1) uo.ordered_members = [nil] etc...
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters