Skip to content

Persist sync execution history #23

@f2cmb

Description

@f2cmb

Why:
sync results (created/updated/errors/skipped) only exist in the AJAX response and Toolbox::logDebug. No way to audit what a past sync did, which is blocking for unattended (cron) runs.

What:

  • New itemtype SyncExecution (table glpi_plugin_advancedldap_syncexecutions): syncfilter FK, date, duration, mode (manual / dry-run / cron), counters, error details (JSON), triggering user
  • LdapSyncExecutor writes one record per run
  • New tab on SyncFilter showing execution history
  • Retention policy (keep last N executions, purge with the SyncFilter)
  • Unit tests

Depends on:
"Support LDAP paged results" (to persist the truncated-result signal)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions