Show workspace roles in 'auth status', tweak error message on 403.#6497
Merged
pditommaso merged 3 commits intomasterfrom Oct 22, 2025
Merged
Show workspace roles in 'auth status', tweak error message on 403.#6497pditommaso merged 3 commits intomasterfrom
pditommaso merged 3 commits intomasterfrom
Conversation
✅ Deploy Preview for nextflow-docs-staging canceled.
|
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the auth status command to display workspace roles and improves the 403 error message when launching workflows. The changes leverage existing API data to provide users with better visibility into their workspace permissions.
- Display workspace roles in
auth statusoutput using data already available from the API - Improve 403 error message clarity by specifying required role and formatting
- Refactor error handling order in launch command for better logical flow
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| LaunchCommandImpl.groovy | Reordered 403 status check and improved error message formatting with clearer role requirements |
| AuthCommandImpl.groovy | Extended ConfigStatus to include workspace roles and added display logic for roles in auth status output |
| BaseCommandImpl.groovy | Added roles field to workspace details map returned from API |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
plugins/nf-tower/src/main/io/seqera/tower/plugin/auth/AuthCommandImpl.groovy
Show resolved
Hide resolved
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
1a53551 to
064ffcc
Compare
pditommaso
approved these changes
Oct 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Minor tweaks for launch and
auth status(where we already had the roles for the default workspace available from the API) to try to help the user a little more if they get a 403 error onnextflow launchnextflow auth statustable telling the user what roles they have for the workspacenextflow launchreturns a 403, saying that they need maintain or more and can find out what roles they have by runningnextflow auth status