Skip to content

Not considering replicas for deletions if on certain site#22

Merged
dr-stringfellow merged 4 commits intoSmartDataProjects:productionfrom
yiiyama:production
Nov 24, 2017
Merged

Not considering replicas for deletions if on certain site#22
dr-stringfellow merged 4 commits intoSmartDataProjects:productionfrom
yiiyama:production

Conversation

@yiiyama
Copy link
Copy Markdown
Collaborator

@yiiyama yiiyama commented Nov 24, 2017

Picked up #21. Result of a test run is at http://t3desk007.mit.edu/dynamo/detoxtest.php?cycleNumber=10835. If you open some large site and search for protected_site you find some datasets protected because they are on a protected site (i.e. CNAF MSS).

Copy link
Copy Markdown
Collaborator

@dr-stringfellow dr-stringfellow left a comment

Choose a reason for hiding this comment

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

Would it make more sense to introduce after l.107 in the main.py:

replica.dataset.demand['on_protected_site'] = False

and then replace l.109 with:

if not replica.dataset.demand['on_protected_site']:
replica.dataset.demand['on_protected_site'] = self.inventory_manager.store.check_if_on(ds_name,site name)

I am not sure what happens with datasets for which the demand variable is not filled ...

@yiiyama
Copy link
Copy Markdown
Collaborator Author

yiiyama commented Nov 24, 2017

No worries, in variables.py we place the evaluation of the flag under a try block, so having datasets without on_protected_site is not a problem.

Copy link
Copy Markdown
Collaborator

@dr-stringfellow dr-stringfellow left a comment

Choose a reason for hiding this comment

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

True, missed that.

@dr-stringfellow dr-stringfellow merged commit 2b1a270 into SmartDataProjects:production Nov 24, 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