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

Add standalone form state for query editing modal #450

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

ohltyler
Copy link
Member

Description

Add standalone form state for query editing modal. Similar to #445, this PR nests the modal in a Formik sub-form. Some temp vars are added to persist state. The parent form value is only updated if the user explicitly clicks "Update" and there are no validation errors.

Demo video:

screen-capture.10.webm

Issues Resolved

Makes progress on #446

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ohltyler
Copy link
Member Author

Button ID update covered in opensearch-project/opensearch-dashboards-functional-test#1612

Signed-off-by: Tyler Ohlsen <[email protected]>
Signed-off-by: Tyler Ohlsen <[email protected]>
@saimedhi
Copy link
Collaborator

@ohltyler, Looks good to me. Thank you for updating integ tests.

@ohltyler ohltyler merged commit ba0dc6a into opensearch-project:main Oct 30, 2024
6 of 7 checks passed
@ohltyler ohltyler deleted the query-modal-update branch October 30, 2024 20:20
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 30, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit ba0dc6a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ohltyler pushed a commit that referenced this pull request Oct 30, 2024
(cherry picked from commit ba0dc6a)

Signed-off-by: Tyler Ohlsen <[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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants