zooniverse / wildcam-gorongosa-education

This is WildCam Labs, the education/exploration-oriented extension of the WildCam Gorongosa project.
https://lab.wildcamgorongosa.org/
Apache License 2.0
0 stars 1 forks source link

Add WG program #323

Closed srallen closed 6 years ago

srallen commented 6 years ago

This adds the notion of a program to the redux store including the associated actions, reducer, etc. I've added the request for the wildcam gorongosa program to the App component and updated the config to work with staging.

Follow up to this is to add the program filter to the get request for classrooms and the program link on create.

shaunanoordin commented 6 years ago

Ooh, nice, WildCam Gorongosa Lab's getting ready for the future!

Right, just give me a minute to debug something - it looks like the REQUEST_PROGRAM action makes a call to http://localhost:3000/undefinedprograms/undefined, which should be straightforward enough to diagnose.

shaunanoordin commented 6 years ago

/giphy eyeroll

Of course that derped - the WildCam Lab is using a very old implementation of config.js, one that's

  1. not smart enough to listen for ?env= modifiers to switch to the correct environment, and
  2. doesn't recognise that staging === development for config environments.

brb, this will be fixed.

srallen commented 6 years ago

FWIW, programs don't exist yet on production and that's what we're planning on deploying when we're all together, so it'll still error when using the production env. However, this does make it easier for us to test production before deploying when the time comes.