Closed srallen closed 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.
/giphy eyeroll
Of course that derped - the WildCam Lab is using a very old implementation of config.js, one that's
?env=
modifiers to switch to the correct environment, andstaging === development
for config environments.brb, this will be fixed.
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.
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.