Head revision not working as intended for Google D

2019-05-11 01:28发布

问题:

For "native" Google documents (maybe it applies to all Google formats, I haven't checked), using head in the revisions.get method returns the first revision instead of the latest one. It seems that it only relies on the order of the revisions returned by the revisions.list method, and that order is not really uniform (e.g. a Google document lists the latest first).

回答1:

This looks like a bug, I managed to reproduce it. I reported it to the engineers and I'll update this answer as soon I hear back from them.

UPDATE 12/2: this is now fixed and the fix will be live in 1-2 weeks