Topic Yearly Auto Archive

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개의 좋아요