Skip to content

Conversation

@alexluong
Copy link
Collaborator

@alexluong alexluong commented Jan 19, 2026

  • Align API response schema with Hookdeck API conventions
  • Rename datamodels, move pagination to nested pagination object
  • Change query params: sort_orderdir, date filters use bracket notation (event_time[gte]=)
  • Add GT/LT operators for time filters

alexluong and others added 10 commits January 20, 2026 00:19
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add gt, lt operators to date filter (in addition to gte, lte)
- Add any operator for date, string, and number filters
- Add contains operator for string filters
- Add number filter with all comparison operators
- Add array param parser for bracket notation (item[0]=a&item[1]=b)
- Remove defaults from ParseDir and ParseOrderBy (store handles defaults)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove gt, lt, any, contains operators (stores don't support yet)
- Return 400 for unsupported operators with clear message
- Remove string and number filter helpers (not needed yet)
- Keep array param parser for future use

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ListTenant does not support date filtering - only basic pagination with
dir parameter.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rename list responses to {Entity}PaginatedResult pattern
- Rename PaginationInfo to SeekPagination
- Update query params: dir, order_by, bracket notation dates
- Add APIErrorResponse and EventPaginatedResult schemas

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update list response assertions: data -> models
- Update pagination cursor access: body["next"] -> body["pagination"]["next"]
- Update date filter tests: start= -> event_time[gte]=
- Update sort order tests: sort_order= -> dir=
- Update validation error assertions: map format -> array format
- Legacy endpoint tests unchanged (backward compatibility)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add comprehensive tests for cursor-based pagination combined with time
filters (GTE/LTE/GT/LT):

- drivertest/pagination.go: TimeFilterWithCursor test suite covering
  paginating within time windows, boundary exclusion with GT/LT,
  backward pagination, and both events and deliveries

- e2e/log_test.go: API-level test for cursor + time filter interaction
  using explicit event timestamps for deterministic ordering

- pagination.go: Update parseDateTime to try RFC3339Nano first to
  handle millisecond precision timestamps

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
outpost-docs Ready Ready Preview, Comment Jan 19, 2026 8:40pm
outpost-website Ready Ready Preview, Comment Jan 19, 2026 8:40pm

Request Review

Previously expanded to availableTopics list, now returns ["*"] directly.
Show example timestamps in the validation error to make it clearer
that millisecond precision (RFC3339Nano) is also supported.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@alexluong alexluong merged commit 78f162e into main Jan 19, 2026
4 checks passed
@alexluong alexluong deleted the api branch January 19, 2026 20:44
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.

3 participants