Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Fixed get_tags whe using storage_path#553

Merged
dmp42 merged 2 commits intomasterfrom
486-get-tags
Sep 16, 2014
Merged

Fixed get_tags whe using storage_path#553
dmp42 merged 2 commits intomasterfrom
486-get-tags

Conversation

@shin-
Copy link
Copy Markdown
Contributor

@shin- shin- commented Sep 2, 2014

Fixes #486

@wking
Copy link
Copy Markdown
Contributor

wking commented Sep 2, 2014

On Tue, Sep 02, 2014 at 09:41:41AM -0700, Joffrey F wrote:

Fixes #486

How does this fix 486? If it does fix it, I'm surprised that
‘store.list_directory(tag_path)’ is still listing tags. I still think
this sort of tag handling should be built into a generic Storage
class, since there's currently no filesystem-agnostic way I can think
of to list tags.

@shin-
Copy link
Copy Markdown
Contributor Author

shin- commented Sep 2, 2014

@wking I can't verify that the content of fname is what I expect it to be, but I can make sure that tag_path() will return the proper result when given the correct parameters. I'm pretty sure that fixes it, but even if it didn't, it's still a more sanitized way of doing things.

@dmp42
Copy link
Copy Markdown
Contributor

dmp42 commented Sep 3, 2014

@shin- can we add tests (using STORAGE_PATH and not using it) that validate the fact this does fix #486 ? (eg: calling get_tag would fail without your patch and pass with it)

@shin-
Copy link
Copy Markdown
Contributor Author

shin- commented Sep 12, 2014

@dmp42 Added test

@dmp42
Copy link
Copy Markdown
Contributor

dmp42 commented Sep 12, 2014

@shin- does it fail with the current master?

@shin-
Copy link
Copy Markdown
Contributor Author

shin- commented Sep 12, 2014

No, I'm not calling get_tags() directly because it's an S3-specific test and I don't want the imports to get crazy. Instead, I'm reproducing the current master's get_tags behavior and check that I get a FileNotFound error, then verify that I am able to access the data using the new get_tags behavior.

@dmp42
Copy link
Copy Markdown
Contributor

dmp42 commented Sep 16, 2014

Ok, let's merge it.

dmp42 added a commit that referenced this pull request Sep 16, 2014
Fixed get_tags whe using storage_path
@dmp42 dmp42 merged commit 3fcd90e into master Sep 16, 2014
@dmp42 dmp42 deleted the 486-get-tags branch September 16, 2014 18:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker - "Repository not found" error when pulling from a private registry

3 participants