rucio icon indicating copy to clipboard operation
rucio copied to clipboard

allow wildcard * on a scope level

Open txp314 opened this issue 2 years ago • 2 comments

Description

Hey guys,

last year at the rucio workshop in Lancaster we talked about the possibility to allow wildcards on the scope level.

By doing so queries like: rucio list-dids --filter 'type=file' '*:some_prefix*' would be possible.

At the moment a * at the scope level is not allowed.

Motivation

If I remember correctly you said at the workshop that this is not a good idea for CERN, due to your huge number of files and scopes, which could make those kind of queries very slow and/or computationally intensive.

Nevertheless, this would be really helpful for other communities. For example in our case at a research institute for solar physics, we create a scope for every observation campaign. Within an observation campaign there is are files from different instruments, which can be distinguished by filename.

So, if we want to get all the data from an instrument no matter in which campaign we could do something like:

rucio list-dids --filter 'type=file' '*:telescopeA*'

I am sure this would be useful for others as well.

Change

The idea in Lancaster during a brief discussion on this topic was to make this feature configurable. So the default stays the same - no wildcard searches on scopes, but if needed the wildcard search on scope level can be enabled in the configs.

I hope you consider this proposal. Thank you.

txp314 avatar Feb 06 '23 19:02 txp314

I think this would be a very nice extension, and should be a server side configuration option so users can't work around it :-)

mlassnig avatar Feb 07 '23 07:02 mlassnig

Hi Alex, Yes this is a good idea, but needs to be made configurable as Mario said.

bari12 avatar Feb 08 '23 14:02 bari12