opensearch-project / flow-framework

OpenSearch plugin that enables builders to innovate AI apps on OpenSearch
Apache License 2.0
32 stars 35 forks source link

[FEATURE] Move UI Metadata from State Index to Global Context Index #140

Closed owaiskazi19 closed 1 year ago

owaiskazi19 commented 1 year ago

Is your feature request related to a problem?

We moved UI_METADATA_FIELD to state index recently here. The Search APIs as a part of https://github.com/opensearch-project/opensearch-ai-flow-framework/issues/124 searches on GC index. For frontend to utilize the search APIs, the UI_METADATA_FIELD should be moved to GC index back.

What solution would you like?

  1. Move UI_METADATA_FIELD field to GC index.
  2. See if the request came from dashboard based on user-agents here and include UI_METADATA_FIELD.
  3. Else, exclude UI_METADATA_FIELD.

What alternatives have you considered?

A clear and concise description of any alternative solutions or features you've considered.

Do you have any additional context?

Add any other context or screenshots about the feature request here.

joshpalis commented 1 year ago

There's already an issue for this : https://github.com/opensearch-project/opensearch-ai-flow-framework/issues/135

owaiskazi19 commented 1 year ago

There's already an issue for this : #135

Ah! I'll close #135