Skip to content

[v9.0] chore: remove getTokensByUserID export from TokenManagerHandler - #8865

Open
fstagni wants to merge 1 commit into
DIRACGrid:rel-v9r0from
fstagni:rel-v9r0
Open

fstagni wants to merge 1 commit into
DIRACGrid:rel-v9r0from
fstagni:rel-v9r0

Conversation

@fstagni

@fstagni fstagni commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Works together with DIRACGrid/WebAppDIRAC#813

Summary

Removes the getTokensByUserID RPC from the TokenManager service:

 TokenManagerHandler (src/DIRAC/FrameworkSystem/Service/TokenManagerHandler.py)
   export_deleteToken
-  export_getTokensByUserID   # types_getTokensByUserID = [str]

TokenDB.getTokensByUserID is kept: it is still used internally by export_getUserTokensInfo, export_getUsersTokensInfo and export_getToken.

Evidence

  • grep getTokensByUserID after the change only shows the internal TokenDB usages (TokenManagerHandler lines 80/105, TokenDB).
  • No client or test references to TokenManager.getTokensByUserID in the repo.

Merge Danger

Door: two-way

Re-adding the export is trivial if any external client turns out to rely on it.

Blast Radius: TokenManager service clients only - any external code calling TokenManager.getTokensByUserID would break.

@fstagni fstagni changed the title chore: remove getTokensByUserID export from TokenManagerHandler [v9.0] chore: remove getTokensByUserID export from TokenManagerHandler Oct 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant