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

[Backport 2.x] [Discover-Next] Adding datasources support for dataframes #7139

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

@opensearch-trigger-bot opensearch-trigger-bot bot commented Jul 1, 2024

Backport d3d1c43 from #7106.

Changelog

  • skip

Parses user string between `::datasource::` to get the data source Then appends the dataSourceId in the meta.

Also creates the data frame before the interceptor to keep the meta info passed around.

If this gets accepted follow ups need to happen:
* should be ensuring the virtual index pattern includes the data source name with the index pattern name to avoid conflicts and a weird state.
* some reason dataframe is being always wiped out the first call in the search source. need to fix so that the schema is persisted
* weird initial load state. likely just too many things at once so we should make sure the usual and fresh experience is respected
* better indicator on the datasource, or just autocomplete that displays all the datasource connections when user types initial `::`.

Rebase of #7092

Issue:
#6957

---------

Signed-off-by: Sean Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit d3d1c43)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Jul 1, 2024

❌ Invalid Changelog Heading

The '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax.

@github-actions github-actions bot added failed changeset Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry and removed failed changeset labels Jul 1, 2024
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 3.44828% with 28 lines in your changes missing coverage. Please review.

Project coverage is 67.56%. Comparing base (353f509) to head (cd74b3b).

Files Patch % Lines
.../data/common/search/search_source/search_source.ts 0.00% 9 Missing ⚠️
src/plugins/data/common/data_frames/utils.ts 11.11% 8 Missing ⚠️
src/plugins/data/public/search/search_service.ts 0.00% 4 Missing ⚠️
src/plugins/data/server/search/search_service.ts 0.00% 4 Missing ⚠️
...on/index_patterns/index_patterns/index_patterns.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #7139      +/-   ##
==========================================
- Coverage   67.59%   67.56%   -0.03%     
==========================================
  Files        3446     3446              
  Lines       67908    67937      +29     
  Branches    11027    11037      +10     
==========================================
+ Hits        45904    45905       +1     
- Misses      19341    19369      +28     
  Partials     2663     2663              
Flag Coverage Δ
Linux_1 33.11% <3.44%> (-0.02%) ⬇️
Linux_2 55.18% <4.00%> (-0.06%) ⬇️
Linux_3 45.26% <3.44%> (-0.04%) ⬇️
Linux_4 35.00% <3.44%> (-0.03%) ⬇️
Windows_1 33.13% <3.44%> (-0.02%) ⬇️
Windows_2 55.13% <4.00%> (-0.06%) ⬇️
Windows_3 45.26% <3.44%> (-0.04%) ⬇️
Windows_4 35.00% <3.44%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kavilla kavilla merged commit 1baa1e7 into 2.x Jul 1, 2024
69 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports discover-next repeat-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry v2.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants