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

Integrate legacy presets with quick-configure fields #602

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Feb 6, 2025

Description

This PR allows the legacy presets (and associated legacy processors) to work as expected end-to-end. More details:

  • exposes all required fields in the processor form
  • updates the raw model_id field to be a model for consistency and user friendliness
  • ensures the processors have special logic in the template conversion utils to form a proper/valid definition
  • integrates with the quick-configure modal, such that the input fields are propagated to auto-fill everything, including the processor form values, and the query. See demo video below.

Other minor fixes:

  • adds NPE check on undefined connector
  • clears processor error state if navigating off of details page

Demo video, showing the presets with the pre-populated values for the legacy processors.

screen-capture.19.webm

Issues Resolved

Closes #546

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.

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
@ohltyler ohltyler added enhancement New feature or request backport main labels Feb 6, 2025
@ohltyler ohltyler marked this pull request as draft February 6, 2025 16:16
@ohltyler ohltyler linked an issue Feb 6, 2025 that may be closed by this pull request
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
@ohltyler ohltyler marked this pull request as ready for review February 6, 2025 18:49
@ohltyler
Copy link
Member Author

ohltyler commented Feb 6, 2025

Known IT failure fixed by opensearch-project/opensearch-dashboards-functional-test#1696

@ohltyler ohltyler merged commit 8998cf8 into opensearch-project:2.x Feb 6, 2025
5 of 6 checks passed
@ohltyler ohltyler deleted the legacy-presets branch February 6, 2025 19:31
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 6, 2025
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
(cherry picked from commit 8998cf8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ohltyler pushed a commit that referenced this pull request Feb 6, 2025
(cherry picked from commit 8998cf8)

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
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
Labels
backport main enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate the legacy presets with quick-configure fields
3 participants