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
And then the markdown version of that post for that revision number is returned by the command.
Note: POST_NUM is assumed to be 0, 1, 3, ..., with 0 being the first post in a topic and so on. So if POST_NUM is omitted, a sensible default would be 0, because that's the first post in the topic, and that's the one we use to represent our documents at Canonical.
Bonus: get the current revision number for some post.
Motivation
Today in Discourse, if you want to review the revision history of a post, you have to manually cycle back through all the individual versions of the post. For posts like the Kubeflow Tutorial with over 100 revisions, this is infeasible if we want to jump back many versions.
The text was updated successfully, but these errors were encountered:
ColmBhandal
changed the title
Post Revision History
Get Revision History for a Post
Jun 16, 2023
Use Case
Allow a user to view some revision
x
of some post in a topic. For example, they might run:And then the markdown version of that post for that revision number is returned by the command.
Note:
POST_NUM
is assumed to be0, 1, 3, ...
, with0
being the first post in a topic and so on. So ifPOST_NUM
is omitted, a sensible default would be0
, because that's the first post in the topic, and that's the one we use to represent our documents at Canonical.Bonus: get the current revision number for some post.
Motivation
Today in Discourse, if you want to review the revision history of a post, you have to manually cycle back through all the individual versions of the post. For posts like the Kubeflow Tutorial with over 100 revisions, this is infeasible if we want to jump back many versions.
The text was updated successfully, but these errors were encountered: