-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fix mds ref update on integration assets #2240
Conversation
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
@@ -207,7 +207,7 @@ export class IntegrationInstanceBuilder { | |||
dataSourceMDSId?: string, | |||
dataSourceMDSLabel?: string | |||
): SavedObject[] { | |||
if (!dataSource) { | |||
if (!dataSourceMDSId) { |
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.
what's the difference? and is dataSource
still used?
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.
Datasource is the flint one. We need to fix the naming soon in whole code-base.
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.
LGTM tested locally with mds on/off and in workspaces. Index patterns are now created with the correct datasource.
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2240 +/- ##
==========================================
- Coverage 56.58% 56.26% -0.32%
==========================================
Files 389 391 +2
Lines 14954 15158 +204
Branches 4059 4073 +14
==========================================
+ Hits 8462 8529 +67
- Misses 6430 6567 +137
Partials 62 62
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
* fix mds ref update on integration assests Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * add unit test for builder with mds enabled Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> --------- Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> (cherry picked from commit 10e6636) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix mds ref update on integration assests * add unit test for builder with mds enabled --------- (cherry picked from commit 10e6636) Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> 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>
Description
Fix mds reference update on integration assets
Issues Resolved
Mds reference was not getting added for integrations there were two issues:
integration-mds-ref.mov
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.