Skip to content

Show workspace roles in 'auth status', tweak error message on 403.#6497

Merged
pditommaso merged 3 commits intomasterfrom
auth-status-roles
Oct 22, 2025
Merged

Show workspace roles in 'auth status', tweak error message on 403.#6497
pditommaso merged 3 commits intomasterfrom
auth-status-roles

Conversation

@ewels
Copy link
Member

@ewels ewels commented Oct 21, 2025

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 on nextflow launch

  • Adds a row to nextflow auth status table telling the user what roles they have for the workspace
  • Tweaks the error message text slightly if nextflow launch returns a 403, saying that they need maintain or more and can find out what roles they have by running nextflow auth status
CleanShot 2025-10-21 at 17 48 17@2x

@ewels ewels requested review from Copilot and jorgee October 21, 2025 15:49
@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 8ebf533
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68f895f12527ed0008b8b684

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 status output 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.

Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
@ewels ewels force-pushed the auth-status-roles branch from 1a53551 to 064ffcc Compare October 21, 2025 15:50
@bentsherman bentsherman added this to the 25.10 milestone Oct 21, 2025
@ewels ewels removed the request for review from jorgee October 22, 2025 08:29
@pditommaso pditommaso merged commit 0633d90 into master Oct 22, 2025
22 checks passed
@pditommaso pditommaso deleted the auth-status-roles branch October 22, 2025 08:48
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.

4 participants