How can I compare arbitrary revisions of a post?

Revision history is useful.

It’s nice to be able to see the diff between any 2 adjacent revisions (revs 3 and 4, or revs 8 and 9), but this is really insufficient when a post has been changed substantially over time, or if someone makes a bunch of small changes saving each as they go, especially if they multiply revise those changes.

I very much need to be able to see the diff between, for instance, rev 3 (which I produced) and rev 9 (which is the current, having been changed by multiple edits by one or more colleagues) … because it doesn’t matter who made what changes, nor when (especially if later intervening edits undid some earlier edits); it only matters that I can see what now differs from when I last touched the post.

5 个赞

There is no way to do this at the current time.

1 个赞

That’s exceedingly disappointing. Might it be on a roadmap somewhere?

It is not on any roadmap at the moment. I don’t think it would be super difficult to do, so there are some options:

  1. sponsor the feature by proposing a goal and budget in marketplace
  2. work on building the feature and submitting a PR yourself
  3. sponsor the feature with a business or enterprise class hosting subscription at Discourse pricing | Discourse - Civilized Discussion
7 个赞

It this still the case? I’d like to compare post versions to research ‘edit spam’ on our forum in the Data Explorer.

2 个赞

我今天在阅读我们内部论坛上的一篇长篇知识库主题时也遇到了这个问题。我们也广泛使用 https://meta.discourse.org/t/discourse-policy/88557,并且团队中的每个人都必须承认他们已阅读并接受了知识库中策略主题的更改,当策略版本号增加时。策略是一个非常方便的功能!

不幸的是,正如发帖人早在 2018 年指出的那样,似乎没有办法比较特定的主题修订。这意味着,如果不同策略版本之间存在多个修订,您必须滚动浏览每个修订的整个文档,才能将更改与相邻的更改进行比较。

从历史上看,当前的功能一直运作良好,因为主题几乎完全是关于讨论的,您并不真正需要或想要鼓励编辑帖子——尽管您确实需要一些修订历史记录以供审核。但多年来,我们添加了功能,使主题适合协作创建知识库文档。这包括对 OP 进行 wiki 化、DiscoTOC - 自动目录Discourse-docs:文档管理插件Discourse 共享编辑以及当然还有策略。

因此,我主张改进比较和管理修订的 UI。

这是它现在的样子,允许您将之前的修订(左侧)与下一个更新的修订(右侧)进行比较。左下角的修订导航允许您切换到上一个/下一个修订,或跳转到第一个或最后一个修订。

维基百科是寻找先前存在的明显地方,因为这也是编辑维基百科的人们所熟悉的。Help:Page history - Wikipedia 有一个视频,介绍了整个维基百科修订系统,该系统非常强大、晦涩难懂,而且也令人不知所措。我可以想象复制这一点将是一个有趣的项目,如果有人想贡献它,对于那些真正大量依赖维基主题并且版本控制是优先考虑的网站。它会是一个插件吗?

对于核心功能,一个较小的改进来解决 OP 是复制“修订之间的差异”页面——请参见下面的屏幕截图。它与 discourse 非常相似。请注意,导航位于标题中,允许您独立导航左右两侧以比较不同版本。此外,还会显示修订的确切时间和日期,而在 discourse 中,您必须将鼠标悬停在上面才能看到确切的时间和日期。

1 个赞

这个长期被搁置的功能愿望的顶帖。遗憾的是,@codinghorror 提供的选项对我来说是不可行的,因为……

  1. 通过在 Marketplace 中提出目标和预算来赞助该功能
    我没有这方面的预算。
  2. 自己动手构建该功能并提交 PR
    我的主要编程语言是英语,我几乎不使用计算机语言进行编码。
  3. 通过 discourse.org/buy 的企业级托管订阅来赞助该功能
    同样,我没有这方面的预算。

我很有信心这将是一个普遍有用的功能。也许应该有一些受欢迎程度的投票,以帮助对功能请求、错误报告等进行分类?

很遗憾,Ted,你只能在这里继续等待更多人(最好是客户)提出这个要求。完全理解你认为资助这个项目不可行。

3 个赞

我们也需要这个功能。

我们同时使用 Discourse 进行文档编写和讨论。对于像我们这样的公司来说,能够比较两个先前版本的功能是编写文档的预期需求。

此外,我们的内部社区非常关注开发者。对他们来说,能够比较任意两个版本尤其有用。

这并非关键功能,但如果我要进行平台与平台之间的全新分析,这将是 Discourse 的一个额外加分项。

2 个赞