-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorder overwritten #130
Reorder overwritten #130
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change you're making looks fine, but I noticed something else nearby which maybe should be done differently. It may belong in a separate PR.
For datasets with dataset_location
!= "dataregistry" valid_status
is left at 0. It's true there is no valid copy of the data under the control of the data registry, but I think we should distinguish such entries from those which are truly failed - either incomplete db entry, failed copy of data, or no data present where it should be when old_location
was None. I think we need 3 possible values for another bit in valid_status
, e.g.status
to keep track of whether valid data exists or not. It would never be set for entries with dataset_location
!= "dataregistry", but it wouldn't mean anything was wrong in that case either. Or, alternatively, just use the combination of status
and dataset_location
to figure out what the valid bit means.
Either way this could require changes elsewhere in the code. If you'd rather handle that in a separate PR I can go ahead and approve this one as it stands.
It looks like the All datasets regardless of type are giving a I've removed the left over |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks.
Move the tagging of
is_overwritten=True
for the previous datasets to after the copy was successful