dojo: Kontaktnotizen (REST messages), Contact Properties, PUT-silent-noop (#31, #32)

This commit is contained in:
Liborius
2026-04-10 14:43:33 +00:00
parent d5e3504f38
commit b4604877f3
2 changed files with 143 additions and 17 deletions

View File

@@ -245,6 +245,21 @@ await fetch('/rest/batch', { body: JSON.stringify({ payloads }) });
---
## 18. Property-Relation aktualisieren ohne valueId
```javascript
// FALSCH: PUT ohne id in relationValues → HTTP 200, aber kein Update!
await client.put(`/rest/properties/relations/${existing.id}`, {
relationValues: [{ value: 'Ja', lang: 'de' }], // id fehlt → silent noop
});
```
**Problem:** Plenty akzeptiert den PUT mit HTTP 200, aber der Wert wird nicht gespeichert, wenn `relationValues[0].id` fehlt. Kein Fehler, kein Hinweis — es passiert einfach nichts.
**Fix:** Prüfen ob `valueId` vorhanden. Wenn nicht: Relation löschen und neu erstellen (DELETE + POST). **Siehe DOJO.md #32**
---
## 17. Fester Delay für lang laufende Bulk-Operationen
```javascript