Pipeline: Removes our original idea of an isOnline boolean filter and creates a locations object that will serve both the needs of the FE display and the BE filtering/aggregations.
API: Adds locations to available querying params
Related to #103
I also added an .nvmrc file because I was trying to update snapshots on node 16 and getting unhelpful errors.
How to test
Explore ElasticCloud as it's been reindexed just now, view the new objects.
Run the API locally and go to:
What does this change?
isOnline
boolean filter and creates alocations
object that will serve both the needs of the FE display and the BE filtering/aggregations.Related to #103
I also added an
.nvmrc
file because I was trying to update snapshots on node 16 and getting unhelpful errors.How to test
Explore ElasticCloud as it's been reindexed just now, view the new objects. Run the API locally and go to:
http://localhost:3000/events?location=in-our-building
http://localhost:3000/events?location=online,in-our-building
http://localhost:3000/events?location=notvalid
(should error as we validated the allowed values)How can we measure success?
We can happily work on the FE parts without issue
Have we considered potential risks?
Everything behind a toggle, not risky.