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

[Feature] Multi-data Source Support for Getting Started #2048

Merged
merged 8 commits into from
Aug 19, 2024

Conversation

TackAdam
Copy link
Collaborator

@TackAdam TackAdam commented Aug 8, 2024

Description

Enables multi-data source support to getting started.
Screenshot 2024-08-08 at 4 26 25 PM

Adjust the "Create Asset" button to pre-pend the MDS id and update the reference field to include mdsId and mdsLabel.

Screen.Recording.2024-08-08.at.4.32.57.PM.mov

MDS dashboard url:
MDS_Dashboard

Local cluster dashboard url:
Dashboard

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • 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.

Adam Tackett added 2 commits August 7, 2024 11:33
Signed-off-by: Adam Tackett <[email protected]>
const loadedObjects = await objects.toArray();

const updatedObjects = loadedObjects.map((obj) => {
if (mdsId) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now renames with the convention mds-(mdsId)-objectId-(originalId) to clearly distinguish the created assets.
Sticks to the original behavior if mds is not enabled of just creating it under its original Id.

Signed-off-by: Adam Tackett <[email protected]>
Comment on lines 171 to 175
newReferences.push({
id: mdsId,
type: 'data-source',
name: mdsLabel,
});
Copy link
Member

Choose a reason for hiding this comment

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

Can you please validate with @sumukhswamy if references are needed for all the created saved objects. IIRC it is only needed for index patterns. Since, visualizations have a reference to index pattern and dashboards have a reference to visualizations we can infer the original datasource by tracking other references.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

After meeting with Sumukh only the index-pattern will have the added reference. The otheres will just get the updated ID's
Screenshot 2024-08-16 at 9 34 57 AM
Screenshot 2024-08-16 at 9 34 47 AM

@ps48 ps48 added the enhancement New feature or request label Aug 16, 2024
@ps48 ps48 merged commit 359cdf9 into opensearch-project:main Aug 19, 2024
15 of 22 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 19, 2024
* first step of MDS

Signed-off-by: Adam Tackett <[email protected]>

* add mds support to getting started

Signed-off-by: Adam Tackett <[email protected]>

* update references, renaming, code cleanup

Signed-off-by: Adam Tackett <[email protected]>

* update snapshots, remove depend

Signed-off-by: Adam Tackett <[email protected]>

* only add mds reference to index patterns

Signed-off-by: Adam Tackett <[email protected]>

---------

Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
(cherry picked from commit 359cdf9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sumukhswamy pushed a commit to sumukhswamy/dashboards-observability that referenced this pull request Aug 19, 2024
…roject#2048)

* first step of MDS

Signed-off-by: Adam Tackett <[email protected]>

* add mds support to getting started

Signed-off-by: Adam Tackett <[email protected]>

* update references, renaming, code cleanup

Signed-off-by: Adam Tackett <[email protected]>

* update snapshots, remove depend

Signed-off-by: Adam Tackett <[email protected]>

* only add mds reference to index patterns

Signed-off-by: Adam Tackett <[email protected]>

---------

Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
Signed-off-by: sumukhswamy <[email protected]>
TackAdam added a commit to TackAdam/dashboards-observability that referenced this pull request Aug 20, 2024
…roject#2048)

* first step of MDS

Signed-off-by: Adam Tackett <[email protected]>

* add mds support to getting started

Signed-off-by: Adam Tackett <[email protected]>

* update references, renaming, code cleanup

Signed-off-by: Adam Tackett <[email protected]>

* update snapshots, remove depend

Signed-off-by: Adam Tackett <[email protected]>

* only add mds reference to index patterns

Signed-off-by: Adam Tackett <[email protected]>

---------

Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
TackAdam pushed a commit that referenced this pull request Aug 22, 2024
* first step of MDS



* add mds support to getting started



* update references, renaming, code cleanup



* update snapshots, remove depend



* only add mds reference to index patterns



---------



(cherry picked from commit 359cdf9)

Signed-off-by: Adam Tackett <[email protected]>
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>
Co-authored-by: Adam Tackett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants