Commit Graph

97 Commits

Author SHA1 Message Date
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
Alexis Tyler
104cb4e91e Add cpu and memory info. 2019-10-07 17:21:18 +10:30
Alexis Tyler
feee94fc56 switch ArrayDiskFsType to DiskFsType and add DiskParition type
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-09-30 15:52:04 +09:30
Alexis Tyler
39ac22be70 remove unneeded imports and import missing PluginError
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-09-30 15:51:19 +09:30
Alexis Tyler
233ccbd7ac fix socket permissions
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-09-28 16:53:45 +09:30
Alexis Tyler
b1bfcef86f move Disk to ArrayDisk and add Disk back
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-09-23 13:58:20 +09:30
Alexis Tyler
1ec586ad05 add extra DiskFsTypes, DiskTypes and fixed Disk type
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-09-23 13:06:42 +09:30
Alexis Tyler
264a8cbf8b disable logging user
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-09-21 14:08:41 +09:30
Alexis Tyler
882dbbf5cc ensure info/apps is published to when docker events happen
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-09-01 09:56:50 +09:30
Alexis Tyler
012ea1a730 remove websocket from clients when socket closes and switch info subscription to basic handler for now
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-31 13:51:29 +09:30
Alexis Tyler
f3fd17597f add log for ws dis/connect and fix publish for non-plugin modules
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-25 16:44:15 +09:30
Alexis Tyler
a1c81a1768 fix info subscriptions and add pluginModule subscription
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-25 15:52:26 +09:30
Alexis Tyler
e33a262e6a cleanup graphql warnings
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-23 08:38:06 +09:30
Alexis Tyler
be6941d304 change id(String->IDadd HOF to create basic subscriptions and fixed server listening to httpServer instead of stoppable wrapper
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-19 15:42:32 +09:30
Alexis Tyler
5de4b1293b add module timer and add services/array to subscriptions
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-19 11:41:43 +09:30
Alexis Tyler
49276acab9 replace @container with resolvers
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-18 13:17:01 +09:30
Alexis Tyler
1729c4e4d9 add pubsub to info
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-18 11:23:36 +09:30
Alexis Tyler
ade0e65bcd remove welcome subscription and start adding subscriptions for queries
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-17 15:52:50 +09:30
Alexis Tyler
8785ec0724 add me subscription
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-17 15:40:29 +09:30
Alexis Tyler
09cf2cd4ff update @unraid/core and move pubsub to core
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-17 14:13:49 +09:30
Alexis Tyler
ddc8c3643e add welcome, ping and users subscriptions
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-17 13:33:29 +09:30
Alexis Tyler
3ad0ae0756 add base times to startPing
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-17 12:22:41 +09:30
Alexis Tyler
060aa06170 add graphql subscriptions
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-17 12:20:18 +09:30
Alexis Tyler
2339a5d4d3 swap copyright headers
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-11 17:14:09 +09:30
Alexis Tyler
8ae8c83a0b add updateApiKey mutation
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-11 14:33:24 +09:30
Alexis Tyler
ebe86659e5 start on loading types from jsdocs
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-10 15:10:02 +09:30
Alexis Tyler
761d343cc1 fix core env not working
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-10 15:09:44 +09:30
Alexis Tyler
5ebb57aeb4 update deps
Signed-off-by: Alexis Tyler <xo@wvvw.me>
2019-08-09 15:20:26 +09:30