seqeralabs / seqera-kit

Python implementation and field-tool for automated pipeline launching through Tower CLI (beta)
Apache License 2.0
25 stars 6 forks source link

Adding a new participant raises an error because user is not found in workspace #165

Open adamrtalbot opened 3 hours ago

adamrtalbot commented 3 hours ago

If I try to add a new user with a LAUNCH role, it fails because it can't find the user:

participants:
  - name: "john.doe@seqera.io"
    type: "COLLABORATOR"
    workspace: "$ORGANIZATION_NAME/$WORKSPACE_NAME"
DEBUG:root: Running command: tw -o json participants list -w $ORGANIZATION_NAME/$WORKSPACE_NAME
INFO:root: Checking if email john.doe@seqera.io exists in Seqera Platform...
DEBUG:root: Running command: tw participants add --name john.doe@seqera.io --type COLLABORATOR --workspace $ORGANIZATION_NAME/$WORKSPACE_NAME
DEBUG:root: Running command: tw participants update --name john.doe@seqera.io --type COLLABORATOR --workspace $ORGANIZATION_NAME/$WORKSPACE_NAME --role LAUNCH
ERROR:root:ERROR: Participant 'john.doe@seqera.io' not found in workspace '999'
ERROR:root:Resource creation failed: 'ERROR: Participant 'john.doe@seqera.io' not found in workspace '999''. Check your config and try again.
adamrtalbot commented 3 hours ago

This might actually be a CLI bug, because update does not work at all:

tw participants update --name john.doe@seqera.io --type COLLABORATOR --workspace seqeralabs/nhs-training --role LAUNCH

 ERROR: Participant 'john.doe@seqera.io' not found in workspace '999'