R. Tyler Croy
b989ec888d
Add a materialized view to capture the first time a type has been seen for export
...
This will make it easier to create an interface which allows exporting events as
they've come up.
2018-10-26 15:49:09 -07:00
R. Tyler Croy
adb634ec2d
Convert the events.payload column to JSONB to allow querying.
...
We don't _need_ this right now, but I imagine this is better to do before the
data set grows any larger in the production database
2018-10-24 14:35:53 -07:00
R. Tyler Croy
777540fc31
Support bypassing authorization within the testing environment
...
This also adds some basic test coverage for the authorize hook, which I should
have added in the first place. 💩
2018-10-23 12:45:03 -07:00
R. Tyler Croy
863322492b
Add an index on the events.type column for faster SELECT DISTINCT() queries
2018-10-21 09:15:48 -07:00
R. Tyler Croy
997fb0610e
Incorporate some basic access control based off of GitHub username
...
This ensures that only those in the `grants` table can access specific pages.
For now this only supports wildcard grants, `*`, but in the future I expect to
restrict queries based on the type of grants made to the given user.
2018-09-12 08:42:06 -07:00
R. Tyler Croy
ebd9bbdb1c
Add a simple DB-backed users service
...
Fixes #5
2018-09-11 16:31:11 -07:00
R. Tyler Croy
1d9999aa59
Add a required correlator identifier
...
Fixes #1
2018-09-10 09:37:42 -07:00
R. Tyler Croy
86ea344525
Switch Events to a lower-case table name since postgresql is weird with casing
2018-09-10 09:36:39 -07:00
R. Tyler Croy
13bd07e810
Configure sequelize and generate the first (and likely only) model: Event
2018-09-09 21:34:44 -07:00