Repository navigation
feat(api): list analytics event types and their payload fields - #929
Merged
Merged
Conversation
zaira-bibi
force-pushed
the
zaira/be/analytics-event-catalog
branch
from
October 23, 2026 09:28
e33038f to
8989100
Compare
abdulrafey1
requested changes
Oct 23, 2026
zaira-bibi
force-pushed
the
zaira/be/analytics-event-catalog
branch
2 times, most recently
from
October 26, 2026 06:39
23cfcd7 to
e3dabfe
Compare
zaira-bibi
force-pushed
the
zaira/be/analytics-event-catalog
branch
from
October 26, 2026 06:47
e3dabfe to
5e250ea
Compare
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
zaira-bibi
force-pushed
the
zaira/be/analytics-event-catalog
branch
from
October 27, 2026 10:57
5e250ea to
a5bcf24
Compare
abdulrafey1
approved these changes
Oct 27, 2026
abdulrafey1
left a comment
Collaborator
There was a problem hiding this comment.
Just one small rename, rest looks good
zaira-bibi
force-pushed
the
zaira/be/analytics-event-catalog
branch
from
October 27, 2026 12:08
a5bcf24 to
04e5f4c
Compare
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.
Part of: Analytics viewers cannot create custom views or filter events
What
Analytics viewers have no way to discover which events and payload fields exist, so nothing can build a
view from them; this adds a catalog of every registered event type and its fields.
Changes
GET /api/v1/analytics/events(gated byanalytics.read) lists each event type with itspayload fields: name, kind (string, enum, boolean, integer), allowed values for enums and literals, nullable
ANALYTICS_EVENTShook, so plugin events appear while their plugin is installed; versionsmerge, the highest version's kind wins; unsupported kinds (e.g. float) are left out
event_catalog,catalog_entryand the models exported fromsparkth.lib.analytics; API types regeneratedHow to Test
uv run pytest tests/analytics/test_event_catalog.pyanalytics.read,GET /api/v1/analytics/eventsand checkuser.logged_inlistsmethodas an enum ofpassword,google.analytics.readit returns 403; unauthenticated, 401.Notes
First of five stacked PRs.
This PR description was written with the assistance of an LLM (Claude).
🤖 Generated with Claude Code