Batch: Update internal/photoprism/batch/README.md #271 #5324

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-11-21 13:57:17 +01:00
parent 46d53d63f8
commit ce92f56900

View file

@ -1,6 +1,6 @@
## PhotoPrism — Batch Edit Package
**Last Updated:** November 20, 2025
**Last Updated:** November 21, 2025
### Overview
@ -227,6 +227,8 @@ Testers reported intermittent `Error 1213 (40001)` deadlocks when multiple batch
- **Metrics & Alerts**
- The API shares the `/api/v1/metrics` Prometheus endpoint; batch edits increment the standard HTTP counters/latencies. Consider dashboarding 5xx/4xx spikes for `/batch/photos/edit` if you rely heavily on automation.
> When adjusting `internal/photoprism/batch/apply_labels*.go`, remember tests assert cache behavior. Call `photo.PreloadLabels()` after deleting existing label relations and set `Items.Action = ActionUpdate` whenever labels are (re)added/removed in tests; otherwise cached joins may cause flakiness when subtests run together.
### Documentation & References
- <https://docs.photoprism.app/developer-guide/api/> — API Endpoints & Authentication