manager icon indicating copy to clipboard operation
manager copied to clipboard

fix: [M3-8467] - Improve validation rules for create bucket schema

Open jaalah-akamai opened this issue 1 year ago โ€ข 2 comments

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 ๐Ÿ”„

  • Update schema to account for existing validation requirements

Target release date ๐Ÿ—“๏ธ

N/A

How to test ๐Ÿงช

Prerequisites

  • Ensure multicluster flag is enabled

Reproduction steps

  • Try creating a bucket with a capital letter in the name
  • Observe the request silently fails

Verification steps

  • Checkout this branch
  • Follow reproduction steps
  • Test for -test, test--, test.- Test
  • Observe validation is working as intended

As an Author I have considered ๐Ÿค”

Check all that apply

  • [ ] ๐Ÿ‘€ Doing a self review
  • [ ] โ” Our contribution guidelines
  • [ ] ๐Ÿค Splitting feature into small PRs
  • [x] โž• Adding a changeset
  • [x] ๐Ÿงช Providing/Improving test coverage
  • [ ] ๐Ÿ” Removing all sensitive information from the code and PR description
  • [ ] ๐Ÿšฉ Using a feature flag to protect the release
  • [ ] ๐Ÿ‘ฃ Providing comprehensive reproduction steps
  • [ ] ๐Ÿ“‘ Providing or updating our documentation
  • [ ] ๐Ÿ•› Scheduling a pair reviewing session
  • [ ] ๐Ÿ“ฑ Providing mobile support
  • [ ] โ™ฟ Providing accessibility support

jaalah-akamai avatar Aug 28 '24 16:08 jaalah-akamai