Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Use exceptions for handling workspace add error - #641

Merged
JAORMX merged 1 commit into
stacklok:mainfrom
JAORMX:exceptions-workspace-add
Jan 17, 2025
Merged

Use exceptions for handling workspace add error#641
JAORMX merged 1 commit into
stacklok:mainfrom
JAORMX:exceptions-workspace-add

Conversation

@JAORMX

Copy link
Copy Markdown
Contributor

This stops using the boolean and instead will raise exceptions if
there's an issue adding a workspace. This will help us differentiate if
the operation failed due to a name already being taken, or the name
having invalid characters.

Signed-off-by: Juan Antonio Osorio ozz@stacklok.com

@JAORMX
JAORMXforce-pushed the exceptions-workspace-add branch 2 times, most recently from dbf3e80 to 4cd4a57CompareJanuary 17, 2025 13:26
@JAORMX
JAORMX marked this pull request as ready for review January 17, 2025 13:26
@JAORMX
JAORMXforce-pushed the exceptions-workspace-add branch 2 times, most recently from 6f1c412 to b0ae7a8CompareJanuary 17, 2025 13:46
Comment threadsrc/codegate/pipeline/cli/commands.py Outdated
Comment threadsrc/codegate/api/v1.py Outdated
aponcedeleonch
aponcedeleonch previously approved these changes Jan 17, 2025

@aponcedeleonchaponcedeleonch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Left a cosmetic comment but otherwise seems good

This stops using the boolean and instead will raise exceptions if
there's an issue adding a workspace. This will help us differentiate if
the operation failed due to a name already being taken, or the name
having invalid characters.
Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
@JAORMX
JAORMX merged commit c6d8a30 into stacklok:mainJan 17, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@JAORMX@aponcedeleonch