Commit Graph

101 Commits

Author SHA1 Message Date
R. Tyler Croy 89c8038a42
Merge pull request #32 from rtyler/clean-up
Clean up some npm versions
2018-11-27 07:08:11 -08:00
R. Tyler Croy 110bd13c63
Downgrade event-stream to 3.3.4 to work around compromised flatmap-stream code
`npm i --save event-stream@3.3.4`

See the issue outline here: https://github.com/dominictarr/event-stream/issues/116

The expected impact for Uplink is minimal since the assessment made of the
malicious code is that it's going after cryptocurrency wallets and related
assets on a target machine (more analysis here:
https://github.com/dominictarr/event-stream/issues/116#issuecomment-441759047)
2018-11-27 06:38:57 -08:00
R. Tyler Croy 9dc66b6a06
Upgrade jest-cli to resolve some low impact issues 2018-11-27 06:32:47 -08:00
R. Tyler Croy 5f051908bb
Remove the REFRESH MATERIALIZED VIEW interval
We're not actually using this materialized view at the moment, so we do not need
to bother with this.
2018-11-26 13:01:53 -08:00
R. Tyler Croy a823b059ad
Merge pull request #30 from rtyler/transform-correlator-15
Support inline transformation of legacy correlator IDs into type-specifc signatures
2018-10-29 10:50:55 -07:00
R. Tyler Croy c0437dd079
Add a test to cover the Jenkins core compatibility 2018-10-28 15:53:31 -07:00
R. Tyler Croy 3c5104ecfd
Use a real-looking old-style correlator in the `generate-event` target 2018-10-28 15:53:31 -07:00
R. Tyler Croy 385fdd964d
Support inline transformation of legacy correlator IDs into type-specific signatures
Fixes #15
2018-10-28 15:53:12 -07:00
R. Tyler Croy c0d27e5e7e
Merge pull request #28 from rtyler/filter-24
Throw errors which are not from the sub-service call
2018-10-28 10:04:08 -07:00
R. Tyler Croy 7c7e21ddfd
Throw errors which are not from the sub-service call
Fixes #24
2018-10-27 20:35:08 -07:00
R. Tyler Croy 16130b7021
Make migration failures non-fatal to starting the application 2018-10-27 15:53:57 -07:00
R. Tyler Croy 46752a4860
Merge pull request #26 from rtyler/export-date-17
Support exporting based on months
2018-10-27 14:54:10 -07:00
R. Tyler Croy 5fa6626c1f
Export with arbitrary date ranges to satisfy the users 2018-10-27 14:33:12 -07:00
R. Tyler Croy b319ae9eaf
Support exporting by months
Fixes #17
2018-10-26 21:20:24 -07:00
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 a01c698485
Merge pull request #23 from rtyler/id-sort
Avoid feathers-sequelize pagination which is bad
2018-10-25 13:09:37 -07:00
R. Tyler Croy 33265fd0eb
Avoid using feathers-sequelize pagination which is godawful slow on big tables
SELECT COUNT(DISTINCT(id)) FROM events

R U J/K
2018-10-25 12:54:19 -07:00
R. Tyler Croy f64d1d36bb
Sort events by default on an indexed column (id)
I believe sorting on createdAt, which is not indexed, was slowing things down
2018-10-25 12:34:40 -07:00
R. Tyler Croy cfb1d83ac6
Merge pull request #20 from rtyler/jsonb-for-querying
Convert the events.payload column to JSONB to allow querying.
2018-10-25 12:29:46 -07:00
R. Tyler Croy 05b893db00
Merge pull request #22 from rtyler/unreliable-tests
Ensure tests are clearing the database before running
2018-10-25 10:42:10 -07:00
R. Tyler Croy 02c9da6207
Ensure tests are clearing the database before running 2018-10-25 10:33:20 -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 58bbfab3a7
Merge pull request #18 from rtyler/types-denormalization-14
Introduce the types table for types denormalization
2018-10-24 07:20:15 -07:00
R. Tyler Croy f1fabff970
Disable coverage when running in watch mode
It just errors into garbage anyways 😄
2018-10-23 20:40:22 -07:00
R. Tyler Croy 22f2c49910
Update the view to handle types coming in a richer (full record) format
The types service now returns JSON versions of database rows, rather than an
Array of strings
2018-10-23 15:10:10 -07:00
R. Tyler Croy a3a026ea06
Ensure the create of events results in a creation of the appropriate types record
Fixes #14
2018-10-23 15:02:34 -07:00
R. Tyler Croy 1e4742dae2
Add the allowInternal option for the authorize hook
This also improves the tests to make sure they're testing what they should,
including passing through the feathers built-in authentication mechanism
2018-10-23 15:01:58 -07:00
R. Tyler Croy dc196e9b34
Replace the existing types service with one backed by a denormalized model
Fixes #14
2018-10-23 12:46:14 -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 327920b660
Merge pull request #13 from rtyler/types-1801
Add an index on the events.type column
2018-10-22 10:47:55 -07:00
R. Tyler Croy 0c8d0b7f3c
Ensure that migrations are run when the container boots
This is a little derpy, but the simplest way to reliable get these migrations to
execute along with application deployments
2018-10-22 10:34:19 -07:00
R. Tyler Croy 9f451c1994
Remove a couple spurious console statements I left in yesterday 2018-10-21 09:15:48 -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 d6b048c417
Merge pull request #12 from rtyler/types-1801
Add types navigation to the dashboard
2018-10-20 19:38:04 -07:00
R. Tyler Croy 757e3b4691
Ensure the selected type is shown in the drop down by default 2018-10-20 14:40:40 -07:00
R. Tyler Croy a7805eaee7
Add types navigation to the dashboard
Easily jump to any type available
2018-10-20 13:37:37 -07:00
R. Tyler Croy e37ef08ecc
Merge pull request #11 from rtyler/stylez
Use fluid containers for better rendering in production
2018-10-16 07:03:53 -07:00
R. Tyler Croy c5a32f31b0
Use fluid containers for better rendering in production 2018-10-15 12:31:26 -07:00
R. Tyler Croy f972a5088f
Update Jenkinsfile 2018-10-11 19:51:12 -07:00
R. Tyler Croy 384d8c4989
Update Jenkinsfile 2018-10-11 19:50:37 -07:00
R. Tyler Croy 85deae1e38
Update Jenkinsfile 2018-10-11 19:47:13 -07:00
R. Tyler Croy 6bfb11b8a1
Update Jenkinsfile 2018-10-11 19:45:50 -07:00
R. Tyler Croy 8ddc878af8
Add some additional options to Pipeline 2018-09-27 12:21:30 -07:00
R. Tyler Croy a2ebea0137
Merge pull request #10 from rtyler/sentry
Add Sentry error reporting
2018-09-27 12:00:25 -07:00
R. Tyler Croy b697928394
Incorporate Sentry error reporting into Uplink
The secret for this is already present in production
2018-09-27 11:55:08 -07:00
R. Tyler Croy e3ae6bebca
Merge pull request #9 from rtyler/grants-admin-3
Add support for adding more grants through an admin page
2018-09-21 11:03:44 -07:00
R. Tyler Croy 03ea364b19
Add support for adding more grants through an admin page 2018-09-21 10:48:11 -07:00
R. Tyler Croy 7a9b29dd62
Merge pull request #8 from rtyler/apply-grants-4
Add support for restricting access via grants
2018-09-20 17:48:46 -07:00
R. Tyler Croy c6ce54ee87
Add support for restricting access via grants
Fixes #4
2018-09-20 17:06:42 -07:00
R. Tyler Croy 4900aafca9
Missed an API compatibility issue between the bulk service and export controller 2018-09-20 15:42:11 -07:00