Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure unique schedule #1049

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vicksey
Copy link

@vicksey vicksey commented Nov 22, 2024

Summary

Ensure unique schedule names when adding and renaming.

Test Plan

Try to add a new schedule with a name that already exists.
Try to rename a schedule to a name that already exists.
Both shouldn't work.

Issues

Unique schedule names.

Closes #1032

@vicksey vicksey changed the title Ensure unique schedule names when adding and renaming. Ensure unique schedule Nov 22, 2024
@vicksey vicksey closed this Nov 22, 2024
@vicksey vicksey reopened this Nov 22, 2024
@MinhxNguyen7
Copy link
Member

I take that this is ready for review. Can you add the issue that you're closing in the "Issues" section of the PR? Also, please add a brief test plan for how the reviewer would confirm that your change does what it's supposed to do and probably doesn't break anything.

@jotalis jotalis mentioned this pull request Nov 24, 2024
Copy link
Member

@MinhxNguyen7 MinhxNguyen7 left a comment

Choose a reason for hiding this comment

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

Can you extract the schedule name field, along with the logic and error messages so that it can be reused?

Also, fixing the merge conflicts should allow the staging instance to deploy successfully.

label="Name"
onChange={handleNameChange}
value={name}
error={!!errorMessage}
Copy link
Member

Choose a reason for hiding this comment

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

Please use Boolean instead of !!. That's less explicit and quite weird to read.

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.

Enforce unique schedule names
2 participants