1602 / 1602/jugglingdb

updateAttributes function doesn't update the revision number

Offen
#394 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
2k
Forks
238
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

This function should take care of updating the _rev property in the instance after updating the document in the DB. 2 updates in a row of the same document fails with the current implementation.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Look for the updateAttributes function in the codebase, likely in a model or adapter layer. Check how it handles the _rev property for databases that use revision numbers (like CouchDB/Cloudant). The issue states two consecutive updates fail, so examine the update flow and where the revision is set after a DB write. Running existing tests for update operations might reveal the failure.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, mongodb, mysql, nodejs, postgresql, redis, sqlite
Bereich
backend, databases
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.