-
Notifications
You must be signed in to change notification settings - Fork 894
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
[Workspace]Fix workspace description error when name invalid #8079
[Workspace]Fix workspace description error when name invalid #8079
Conversation
Signed-off-by: Lin Wang <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8079 +/- ##
=======================================
Coverage 60.58% 60.58%
=======================================
Files 3738 3738
Lines 88674 88674
Branches 13782 13782
=======================================
Hits 53727 53727
Misses 31662 31662
Partials 3285 3285
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
onChange={setDescription} | ||
error={formErrors.name?.message} | ||
/> | ||
<WorkspaceDescriptionField value={formData.description} onChange={setDescription} /> |
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.
Does description field have validation?
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.
No validation for description field for now.
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.
Ok, I thought we have 200 size limit
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.
Yeah, the workspace description field will turn to red. And the create workspace button will be disabled when description text over 200 characters. But the "Saved changes" button won't be disabled in the edit mode in workspace detail page. Do we need to add this in current PR?
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 fine with having it in a separate PR
* Fix workspace description error when name invalid Signed-off-by: Lin Wang <[email protected]> * Changeset file for PR #8079 created/updated --------- Signed-off-by: Lin Wang <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit ee5d482) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix workspace description error when name invalid Signed-off-by: Lin Wang <[email protected]> * Changeset file for PR #8079 created/updated --------- Signed-off-by: Lin Wang <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit ee5d482) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…8083) * Fix workspace description error when name invalid * Changeset file for PR #8079 created/updated --------- (cherry picked from commit ee5d482) Signed-off-by: Lin Wang <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…8084) * Fix workspace description error when name invalid * Changeset file for PR #8079 created/updated --------- (cherry picked from commit ee5d482) Signed-off-by: Lin Wang <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
This PR is for fixing workspace description field error when name invalid in the workspace create and detail page.
Issues Resolved
#8081
Screenshot
Testing the changes
yarn osd bootstrap --single-version ignore
config/opensearch_dashboards.yml
yarn start --no-base-path
Changelog
Check List
yarn test:jest
yarn test:jest_integration