You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
matt-aitken
changed the title
React hooks should return basic metadata about the Job
[TRI-1923] React hooks should return basic metadata about the Job
Feb 6, 2024
If you want to build a UI that shows runs across multiple jobs it's difficult because the hooks return no info about the job.
I suggest we return the job "id" from them (which is actually the
slug
in the database).This would creating
v3
versions of the following API endpoints that return the job.idCore schema updates (add job.id)
trigger.dev/packages/core/src/schemas/api.ts
Line 1061 in 29edcd3
trigger.dev/packages/core/src/schemas/runs.ts
Line 107 in 29edcd3
trigger.dev/packages/core/src/schemas/events.ts
Line 4 in 29edcd3
The SDK API client URLs need updating to be
v3
instead ofv2
getEvent
getRun
getRunStatuses
https://github.com/triggerdotdev/trigger.dev/blob/main/packages/trigger-sdk/src/apiClient.ts#L446
The React package URLs need updating to be
v3
instead ofv2
:TRI-1923
The text was updated successfully, but these errors were encountered: