Skip to content

[v8.0] chore: remove getTokensByUserID export from TokenManagerHandler - #8866

Merged
fstagni merged 1 commit into
DIRACGrid:rel-v8r0from
fstagni:backport-8865-rel-v8r0
Oct 29, 2026
Merged

fstagni merged 1 commit into
DIRACGrid:rel-v8r0from
fstagni:backport-8865-rel-v8r0

Conversation

@fstagni

@fstagni fstagni commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Backport of #8865 to rel-v8r0 (cherry-picked as 5f797ed).

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 enabled auto-merge October 29, 2026 10:14
@fstagni
fstagni disabled auto-merge October 29, 2026 10:48
@fstagni
fstagni merged commit ffaa34d into DIRACGrid:rel-v8r0 Oct 29, 2026
26 of 27 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants