Commit Graph
4 Commits
Author SHA1 Message Date
Davide Silvestri 3486ba237a feat: data sync run history - record every sync as a job and show it to users (#5706)
* fix: call JobType.on_error hook again when a job fails

The call was accidentally dropped in e0a07588a, leaving the documented
post-transaction error hook dead. Job types rely on it to persist error
details that would otherwise be lost to the rolled-back job transaction.

* feat: record data sync runs as jobs and show the sync history

Periodic data syncs now run through the job system on behalf of the
authorized user, so every sync run (manual or periodic) is recorded as a
SyncDataSyncTableJob with a triggered_by discriminator. A new JobType
scoping hook lets the generic jobs listing expose runs started by other
users after a ListDataSyncJobsOperationType permission check, on both the
type-filter and job_ids polling paths. The frontend shows a paginated run
history (state, trigger, user, time, duration, error) in the data sync
configuration modal and below the manual sync modal, live-updating
through the existing job store poller.

* fix: address feedback
2026-07-22 13:35:50 +02:00
Cezary Statkiewicz e775b1e834 image paths fix 2024-10-16 12:06:01 +02:00
Cezary Statkiewicz e99b889fdc #3034 job docs/ internal api refactor - precise state description 2024-10-16 09:44:28 +00:00
Cezary Statkiewicz 6eaff521d4 job subsystem docs 2024-10-14 08:25:16 +00:00