-
Notifications
You must be signed in to change notification settings - Fork 361
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
fix: [M3-8467] - Improve validation rules for create bucket schema #10847
Conversation
cc @hkhalil-akamai @mjac0bs Thanks for change recommendations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm able to create buckets with expected labels ✅
Unrelated to this PR, but I'm seeing the form validate immediately when I start typing. Should we make it validate onBlur
to be consistent with our other forms like Linode Create and Volume Create?
.matches( | ||
/^[a-z0-9].*[a-z0-9]$/, | ||
'Label must start and end with a letter or number.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was about to say the same. 😄 🧠
Screen.Recording.2024-08-28.at.9.56.48.AM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better now - thanks!
.matches( | ||
/^[a-z0-9].*[a-z0-9]$/, | ||
'Label must start and end with a letter or number.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was about to say the same. 😄 🧠
Screen.Recording.2024-08-28.at.9.56.48.AM.mov
Coverage Report: ✅ |
Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
Description 📝
The API currently returns an error when creating buckets, incorrectly checking for 'name' instead of 'label'. While a fix for this issue is planned for the future, we can improve our validation in the interim.
Changes 🔄
Target release date 🗓️
N/A
How to test 🧪
Prerequisites
Reproduction steps
Verification steps
-test
,test--
,test.-
Test
As an Author I have considered 🤔
Check all that apply