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

fix: Validate feature values before saving #4043

Merged
merged 6 commits into from
May 30, 2024

Conversation

kyle-ssg
Copy link
Member

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

  • Fixes the icon for when language validation fails
    image

  • Saving features, segment overrides and creating change requests will now validate values in the same way.
    image

How did you test this code?

Attempted to create an invalid change request, segment override and remote config

Copy link

vercel bot commented May 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 0:52am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 0:52am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 0:52am

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label May 29, 2024
Copy link
Contributor

github-actions bot commented May 29, 2024

Uffizzi Preview deployment-52387 was deleted.

@matthewelwell
Copy link
Contributor

Hmm... @kyle-ssg it looks like it's not clearing the state after failing validation once, see here: https://www.loom.com/share/37b89881d8f34b32a99d6e1101cb3bf0?sid=088017f1-ba32-40e3-9c70-ec6f67637e73

@rolodato
Copy link
Member

@kyle-ssg I've found one more way to get around the validation, which is by editing a segment override from the segment definition itself:

Screen.Recording.2024-05-29.at.13.18.11.mov

Everything else I've tested works well 👍

@kyle-ssg
Copy link
Member Author

@rolodato good spot, associated segment overrides will now include this too

@kyle-ssg kyle-ssg added this pull request to the merge queue May 30, 2024
Merged via the queue into main with commit fef9f8f May 30, 2024
21 checks passed
@kyle-ssg kyle-ssg deleted the chore/always-validate-saving-feature branch May 30, 2024 13:56
@kyle-ssg kyle-ssg linked an issue Jun 4, 2024 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants