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

Fix integration imports for table and card view #2147

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

ps48
Copy link
Member

@ps48 ps48 commented Sep 9, 2024

Description

Latest Observability on 2.x/2.17 fails to load the integrations plugin due to import error.

Issues Resolved

Fix integration imports for table and card view

  • Updated loadash import
  • Updated available integration type import

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.

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
@@ -94,7 +94,7 @@ export function AddedIntegrationsTable(props: AddedIntegrationsTableProps) {
truncateText: true,
render: (value, record) => (
<EuiText data-test-subj={`${record.templateName}IntegrationDescription`}>
{truncate(record.dataSourceMDSLabel || 'Local cluster', { length: 100 })}
{_.truncate(record.dataSourceMDSLabel || 'Local cluster', { length: 100 })}
Copy link
Member

Choose a reason for hiding this comment

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

there was a PR to remove importing full lodash library, does this increase loaded javascript size for users?

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 lodash PR wasn't backported, hence there was this import issue when the MDS PR was being backported.

@ps48 ps48 merged commit 7a63a9e into opensearch-project:2.x Sep 9, 2024
14 of 23 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 9, 2024
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit 7a63a9e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ps48 pushed a commit that referenced this pull request Sep 9, 2024
(cherry picked from commit 7a63a9e)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.17 bug Something isn't working v2.17.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants