Add Geographical Distribution widget endpoint#86
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request introduces enhancements for geographic distribution data. It adds a new Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant API as API Endpoint
participant DS as DataSource
participant TB as Tinybird Service
C->>API: Request geographic distribution (with optional metric)
API->>API: Build filter with `metric` (default if absent)
API->>DS: Invoke fetchGeographicDistribution(filter)
DS->>TB: Call Tinybird API via fetchFromTinybird(queryPath)
TB-->>DS: Return raw geographic distribution data
DS->>DS: Process and format data into response format
DS-->>API: Return GeographicDistributionResponse
API-->>C: Respond with formatted geographic distribution data
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
f0037c6 to
ceef2e5
Compare
e17f503 to
3ca5130
Compare
60ecc3d to
2af5fa4
Compare
962600e to
30a66f4
Compare
frontend/server/api/project/[slug]/contributors/geographical-distribution.get.ts
Outdated
Show resolved
Hide resolved
f17937c to
8256eab
Compare
69068c3 to
ab1567f
Compare
b2b5825 to
0987918
Compare
cc97f8d to
918482b
Compare
0987918 to
f42bb24
Compare
b4322aa to
a6d0256
Compare
Signed-off-by: Raúl Santos <4837+borfast@users.noreply.github.com>
Signed-off-by: Raúl Santos <4837+borfast@users.noreply.github.com>
a6d0256 to
aeb4609
Compare
Summary by CodeRabbit