reva icon indicating copy to clipboard operation
reva copied to clipboard

make space registry match providerids with regexes

Open butonic opened this issue 3 years ago • 3 comments
trafficstars

We generate provider IDs dynamically. Can you make these work with regexes?

"eoshome-[dlntz]" = { address = "localhost:16000" }
"eoshome-[agjkw]" = { address = "localhost:16001" }
"eoshome-[horsy]" = { address = "localhost:16002" }
"eoshome-[bemvx]" = { address = "localhost:16003" }
"eoshome-[cfipqu]" = { address = "localhost:16004" }

For example, provider IDs 1284d238-aa92-42ce-bdc4-0b000000[9157-9159] should go to localhost:11000

And doing a ListProviders without any filters should ideally return all of these:

[
  {address: localhost:11000, provider_id: 1284d238-aa92-42ce-bdc4-0b0000009157},
  {address: localhost:11000, provider_id: 1284d238-aa92-42ce-bdc4-0b0000009158},
  {address: localhost:11000, provider_id: 1284d238-aa92-42ce-bdc4-0b0000009159}
]

Originally posted by @ishank011 in https://github.com/cs3org/reva/pull/2792#discussion_r867995757

butonic avatar May 12 '22 06:05 butonic

Hi @butonic. What's the timeline for implementing this and improving path-based lookups?

ishank011 avatar May 12 '22 09:05 ishank011

I'm starting to work on it as it's urgently needed for us and I'd appreciate it if you could review and merge it soon.

ishank011 avatar May 12 '22 09:05 ishank011

@butonic is that ticket done with the commits? Please follow up.

dragotin avatar Jun 15 '22 10:06 dragotin