WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
388 stars 627 forks source link

Data download options should include aggregate CSV of edits for a campaign #1877

Open ragesoss opened 6 years ago

ragesoss commented 6 years ago

We have the option to download all the edits for a course, via the 'Download Stats' modal. A similar option for an entire campaign (like the others currently accessible from /campaigns) would be useful.

robotscissors commented 6 years ago

@ragesoss I am a new contributor, I would like to work on this.

I may have a few follow-up questions :)

ragesoss commented 6 years ago

@robotscissors cool! Ping here, ask on Slack, for any questions you have.

robotscissors commented 6 years ago

Hi @ragesoss, Having trouble with the installation process. I am almost there, but need a nudge.

OS: Mac Sierra I have installed on two separate machines.

Used two methods (manual and script)

Running gulp or gulp build produces these errors: Let's go (~/work/bloc/wiki-dashboard$) > gulp build [09:20:18] Failed to load external module @babel/register [09:20:18] Failed to load external module babel-register [09:20:18] Failed to load external module babel-core/register [09:20:18] Failed to load external module babel/register [09:20:18] Local gulp not found in ~/work/bloc/wiki-dashboard [09:20:18] Try running: npm install gulp

Then, I burst in tears repeatedly.

ragesoss commented 6 years ago

@robotscissors try npm install -g gulp (or sudo npm install -g gulp), then re-run gulp build.

robotscissors commented 6 years ago

@ragesoss, I appreciate the attention.

sudo npm install -g gulp then gulp build

Yielded this:

Let's go (~/work/bloc/wiki-dashboard$) > gulp build [10:18:48] Failed to load external module @babel/register [10:18:48] Failed to load external module babel-register [10:18:48] Failed to load external module babel-core/register [10:18:48] Failed to load external module babel/register /Users/christopher/work/bloc/wiki-dashboard/gulpfile.babel.js:1 (function (exports, require, module, filename, dirname) { import gulp from 'gulp'; ^^^

SyntaxError: Unexpected identifier at new Script (vm.js:74:7) at createScript (vm.js:246:10) at Object.runInThisContext (vm.js:298:10) at Module._compile (internal/modules/cjs/loader.js:670:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18)

screen shot 2018-06-12 at 10 20 53 am
ragesoss commented 6 years ago

Hmmm.... haven't seen that before.

Did you get any error messages when you ran yarn?

Also, what version of nodejs are you using? (node -v or nodejs -v)

robotscissors commented 6 years ago

YOU were right! I needed to downgrade node. Node was at 10.X and I did nvm use 9 and now I see the home page. Thank you!!

robotscissors commented 6 years ago

Hi @ragesoss, I plan on adding a link on the page below. Perhaps a link that says: Edit Statistics or All Edits?

Very well written application and I am still looking through it. Am I on the right track?

screen shot 2018-06-13 at 2 57 49 pm
ragesoss commented 6 years ago

Thank you!

Yep, that's the place for it for now. 'all edits' would be a good label.

At some point, we'll move all these links for each campaign to the home view for that campaign, and make /campaigns table use the same row layout as the /explore page, which shows stats for each campaign. But meanwhile, this is the place that makes sense.