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

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

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

andresailer
Copy link
Contributor

@andresailer andresailer commented Jul 31, 2024

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 DIRACGridBot added the alsoTargeting:integration Cherry pick this PR to integration after merge label Jul 31, 2024
…f lfns

add DB internal getFileDetailsPublic to add permission check before getFileDetails
@fstagni fstagni merged commit 7c8eedd into DIRACGrid:rel-v8r0 Aug 14, 2024
26 checks passed
@DIRACGridBot DIRACGridBot added the sweep:done All sweeping actions have been done for this PR label Aug 14, 2024
DIRACGridBot pushed a commit to DIRACGridBot/DIRAC that referenced this pull request Aug 14, 2024
@DIRACGridBot
Copy link

Sweep summary

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

Successful:

  • integration

@andresailer andresailer deleted the 80_fileDetails branch August 15, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alsoTargeting:integration Cherry pick this PR to integration after merge sweep:done All sweeping actions have been done for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants