Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Nov 23, 2024

closed #140

Copy link
Member

@dinmukhamedm dinmukhamedm left a comment

Choose a reason for hiding this comment

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

As a draft this looks good to me overall. Let's go ahead and test this/remove the redundant routes and methods in the backend


const UpdatePipelineSchema = z.object({
name: z.string().optional(),
visibility: z.enum(['PUBLIC', 'PRIVATE']).optional()
Copy link
Member

Choose a reason for hiding this comment

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

I think there is no way to update the "visibility" part from the UI. Let's remove handling it, this is sort of legacy. Sorry, I should have mentioned that in the issue description.

Comment on lines +293 to +294
export const DEFAULT_NEW_PIPELINE_VERSION_ID_STRING =
'db6d1708-9836-42f2-a3ea-732ca7709039';
Copy link
Member

Choose a reason for hiding this comment

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

nit, let's rename this to DEFAULT_NEW_PIPELINE_TEMPLATE_ID.
Two small changes:

  • clearer communication that this is a template. Yes, I gave the variable the original name and only now I realize how confusing it is.
  • no need to call it a string. The only reason it was called a string was an indication in Rust to parse it to UUID. As we don't need to do that in JS, we can drop that part

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.

1 participant