feat(dashboard-api): add template tags handlers#2885
Conversation
❌ 4 Tests Failed:
View the full list of 4 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Code Review
Using a sentinel value of only one hour in the future for the initial cursor timestamp can cause assignments with timestamps further in the future to be silently omitted from the first page of results. A far-future timestamp sentinel, such as year 9999, should be used instead to ensure all future-dated assignments are correctly included.
13fcbd8 to
0e9a92c
Compare
def15d4 to
352818c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 352818c727
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Adds the dashboard-api read endpoints powering the per-template detail view: single-template read (with latest ready build + versioning/storage fields) and tag-grouped assignment history with keyset pagination, search, and sort.
Endpoints
/templates/{templateID}/templates/{templateID}/tags/groups/templates/{templateID}/tags/count/templates/{templateID}/tags/exists/templates/{templateID}/tags/{tag}/assignmentsPagination & sort
sort ∈ {latest_desc (default), latest_asc, name_asc, name_desc}, cursor{sort}|{ts}|{tag}(rejected on sort mismatch).tagsLimit ≤ 100, per-tagassignmentLimit ≤ 25.assigned_at|assignment_id,limit ≤ 100.^[a-z0-9._-]{0,64}$, case-insensitive substring on tag.