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

feat: text to visualization #218

Merged
merged 10 commits into from
Jul 23, 2024

Conversation

ruanyl
Copy link
Member

@ruanyl ruanyl commented Jul 17, 2024

Description

Tests will be added in a separate PR

t2viz.mov

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test.
  • New functionality has user manual doc added.
  • 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.


useEffect(() => {
const subscription = dataSources.dataSourceService.getDataSources$().subscribe((ds) => {
setCurrentDataSources(Object.values(ds));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shall we need to add version decoupling filter here?

Copy link
Member Author

@ruanyl ruanyl Jul 18, 2024

Choose a reason for hiding this comment

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

I think it's the same question as shall we add version decoupling for chatbot? I'm open to discuss

Copy link
Collaborator

Choose a reason for hiding this comment

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

There is a data source picker in the page, I think the data source picker should not display not compatible data sources.

Copy link
Member Author

Choose a reason for hiding this comment

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

That depends on if the data source has agent configured.

public/components/visualization/text2vega.ts Show resolved Hide resolved
public/plugin.tsx Outdated Show resolved Hide resolved
server/routes/text2viz_routes.ts Outdated Show resolved Hide resolved
server/routes/text2viz_routes.ts Outdated Show resolved Hide resolved
server/routes/text2viz_routes.ts Show resolved Hide resolved
@ruanyl ruanyl force-pushed the text-to-visualization branch from 55f2bcd to 71e54fd Compare July 22, 2024 13:26
ruanyl added 2 commits July 22, 2024 21:29
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
@ruanyl ruanyl added backport 2.x Trigger the backport flow to 2.x v2.16.0 backport 2.16 labels Jul 23, 2024
return response.body.configuration.agent_id;
} catch (error) {
const errorMessage = JSON.stringify(error.meta?.body) || error;
throw new Error('get root agent failed, reason: ' + errorMessage);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: get root agent this should changed based on input parameter id

Comment on lines +78 to +80
i18n.translate('visualize.vega.failedToGetDataSetErrorDescription', {
defaultMessage: 'Failed to get data set: ',
}) + (error.message || error.name),
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: should under dashboardAssistant namespace

Signed-off-by: Yulong Ruan <[email protected]>
@ruanyl ruanyl merged commit 63d9d80 into opensearch-project:main Jul 23, 2024
9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 23, 2024
* feat: add text to visualization

Signed-off-by: Yulong Ruan <[email protected]>

---------

Signed-off-by: Yulong Ruan <[email protected]>
(cherry picked from commit 63d9d80)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 23, 2024
* feat: add text to visualization

Signed-off-by: Yulong Ruan <[email protected]>

---------

Signed-off-by: Yulong Ruan <[email protected]>
(cherry picked from commit 63d9d80)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
Hailong-am pushed a commit that referenced this pull request Jul 23, 2024
* feat: add text to visualization

Signed-off-by: Yulong Ruan <[email protected]>

---------

Signed-off-by: Yulong Ruan <[email protected]>
(cherry picked from commit 63d9d80)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Hailong-am pushed a commit that referenced this pull request Jul 23, 2024
* feat: add text to visualization

Signed-off-by: Yulong Ruan <[email protected]>

---------

Signed-off-by: Yulong Ruan <[email protected]>
(cherry picked from commit 63d9d80)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yulong Ruan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Trigger the backport flow to 2.x backport 2.16 v2.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants