年度汽车档案话题

This is the first draft of the plugin mentioned here: Anyone interested in a mass automatic archiving plugin?

Basically on a certain (configurable) day of the year all topics posted before a certain (configurable) day get marked as Archived. This happens once a year.

Example on the 120th day of the year all posts from before the 30th day of the year will get archived.

https://github.com/eriko/auto-archive

Work to do:

  • Change to a list of days of the year (60, 120,180,240,300) and days afterwards to run (30)
  • Figure out an interface to select categories to effect or not effect.
9 个赞

Why would one need to mass-archive topics?

In our case we are a college and conversations that span over a year gather kruft of no longer valid information. It is better to begin again the fight over smoking on campus again in the context of current policies. The old conversation still exists for reference.

7 个赞

Another valid example is, a game company has a beta or alpha for a game. Three years later, the game is no longer like the beta or alpha and much different, if anyone even plays it any more? So why keep the alpha and beta categories at all…

4 个赞

Another example is using Discourse as a discussion platform for a lecture or course:

3 个赞

I found a small issue in that messages are just another form of Topics. So the code has been updated to only effect Archetype.default Topics.

3 个赞

好主意,我更倾向于在设定的时间后存档整个类别

用例:新闻快报类别。

几个过时的突发新闻类别 :flushed_face: 为什么有人会采用这种结构?

不,我的意思是,在一段时间后将某个分类下的帖子存档。例如,新闻分类下的帖子本质上是会过时的,所以这是一个很好的用例。一个分类可以有一个自动存档属性。

1 个赞