Skip to content

Add release download sparks#1074

Draft
ezekg wants to merge 2 commits intomasterfrom
feature/add-release-download-spark
Draft

Add release download sparks#1074
ezekg wants to merge 2 commits intomasterfrom
feature/add-release-download-spark

Conversation

@ezekg
Copy link
Copy Markdown
Member

@ezekg ezekg commented Mar 3, 2026

No description provided.

package_id: 'package',
release_id: 'release',
start_date: 'date[start]',
end_date: 'date[end]',
Copy link
Copy Markdown
Member Author

@ezekg ezekg Mar 3, 2026

Choose a reason for hiding this comment

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

Would be nice to abstract this by introspecting the current typed schema. It's annoyingly verbose.

@ezekg ezekg force-pushed the feature/add-release-download-spark branch from f713afe to 083f01b Compare March 3, 2026 08:05
Comment thread config/routes.rb
get 'events/:event', to: 'events#show', as: :event, constraints: { event: /.*/ }
get 'leaderboards/:leaderboard', to: 'leaderboards#show', as: :leaderboard
get 'heatmaps/:heatmap', to: 'heatmaps#show', as: :heatmap
get 'gauges/downloads', to: 'gauges/downloads#show', as: :download_gauge # specialized gauge
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Remove repetitive comments

Comment thread db/clickhouse_schema.rb
t.datetime "created_at", precision: 3, null: false

t.index "environment_id", name: "idx_environment", type: "bloom_filter", granularity: 4
t.index "package_id", name: "idx_package", type: "bloom_filter", granularity: 4
Copy link
Copy Markdown
Member Author

@ezekg ezekg Apr 14, 2026

Choose a reason for hiding this comment

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

Missing indexes on product, release, and artifact.

| fa48996c-9c98-41c1-a2c3-21de98aefafe | a499bb93-9902-4b52-8a04-76944ad7f660 | 4 | 2100-08-23 | 2100-08-23T00:00:00.000Z |
| 0aef7c4a-953e-4824-9e16-9be2361afcf4 | 7559899f-2761-4b9c-a43e-2d919efa9b04 | 2 | 2100-08-25 | 2100-08-25T00:00:00.000Z |
And I use an authentication token
When I send a GET request to "/accounts/test1/analytics/leaderboards/products?date[start]=2100-08-20&date[end]=2100-08-27"
Copy link
Copy Markdown
Member Author

@ezekg ezekg Apr 14, 2026

Choose a reason for hiding this comment

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

Should this be a downloads leaderboard so we can save products for number of licenses?

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.

1 participant