Skip to content

fix(api)!: remove roots_only output option (BUG-021) - #294

Merged
sbalabanov merged 1 commit into
mainfrom
sbalabanov/bug-021
Aug 27, 2026
Merged

fix(api)!: remove roots_only output option (BUG-021)#294
sbalabanov merged 1 commit into
mainfrom
sbalabanov/bug-021

Conversation

@sbalabanov

@sbalabanov sbalabanov commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix BUG-021 by removing the unsupported OutputConfig.roots_only option from the Tango API and regenerated Go/YARPC bindings.

Because Tango has not reached a major release, this intentionally makes the breaking protobuf change directly without reserving the removed field name or number.

Test Plan

  • PATH=/tmp/tango-proto-tools/bin:$PATH make proto (run twice; deterministic output confirmed)
  • go test ./controller ./mapper ./internal/mapper ./tangopb/...
  • ./tools/bazel build //proto:tangopb_go_proto //tangopb:tangopb
  • ./tools/bazel test //controller:controller_test --test_output=errors

Breaking Change

OutputConfig.roots_only is removed from the protobuf contract and generated Go/YARPC bindings.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@sbalabanov
sbalabanov marked this pull request as ready for review August 26, 2026 18:32
@sbalabanov
sbalabanov requested review from a team as code owners August 26, 2026 18:32
@sbalabanov
sbalabanov marked this pull request as draft August 26, 2026 19:17

@sbalabanov sbalabanov left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Instead just remove roots_only from the API contract. Do not bother with backwards compatibility.

@sbalabanov sbalabanov changed the title fix(controller): honor roots_only in graph responses (BUG-021) fix(api)!: remove roots_only output option (BUG-021) Aug 26, 2026
@sbalabanov

Copy link
Copy Markdown
Contributor Author

Addressed the review in 5c72105 by removing OutputConfig.roots_only from the proto contract and regenerating the Go and YARPC bindings. The prior controller filtering implementation and tests were dropped, so BUG-021 now performs the requested contract removal without a compatibility shim.

[addressed by agent]

Comment thread proto/tango.proto
@sbalabanov
sbalabanov marked this pull request as ready for review August 26, 2026 22:05
@sbalabanov
sbalabanov marked this pull request as draft August 26, 2026 22:15
@sbalabanov
sbalabanov marked this pull request as ready for review August 26, 2026 23:03
@sbalabanov
sbalabanov marked this pull request as draft August 26, 2026 23:19
@sbalabanov
sbalabanov marked this pull request as ready for review August 26, 2026 23:35
Comment thread proto/tango.proto Outdated
BUG-021

Summary:
- Remove roots_only from the Tango API contract instead of implementing it.
- Reserve the removed field number 4 and field name roots_only to prevent incompatible protobuf reuse.
- Drop the controller filtering changes and tests that depended on the obsolete option.
- Regenerate the committed Go and YARPC protobuf bindings.

Backwards compatibility is intentionally not provided for the removed API, while its wire identifiers remain permanently reserved.

BREAKING CHANGE: OutputConfig.roots_only has been removed from tango.proto and the generated Go/YARPC bindings.
@sbalabanov
sbalabanov merged commit 374b5a9 into main Aug 27, 2026
9 of 10 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