Skip to content

Remove deprecated opensearch.ToPointer helper - #881

Draft
Arin016 wants to merge 1 commit into
opensearch-project:mainfrom
Arin016:remove-topointer
Draft

Remove deprecated opensearch.ToPointer helper#881
Arin016 wants to merge 1 commit into
opensearch-project:mainfrom
Arin016:remove-topointer

Conversation

@Arin016

@Arin016 Arin016 commented Jun 13, 2026

Copy link
Copy Markdown

Description

Fixes #871

Remove the deprecated opensearch.ToPointer generic function and its test. No non-test call sites exist in the tree — internal code uses the unexported per-package ptr helper.

Changes

  • Remove ToPointer from opensearch.go
  • Remove TestToPointer from opensearch_internal_test.go
  • Add CHANGELOG entry under v5 Removed section
  • Add migration note in UPGRADING.md

Issues Resolved

Closes #871

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov

codecov Bot commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.36%. Comparing base (423763e) to head (46e6760).
⚠️ Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #881      +/-   ##
==========================================
- Coverage   47.39%   47.36%   -0.03%     
==========================================
  Files        1000     1000              
  Lines       70021    70017       -4     
==========================================
- Hits        33189    33167      -22     
- Misses      33637    33650      +13     
- Partials     3195     3200       +5     
Flag Coverage Δ
integration 30.15% <ø> (-0.01%) ⬇️
unit 42.03% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
opensearch.go 86.93% <ø> (-0.30%) ⬇️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Remove the exported ToPointer generic function and its test.
No non-test call sites exist in the tree; internal code uses the
unexported per-package ptr helper.

Closes opensearch-project#871

Signed-off-by: Arin Mallanna Tumbagi <arin16tumbagi@gmail.com>
Signed-off-by: Arin Tumbagi <arin16tumbagi@gmail.com>
@Arin016
Arin016 force-pushed the remove-topointer branch from ae78641 to 46e6760 Compare June 13, 2026 15:59

@sean- sean- left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This will be reviewed in August, sometime after Go 1.27 is released and this project subsequently bumps its go.mod to 1.26.

I don't know that the UPDATING entry is required.

@sean- sean- mentioned this pull request Jun 25, 2026
3 tasks
@sean-
sean- marked this pull request as draft July 17, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the deprecated opensearch.ToPointer helper

2 participants