DIRACGrid / DIRAC

DIRAC Grid
http://diracgrid.org
GNU General Public License v3.0
113 stars 174 forks source link

[8.0] FileCatalog: add function to get user metadata for list of LFNs #7740

Closed andresailer closed 1 month ago

andresailer commented 1 month ago

I need a function to get the user metadata for a list of LFNs. There are functions to get this information based on metadata, but I don't / can't do that, and for efficiency I need a bulk method.

I am not sure I am missing some pieces, but this works for my purposes.

I added the getFileDetailsPublic to add a checkPathPermission before getting details, similar to getFileMetadata, but I am not sure if this is necessary or not.

Since I can hotfix this on my servers it is not urgent at all

BEGINRELEASENOTES

*DMS NEW: FileCatalogHandler: add function export_getFileDetails to get the (user) metadata for a list of LFNs

ENDRELEASENOTES

DIRACGridBot commented 1 month ago

Sweep summary

Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/10388287303

Successful: