Skip to content

010: Filter discover endpoint by JWT partition, remap dev ports#28

Merged
acmeguy merged 1 commit intomainfrom
010-dynamic-models-ii
Mar 21, 2026
Merged

010: Filter discover endpoint by JWT partition, remap dev ports#28
acmeguy merged 1 commit intomainfrom
010-dynamic-models-ii

Conversation

@acmeguy
Copy link
Copy Markdown

@acmeguy acmeguy commented Mar 21, 2026

Summary

  • Discover endpoint partition filtering: GET /api/v1/discover now only returns datasources from the team whose settings.partition matches the JWT partition claim, instead of all teams the user belongs to
  • Dev port remapping: Actions 3000→3001, Redis 6379→6381 in docker-compose.dev.yml to avoid conflicts with other local services

Context

Follow-up to #27 (merged). The discover endpoint was returning datasources across all team memberships. Now it correctly scopes results to the team identified by the WorkOS JWT partition claim.

Test plan

  • 19 unit tests passing (added resolvePartitionTeamIds + partition filtering tests)
  • Live-tested with WorkOS token — response filtered from 4 datasources to 1

🤖 Generated with Claude Code

- Discover endpoint now only returns datasources from the team matching
  the WorkOS JWT partition claim instead of all teams the user belongs to
- Remap Actions host port 3000→3001 and Redis 6379→6381 in dev compose
  to avoid conflicts with other local services

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@acmeguy acmeguy force-pushed the 010-dynamic-models-ii branch from 8537cc8 to 98d8f29 Compare March 21, 2026 22:19
@acmeguy acmeguy merged commit f33db6b into main Mar 21, 2026
3 checks passed
@acmeguy acmeguy deleted the 010-dynamic-models-ii branch March 21, 2026 22:38
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.

2 participants