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
Tickets/dm 7719 #29
Tickets/dm 7719 #29
Conversation
I'm still checking these. @TallJimbo has checked the unit tests. I'll add a reviewer for the code when I'm ready. |
components[0] = location.componentInfo[components[0]].datasetType | ||
# join components back into a dot-delimited string | ||
datasetType = '.'.join(components) | ||
location = self._locate(datasetType, dataId, write) |
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.
I don't think this recursion does what you want, since only components[0]
is ever modified. That also suggests that you may need to do a test of a datasetType like "foo.bar.baz". Also, what if the component datasetType contains one or more dots?
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.
Oops. Never mind about the first part, I missed the components = components[1:]
above. And I think the second part might also not be an issue.
# enforce dataId & repository tags when reading: | ||
if not write and dataId.tag and len(dataId.tag.intersection(repoData.tags)) == 0: | ||
continue | ||
components = datasetType.split('.') |
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 name components
is a little confusing since it's also the term you use for the dict of components of the composite, whereas this is a list of dotted parts of the datasetType.
ce0ab30
to
7cc3a86
Compare
No description provided.