Commit Graph

3 Commits (9605c370ae46829e033177137b99a5c4f7731850)

Author SHA1 Message Date
SYED MUSTUFA AHMED NAQVI ec6aaac0fa feat: require location-site filter and add departmental sync summaries
Initial department sync now requires InitialSyncLocationSiteId and can
run across all active departments when department IDs are empty. Employee
selection filters by location site, reports inactive/missing departments,
and writes per-department outcomes to a dedicated DepartmentalSync biz log.
2026-08-25 10:30:59 +05:00
SYED MUSTUFA AHMED NAQVI 3ce91f4d76 feat: apply photo preprocessing, employee allow-list, and user-sync logging to initial sync
Wire the initial department sync to the new photo processor: downloaded
JPEGs are face-cropped/normalized before FaceDataRecord, and photos with
no detectable face are skipped and logged as FACE_NOT_DETECTED.

Add an optional InitialSyncEmployeeIds allow-list so only selected
employees within the chosen departments are enrolled (empty = whole
department), filtered directly in the SQL query with parameters.

Emit business entries to logs/user_sync_logs for provisioned users
("added successfully", "face enrolled successfully", readable failure
reasons) so onboarded users appear alongside the existing deletion
entries instead of only in internal_logs.
2026-08-15 15:58:30 +05:00
SYED MUSTUFA AHMED NAQVI 9d1e361099 feat: add department-based initial user and face provisioning
Add a configurable initial-sync flow that creates department employees on target Hikvision devices and uploads portal JPEG photos.

Support department-based employee filtering for existing user/template sync.

Discover and retry available Hikvision face libraries, then verify face enrollment after upload.

Extend service configuration and scheduled sync handling for the new onboarding flow.
2026-08-15 15:50:58 +05:00