Alexis Tyler
ce46c63bd0
fix: cleanup servers endpoint
2020-06-18 16:08:33 +09:30
Alexis Tyler
0fd14b701b
fix: ensure we have local data for server endpoint fallback
2020-06-18 15:42:03 +09:30
Alexis Tyler
ad04ff734b
refactor: use correct type for Server
2020-06-08 16:43:11 +09:30
Alexis Tyler
03f3450db6
fix: ensure we only allow permitted access to servers endpoint
2020-06-08 16:41:22 +09:30
Alexis Tyler
59b5242d67
fix(graphql): fix types
2020-06-08 16:26:09 +09:30
Alexis Tyler
ff48805da1
fix: misc changes
2020-06-08 16:10:39 +09:30
Alexis Tyler
3f3212e780
refactor(apollo-server-express): update dep and remove manual patch
2020-06-08 14:56:58 +09:30
Alexis Tyler
c28282df76
fix: ensure proxy-data is cached correctly
2020-06-06 14:33:02 +09:30
Alexis Tyler
4958d21501
feat(mothership): ensure we only connect when we have a valid key
2020-05-31 15:06:41 +09:30
Alexis Tyler
3dc9bd2db7
refactor: cleanedup core importing and added better worker crashing
2020-05-31 12:13:24 +09:30
Alexis Tyler
2a1a4fadc3
refactor(project): add better typing support
2020-01-23 16:20:22 +10:30
Alexis Tyler
edc135b4e2
refactor(graphql:schema/resolvers): allow endpoints to always publish
2020-01-11 12:36:40 +10:30
Alexis Tyler
b9149d599f
chore(app/index): remove old metrics call
2020-01-10 14:16:25 +10:30
Alexis Tyler
5971fce4e7
fix(module:graphql/index): replace user onConnect/onDisconnect logging
...
Remove the old `clients` Map and ws-clients field on $injector and replace with context object
2019-12-09 12:29:22 +10:30
Alexis Tyler
ecfd385ade
style(lint): remove un-used code
2019-11-25 12:00:05 +10:30
Alexis Tyler
905a8350f7
refactor(module:graphql/schema/resolvers): fix memory leak
...
remove bottleneck, replace pubsub -> bus for disks, disable bus republish to pubsub and disable me
endpoint
2019-11-25 11:58:14 +10:30
Alexis Tyler
61dbc6f61e
style(module:graphql/index): cleanup resolve's run function
2019-11-11 13:56:21 +10:30
Alexis Tyler
b58515f244
style(app/server): lint
2019-11-10 16:05:46 +10:30
Alexis Tyler
beaad40ac7
feat(schema:info/machine-id): added machineId to info
2019-11-10 15:50:46 +10:30
Alexis Tyler
8e29f5fc1f
feat(module:app/server): add x-machine-id to header
2019-11-10 15:50:10 +10:30
Alexis Tyler
82b32a2110
style(module:graphql/index): fix typo
2019-11-10 15:10:38 +10:30
Alexis Tyler
cf7b526571
style(module:graphql/schema/resolvers): linted
2019-11-10 11:18:42 +10:30
Alexis Tyler
22ff4c14d1
fix(module:graphql/schema/resolvers): only update when clients connect
2019-11-10 11:14:47 +10:30
Alexis Tyler
62114e1edc
style(module:metrics): add new line to end of file
2019-11-09 12:14:36 +10:30
Alexis Tyler
b16650f312
style(index): rename camelcase -> camelCase
2019-11-09 12:14:14 +10:30
Alexis Tyler
efaa84afde
improvement(module:metrics): add websocket clients and memory caches
2019-11-09 12:12:17 +10:30
Alexis Tyler
6d9b40b010
fix(modules:graphql/schema/resolvers): reduce disks memory usage
...
Replace pubsub subscription with bus event and change Bottleneck limiter to BLOCK strategy.
2019-11-03 14:43:38 +10:30
Alexis Tyler
89cec355c6
style(module:app/graphql/sceham/resolvers): lint
2019-10-31 17:09:48 +10:30
Alexis Tyler
fa6002112d
fix(module:graphql/schema/resolvers): fix memory leak
...
Move setInterval outside of subscribe to prevent memory increasing on each connection.
2019-10-31 17:08:34 +10:30
Alexis Tyler
9dd6fc5537
improvement(module:app/graphql): register ws-clients with $injector
2019-10-31 17:07:29 +10:30
Alexis Tyler
a2c3cabacc
improvement(module:graphql/index): switched error log debug->error
2019-10-26 16:38:38 +10:30
Alexis Tyler
eb8603f776
fix(module:app/server): fix EADDRINUSE
2019-10-25 16:56:27 +10:30
Alexis Tyler
6d0b07683e
improvement(schema:services/service): added version field
2019-10-22 18:20:16 +10:30
Alexis Tyler
3acaf4ba1e
chore(lint): linted
2019-10-20 18:12:45 +10:30
Alexis Tyler
f8f3a3e62f
fix(module:index): log whole error in development
2019-10-20 18:00:53 +10:30
Alexis Tyler
df3d350ba3
refactor(module:schema/resolvers): switch to event based system
2019-10-20 18:00:18 +10:30
Alexis Tyler
8b1dd10446
fix(module:graphql/schema/resolvers): remove unneeded await
...
Without the `await` the `subscribe` function can return instantly and just wait for replies on the
returned `asyncIterator`.
BREAKING CHANGE: Reduces CPU usage when on my_servers.
2019-10-17 16:28:11 +10:30
Alexis Tyler
d17e0b141e
chore(module:graphql/schema/resolvers): remove trailing whitespace
2019-10-17 15:54:36 +10:30
Alexis Tyler
9bd1dc8649
refactor(module:graphql/schema/resolvers): switched from timer to re-run
...
Rewrote the main loop for basic resolvers so they no longer use a timer.
2019-10-17 15:44:38 +10:30
Alexis Tyler
caad1083b0
improvement(module:graphql/index): add ws-clients to $injector
2019-10-17 15:43:01 +10:30
Alexis Tyler
aefce6eb01
chore(lint): removed extra spaces
2019-10-14 14:33:58 +10:30
Alexis Tyler
4d91b8be62
feat(schema:info/memory): add basic types
2019-10-14 14:25:03 +10:30
Alexis Tyler
a529f75c18
improvement(schema:array/array): add boot and parity to array
2019-10-14 14:24:24 +10:30
Alexis Tyler
01c3be11e6
fix(schema:disks/disk): add value to DiskSmartStatus & DiskInterfaceType
...
Add unknown to DiskSmartStatus and DiskInterfaceType.
2019-10-14 14:23:38 +10:30
Alexis Tyler
6ecef3b033
feat: add new baseboard type to info
2019-10-13 14:56:06 +10:30
Alexis Tyler
eaf1f343a2
refactor: remove old config file
2019-10-13 14:55:29 +10:30
Alexis Tyler
f723042f63
chore(dev): cleaned up "dev" script and added "DEBUG" mode
...
Cleaned up "dev" script and added playground/introspection when in DEBUG mode.
2019-10-13 13:21:27 +10:30
Alexis Tyler
b6447d7316
fix: remove unneeded "deepmerge" dep
2019-10-12 17:33:13 +10:30
Alexis Tyler
e856a12823
ci: add xo dep and lint files
2019-10-12 16:29:54 +10:30
Alexis Tyler
b0411deb42
chore: lint
2019-10-07 17:43:58 +10:30