-
Notifications
You must be signed in to change notification settings - Fork 58
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
Conversation
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
const loadedObjects = await objects.toArray(); | ||
|
||
const updatedObjects = loadedObjects.map((obj) => { | ||
if (mdsId) { |
There was a problem hiding this comment.
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]>
newReferences.push({ | ||
id: mdsId, | ||
type: 'data-source', | ||
name: mdsLabel, | ||
}); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Adam Tackett <[email protected]>
* 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>
…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]>
…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]>
* 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]>
Description
Enables multi-data source support to getting started.
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:
Local cluster dashboard url:
Issues Resolved
Check List
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.