1
0
mirror of synced 2026-01-22 00:06:56 -05:00
Files
airbyte/docs/api/generated-api-html
Davin Chia 5ab0883660 🎉 Surface latest sync status for connections. (#2405)
Add the latestSyncJobStatus field to the WbConnectionRead struct. Take the chance to rename the lastSync field to latestSyncJobCreatedAt to better reflect what the field captures. lastSync was confusing as I expect it to return the Id/object of the last sync and not the last sync's timestamp.

We keep the current expectation when setting status - the same job that sets the timestamp field is used to set the status field.

We surface the job's status as is. This gives the UI flexibility on displaying the various statuses.
Since the 'latest' sync job is determined by the JobHistoryHandler, I buffed up the job history handler test cases to make sure we do always return the latest sync job.
2021-03-25 13:41:02 +08:00
..