Skip to content

[Bug] Correlation saved object entities to not be strict#10403

Merged
angle943 merged 5 commits intoopensearch-project:mainfrom
sumukhswamy:bug-correlations
Aug 12, 2025
Merged

[Bug] Correlation saved object entities to not be strict#10403
angle943 merged 5 commits intoopensearch-project:mainfrom
sumukhswamy:bug-correlations

Conversation

@sumukhswamy
Copy link
Collaborator

@sumukhswamy sumukhswamy commented Aug 12, 2025

Description

This PR changes the entities field mapping in the correlations saved object type from enabled: true to enabled: false to be able to add non strict entities.

Bug for #10386

Changelog

-fix: correlation object to have entities field which is dynamic and not strict

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: sumukhswamy <sumukhhs@amazon.com>
Signed-off-by: sumukhswamy <sumukhhs@amazon.com>
sumukhswamy and others added 2 commits August 12, 2025 11:51
@opensearch-project opensearch-project deleted a comment from github-actions bot Aug 12, 2025
@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.75%. Comparing base (b886e61) to head (a9c67e2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10403      +/-   ##
==========================================
- Coverage   61.76%   61.75%   -0.01%     
==========================================
  Files        4242     4242              
  Lines      107874   107874              
  Branches    17572    17572              
==========================================
- Hits        66623    66621       -2     
- Misses      36775    36777       +2     
  Partials     4476     4476              
Flag Coverage Δ
Linux_1 27.64% <ø> (ø)
Linux_2 41.23% <ø> (ø)
Linux_3 39.53% <ø> (-0.01%) ⬇️
Linux_4 32.77% <ø> (ø)
Windows_1 27.66% <ø> (ø)
Windows_2 41.20% <ø> (ø)
Windows_3 39.54% <ø> (ø)
Windows_4 32.77% <ø> (-0.01%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kavilla
Copy link
Member

kavilla commented Aug 12, 2025

Does this make the field unindexed and therefore not searchable?

@sumukhswamy
Copy link
Collaborator Author

Does this make the field unindexed and therefore not searchable?

only the entities field yes, as the object init would be dynamic

@angle943 angle943 merged commit 2d60ea3 into opensearch-project:main Aug 12, 2025
81 of 82 checks passed
ananzh pushed a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Sep 22, 2025
…project#10403)

* experimental entity to store any field and not be strict

Signed-off-by: sumukhswamy <sumukhhs@amazon.com>

* experimental entity to store any field and not be strict

Signed-off-by: sumukhswamy <sumukhhs@amazon.com>

* unnecessary file

Signed-off-by: sumukhswamy <sumukhhs@amazon.com>

* Changeset file for PR opensearch-project#10403 created/updated

---------

Signed-off-by: sumukhswamy <sumukhhs@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants