Skip to content

feat(#89): add filtering to activity endpoint#125

Merged
dennisonbertram merged 1 commit intomainfrom
issue-89-activity-filtering
Mar 21, 2026
Merged

feat(#89): add filtering to activity endpoint#125
dennisonbertram merged 1 commit intomainfrom
issue-89-activity-filtering

Conversation

@dennisonbertram
Copy link
Owner

Summary

  • Adds ?resource_type, ?action, ?service_id, ?since, ?offset query parameters to GET /v1/activity
  • All filters optional and AND-combinable
  • resource_type skips irrelevant DB tables for efficiency
  • Adds service_id field to activity events for service/build resources
  • 8 new tests covering all filter dimensions

Test plan

Support ?resource_type, ?action, ?service_id, ?since, and ?offset
query parameters for filtering activity events. All filters are
optional and combinable with AND logic. resource_type skips irrelevant
tables at the SQL level, service_id narrows service/build queries,
since filters by timestamp, and action post-filters computed actions.
Also adds a service_id field to ActivityEvent for build/service events.

Closes #89

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dennisonbertram dennisonbertram merged commit 8345a8e into main Mar 21, 2026
1 check passed
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.

feat(activity): add filtering parameters to activity endpoint (resource_type, action, service_id)

1 participant