You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my own experience, I would say this behavior happens in about 30% of cases.
Additional context
Possible solutions:
Only call .save() if the gdoc revisionId has changed (easy; there's still a chance we erroneously overwrite it although far less likely)
Check that updatedAt hasn't changed before updating the record in the DB (easy; there's still a chance we erroneously overwrite it although far less likely)
Only update fields like content, and not slug or published
The text was updated successfully, but these errors were encountered:
Description
There is a race condition in saving condition which, when hit, can lead to:
owid-grapher/adminSiteServer/apiRouter.ts
Lines 2504 to 2506 in 9b1028b
From my own experience, I would say this behavior happens in about 30% of cases.
Additional context
Possible solutions:
.save()
if the gdocrevisionId
has changed (easy; there's still a chance we erroneously overwrite it although far less likely)updatedAt
hasn't changed before updating the record in the DB (easy; there's still a chance we erroneously overwrite it although far less likely)content
, and notslug
orpublished
The text was updated successfully, but these errors were encountered: