Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Discourse Categories Processor #45

Merged
merged 14 commits into from
Jul 17, 2017
Merged

Discourse Categories Processor #45

merged 14 commits into from
Jul 17, 2017

Conversation

brew
Copy link
Collaborator

@brew brew commented Jul 14, 2017

This pull request closes #33.

  • I've added tests to cover the proposed changes

This PR adds a forum-categories pipeline and add_discourse_categories_resource processor. Closely related to the forums pipeline and add_discourse_resource processor.

The processor will collect daily data for each specified category in the config:

  • new_topics
  • new_posts

The processor config can accept a children flag that determines how to treat the subcategories of a given category:

  • none (default): only collect data for the specified category, ignoring subcategories
  • aggregate: add subcategory data values to the parent category rows
  • expand: add subcategory values as separate rows in the resource

brew added 12 commits July 11, 2017 10:44
Currently collects daily data for `new_users` and `active_users` about a
specified Discourse forum instance. Includes tests.
Found a better way of collected daily data using /admin/report. Sadly
means I have to remove the cool generator yielding paged api requests into a
counter code. You'll always live on in our hearts and git history.

Added:

- visits
- new_posts
Moved from frictionlessdata to oki
Can be shared with other Discourse processors
Collects category data (without expanding subcategories) for
`new_topics` and `new_posts`.
The discourse forum category processor can accept a `children` flag that
determines how to treat subcategories for a given category.

- `none` (default): only collect data for the specified category,
  ignoreing subcategories.
- `aggregate`: add subcategory data values to the parent category rows
- `expand`: add subcategory values as separate rows in the resource
And allow `children` to be optional
@brew brew merged commit 02aebc3 into master Jul 17, 2017
@brew brew removed the WIP label Jul 17, 2017
@brew brew deleted the 33/discourse-categories branch June 27, 2018 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discourse Processor
1 participant