Skip to content

CROSSLINK-250 multiple symbols per tenant#526

Merged
adamdickmeiss merged 28 commits intomainfrom
CROSSLINK-250-multiple-symbols-per-tenant
Apr 20, 2026
Merged

CROSSLINK-250 multiple symbols per tenant#526
adamdickmeiss merged 28 commits intomainfrom
CROSSLINK-250-multiple-symbols-per-tenant

Conversation

@adamdickmeiss
Copy link
Copy Markdown
Contributor

@adamdickmeiss adamdickmeiss commented Apr 15, 2026

Copilot AI review requested due to automatic review settings April 15, 2026 14:06
@adamdickmeiss adamdickmeiss marked this pull request as draft April 15, 2026 14:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Introduces a centralized symbol-resolution/validation component (api.SymbolChecker) to support tenant-derived symbols (and branch symbols) across API handlers and the SSE broker, aligning with the goal of allowing multiple symbols per tenant.

Changes:

  • Added api.SymbolChecker (with tests) and updated API/SSE handlers to use it for resolving symbols from X-Okapi-Tenant and/or symbol.
  • Updated wiring in app.go to construct and pass a configured SymbolChecker (with illRepo + directory adapter) into handlers.
  • Adjusted/expanded API tests and SSE tests to reflect updated request validation behavior.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
broker/api/symbol_checker.go New symbol/tenant resolution + branch symbol validation logic.
broker/api/symbol_checker_test.go Unit tests for SymbolChecker, including repo-backed validation cases.
broker/api/api-handler.go Uses SymbolChecker for ownership and tenant-based filtering; begins multi-symbol support.
broker/patron_request/api/api-handler.go Replaces direct symbol resolution with SymbolChecker in patron request endpoints.
broker/api/sse_broker.go SSE endpoint now resolves symbol via SymbolChecker and adjusts validation errors.
broker/app/app.go Wires SymbolChecker into API handler, patron request handler, and SSE broker; adds /broker/sse/events route.
broker/api/common.go Removes the old GetSymbolForRequest helper.
broker/api/common_test.go Removes tests for the deleted GetSymbolForRequest.
broker/test/api/api-handler_test.go Updates test handler construction to pass a SymbolChecker.
broker/patron_request/api/api-handler_test.go Updates patron request handler tests to pass a SymbolChecker.
broker/test/api/sse_broker_test.go Updates SSE error expectations and adds a “missing tenant” test for broker-prefixed SSE.

Comment thread broker/patron_request/api/api-handler.go
Comment thread broker/test/api/sse_broker_test.go
Comment thread broker/api/symbol_checker.go Outdated
Comment thread broker/api/symbol_checker.go Outdated
Comment thread broker/api/api-handler.go Outdated
Comment thread broker/api/api-handler.go Outdated
Comment thread broker/api/symbol_checker.go Outdated
Comment thread broker/api/symbol_checker.go Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 6 comments.

Comment thread broker/ill_db/ill_cql.go Outdated
Comment thread broker/test/api/sse_broker_test.go Outdated
Comment thread broker/tenant/tenant_test.go Outdated
Comment thread broker/api/sse_broker.go
Comment thread broker/patron_request/api/api-handler.go Outdated
Comment thread broker/api/api-handler.go
@adamdickmeiss adamdickmeiss marked this pull request as ready for review April 17, 2026 15:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.

Comment thread broker/tenant/tenant.go Outdated
Comment thread broker/tenant/tenant.go Outdated
Comment thread broker/tenant/tenant_test.go Outdated
@adamdickmeiss adamdickmeiss merged commit 52653d6 into main Apr 20, 2026
5 checks passed
@adamdickmeiss adamdickmeiss deleted the CROSSLINK-250-multiple-symbols-per-tenant branch April 20, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants