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 ui_metadata; various cleanup and refactoring #206

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Jul 9, 2024

Description

This PR does a lot of cleanup on various parts of the codebase:

  1. Functional change - cleans up ui_metadata to not persist low-level form details, and instead generate them when rendering the component (e.g., helpText/helpLink). The goal is to minimize what we need to persist in ui_metadata as this is what is indexed on the cluster. More will be removed once the configuration around ML inference processors is finalized (UX is still TBD on this part). To do this, we remove these fields from the configs/, and inject them directly into the individual components.
  2. Code cleanup: remove legacy / unused code, including: 1/ ML plugin pretrained models and all related interfaces/constants, as provisioning is out-of-scope and will not be handled by this plugin, 2/ all components under prototype/, as this is out of scope and is no longer useful, 3/ data_extractor_utils which was used for parsing out ReactFlow configurations that is no longer used, 4/ the pre-configured ReactFlow components under new_workflow/utils, since we currently are not using them. The current scope is just around the form, and generating the ReactFlow components based on such form. And 5/ the legacy SelectField and its various interfaces.
  3. Update ModelField to be scoped to just selecting deployed models, and removing all provisioning & pretrained model logic.
  4. Code cleanup: refactors components under tools/ into standalone Query/Ingest/Errors modules

Confirmed existing form logic, validation, testing, and general workflow editing and creation still works as expected. Also confirmed the underlying template does not persist the unnecessary fields anymore.

Issues Resolved

Makes progress on #23, #66

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 <[email protected]>
@ohltyler ohltyler merged commit ad03380 into opensearch-project:main Jul 9, 2024
5 of 6 checks passed
@ohltyler ohltyler deleted the simplify-ui-metadata branch July 9, 2024 20:55
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 9, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit ad03380)
ohltyler added a commit that referenced this pull request Jul 9, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit ad03380)

Co-authored-by: Tyler Ohlsen <[email protected]>
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.

2 participants