Skip to content
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

Merged
merged 4 commits into from Nov 8, 2016
Merged

Tickets/dm 7719 #29

merged 4 commits into from Nov 8, 2016

Conversation

n8pease
Copy link
Contributor

@n8pease n8pease commented Oct 13, 2016

No description provided.

@n8pease
Copy link
Contributor Author

n8pease commented Oct 13, 2016

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)
Copy link
Contributor

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?

Copy link
Contributor

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('.')
Copy link
Contributor

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.

@n8pease n8pease merged commit ac300f3 into master Nov 8, 2016
@ktlim ktlim deleted the tickets/DM-7719 branch August 25, 2018 06:15
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.

None yet

2 participants