Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Revision History for a Post #18

Open
ColmBhandal opened this issue Jun 16, 2023 · 0 comments
Open

Get Revision History for a Post #18

ColmBhandal opened this issue Jun 16, 2023 · 0 comments
Assignees

Comments

@ColmBhandal
Copy link

Use Case

Allow a user to view some revision x of some post in a topic. For example, they might run:

dsctriage --get-revision <TOPIC_ID> <POST_NUM> <REVISION_NUM>

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.

@ColmBhandal ColmBhandal changed the title Post Revision History Get Revision History for a Post Jun 16, 2023
@lvoytek lvoytek self-assigned this Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants