Skip to content

Add support for caller to determine origin for union_replace - #184

Merged
robshakir merged 16 commits into
mainfrom
dplore/union_origin
May 19, 2026
Merged

Add support for caller to determine origin for union_replace#184
robshakir merged 16 commits into
mainfrom
dplore/union_origin

Conversation

@dplore

@dplore dplore commented Apr 18, 2026

Copy link
Copy Markdown
Member

Similar to #176 we've also run into several scenarios where it is more convenient for the caller to specify the origin when using union_replace batch functions. This changes origin to match whatever is passed in by the caller.

@coveralls

coveralls commented Apr 18, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 26060810708

Coverage increased (+0.03%) to 4.469%

Details

  • Coverage increased (+0.03%) from the base build.
  • Patch coverage: 18 uncovered changes across 2 files (76 of 94 lines covered, 80.85%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
ygnmi/ygnmi.go 15 4 26.67%
ygnmi/gnmi.go 79 72 91.14%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 52142
Covered Lines: 2330
Line Coverage: 4.47%
Coverage Strength: 0.05 hits per line

💛 - Coveralls

@robshakir robshakir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure I actually see the implementation of the description here (or at least it's not tested).

Can you please add unit tests that demonstrate the setting of the value of the origin to the value set by the caller?

Comment thread ygnmi/gnmi.go Outdated
Comment thread ygnmi/gnmi.go Outdated
Comment thread ygnmi/gnmi.go Outdated
Comment thread ygnmi/gnmi.go Outdated
Comment thread ygnmi/gnmi.go Outdated
Comment thread ygnmi/gnmi.go.rej Outdated
@dplore

dplore commented May 11, 2026

Copy link
Copy Markdown
Member Author

Member

I'll raise a separate PR for this one, standby

Comment thread ygnmi/ygnmi.go Outdated
Comment thread ygnmi/ygnmi.go Outdated
Comment thread ygnmi/ygnmi.go
@dplore
dplore requested a review from robshakir May 18, 2026 18:55
@dplore

dplore commented May 18, 2026

Copy link
Copy Markdown
Member Author

@robshakir ready for re-review

@robshakir robshakir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - one minor thing I spotted.

Comment thread ygnmi/gnmi.go Outdated
@robshakir
robshakir merged commit 0348b89 into main May 19, 2026
11 checks passed
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.

4 participants