fix(api): Pass archivedAt to list table response#4275
fix(api): Pass archivedAt to list table response#4275TheodoreSpeaks merged 10 commits intostagingfrom
Conversation
…n-storage # Conflicts: # apps/sim/app/api/workspaces/[id]/data-retention/route.ts
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview The handler now serializes Reviewed by Cursor Bugbot for commit fe7e462. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThis PR fixes a missing Confidence Score: 5/5Safe to merge — single-line bug fix with no logic risk. The change is minimal and correct: it adds a nullable date field with the same three-branch guard ( No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as UI (Recently Deleted)
participant API as GET /api/table
participant DB as Database
UI->>API: GET /api/table?scope=archived
API->>DB: listTables(workspaceId, { scope })
DB-->>API: tables[] (including archivedAt)
Note over API: Before fix: archivedAt omitted from response
Note over API: After fix: archivedAt serialized and included
API-->>UI: { tables: [{ ..., archivedAt: "2026-04-20T..." }] }
UI->>UI: Display correct archive timestamp
Reviews (1): Last reviewed commit: "Merge remote-tracking branch 'origin/sta..." | Re-trigger Greptile |
Summary
We skipped passing archivedAt for the list tables endpoint, causing the ui for recently deleted to fallback on updated time. Fixed this by passing archivedAt. Audited other resources which don't have this issue.
Type of Change
Testing
Checklist
Screenshots/Videos