feat: /api/v1/meta-all aggregated cube catalog#39
Merged
Conversation
Adds a new endpoint that walks every datasource visible to the caller (partition-filtered, same as /discover), compiles each via the Cube.js apiGateway, and returns a per-cube summary stamped with datasource_id / branch_id / version_id. Eliminates the need for clients to issue one /meta request per datasource to build a cube catalog. Summary includes: name, title, description, public flag, measure / dimension / segment names, and the cube-level meta block. Uses Promise.allSettled so one failing datasource does not fail the whole response. Auth: WorkOS RS256 or FraiOS HS256 bearer token (same as /discover). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
yasirali179
approved these changes
Apr 19, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/v1/meta-allendpoint. One call returns cube summaries across every datasource the caller can see (partition-filtered, same auth model as/discover).datasource_id/branch_id/version_idso clients can immediately issue/loador/metarequests without a second lookup.name,title,description,public,measures[],dimensions[],segments[],meta. Full objects are not returned — only names for fields and segments.Promise.allSettled+ per-datasource error list so one bad datasource does not fail the whole response.Implementation notes
apiGateway.getCompilerApi(ctx).metaConfig()+filterVisibleItemsInMeta()pattern fromloadExport.js, so access-list filtering (cubes / measures / dimensions the user cannot see) is applied per datasource.defineUserScope, so cube compilation and cache isolation continue to work exactly as with/meta.resolvePartitionTeamIdsfromdiscover.js.Test plan
curlwith no token →403 { error: "Authorization header required" }curlwith valid FraiOS token →200with populateddatasources[]including cube summaries (semantic_events: 73 measures, 138 dimensions)curlwith token whose partition matches no team →200 { datasources: [] }🤖 Generated with Claude Code