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 query param list in advanced transform modals #529

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Dec 12, 2024

Description

This PR implements Option 1 stated in the issue #528. All advanced transform modals now show the query param list (if applicable) under search-related contexts, such that the query, or the response from the query, can be fully populated with a valid query before executing and fetching the preview source data.

Other minor improvements:

  • prevent duplicate keys when configuring inputs/outputs of ML processors. Technically can be done, but likely not user-intended. Users can still add any mappings they like, but it will be freeform text if there is no remaining preset options based on the model interface.
  • spacing issues on a few of the modals
  • removed optional flag for search processors. misleading in the case of users creating a search pipeline, and then trying to revert, as fine-grained deprovisioning is not supported with Flow Framework plugin.

Demo video, showing the params appearing in the 3 different advanced transform modals, and how the options for inputs/outputs dynamically change, based on what is already configured:

screen-capture.6.webm

Issues Resolved

Closes #528

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 ohltyler marked this pull request as ready for review December 12, 2024 20:00
@saimedhi saimedhi merged commit 6f8cbae into opensearch-project:main Dec 13, 2024
6 of 7 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 13, 2024
* Add param list in all modals if applicable

Signed-off-by: Tyler Ohlsen <[email protected]>

* Prevent duplicate keys for ML inputs/outputs

Signed-off-by: Tyler Ohlsen <[email protected]>

* Remove optional flag for search processors

Signed-off-by: Tyler Ohlsen <[email protected]>

---------

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 6f8cbae)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
saimedhi pushed a commit that referenced this pull request Dec 13, 2024
* Add param list in all modals if applicable



* Prevent duplicate keys for ML inputs/outputs



* Remove optional flag for search processors



---------


(cherry picked from commit 6f8cbae)

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>
@ohltyler ohltyler deleted the nit-fixes-4 branch December 13, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced transform backport 2.x bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fetching preview data in search ML processors may not work if there are query placeholders
2 participants