Skip to content

Delta update preliminary version#11

Merged
yiiyama merged 2 commits intoSmartDataProjects:productionfrom
dr-stringfellow:production
Oct 13, 2017
Merged

Delta update preliminary version#11
yiiyama merged 2 commits intoSmartDataProjects:productionfrom
dr-stringfellow:production

Conversation

@dr-stringfellow
Copy link
Copy Markdown
Collaborator

All checks have been completed.

sites = list(set([r.site for r in replica_list])) # list of sites
datasets = list(set([r.block.dataset for r in replica_list])) # list of datasets
groups = list(set([r.block.group for r in replica_list])) # list of groups
# Load all groups - otherwise it won't pass obj.name in the make_map function if group == None.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will create new group objects, so in general block_id_map[replica.block] will crash with KeyError.

Copy link
Copy Markdown
Collaborator

@yiiyama yiiyama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As written in the comment, the new function can crash in general cases, but with our use case we are fine. To be updated in the next patch release.

@yiiyama yiiyama merged commit 76c78d0 into SmartDataProjects:production Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants