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

Simplify ML processor form when interface is defined #676

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Mar 13, 2025

Description

Simplifies the controls & form components for ML processors when the underlying model has a defined interface. Make the inputs & outputs readonly, and prevent adding/deleting entries. The main idea is that if a model has a defined interface, add more guardrails to prevent user confusion from creating invalid/unnecessary mappings.

Other small improvements:

  • cleans up a small formatting discrepancy between model inputs and outputs when in the empty state
  • removes unnecessary "the model ID" helper text on the model form

Demo video, showing the cleaned up form when an interface is defined. Note there is no way to edit the input or output field names, no way to delete any input/output entries, and no way to add any input/output entries, when compared to a model with no defined interface:

screen-capture.29.webm

Issues Resolved

N/A

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 Mar 13, 2025
@ohltyler ohltyler marked this pull request as draft March 13, 2025 00:03
@ohltyler ohltyler marked this pull request as ready for review March 13, 2025 00:12
Copy link
Collaborator

@saimedhi saimedhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@saimedhi saimedhi merged commit 47d59fe into opensearch-project:2.x Mar 13, 2025
7 of 8 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 13, 2025
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
(cherry picked from commit 47d59fe)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
saimedhi pushed a commit that referenced this pull request Mar 13, 2025
(cherry picked from commit 47d59fe)

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>
@ohltyler ohltyler deleted the simplify-ml-inputs branch March 13, 2025 17:22
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.

2 participants