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

we should coerce tag names on search #297

Open
delgadom opened this issue May 16, 2017 · 0 comments
Open

we should coerce tag names on search #297

delgadom opened this issue May 16, 2017 · 0 comments

Comments

@delgadom
Copy link
Member

  • DataFS version: 0.7.1

Description

tag names should be coerced on search

What I did

In [2]: list(api.search('SON'))
Out[2]: []

In [3]: list(api.search('son'))
Out[3]:
[u'GCP/climate/SMME/tasmin/grid025/daily/rcp85/pattern4/2034/SON.nc',
 u'GCP/climate/SMME/tasmin/grid025/daily/rcp85/pattern4/2021/SON.nc',
...
 u'GCP/climate/SMME/tasmin/grid025/daily/rcp85/pattern4/2038/SON.nc']

What I want

Instead we should be applying the same coersion methods on tag searches as we do on tag registration. That way, you get the expected behavior:

In [4]: arch = api.create('my/archive', tags=(2))
In [5]: list(api.search(2))
Out[5]: 
['my/archive']
@delgadom delgadom added this to the 1.0 milestone May 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant