Commit Graph

281 Commits

Author SHA1 Message Date
Kristóf Tóth
76456b36de Enable proxying of Triggerless messages in TFWServer 2018-02-23 15:14:23 +01:00
Kristóf Tóth
cf4a5bc09d Refactor FSMUpdate message sending logic to class FSMUpdater 2018-02-23 14:55:58 +01:00
Kristóf Tóth
940e74d6da Implement triggered and triggerless EventHandler base classes 2018-02-23 14:07:41 +01:00
Kristóf Tóth
fd1cb100ad Unify (key, response) ordering 2018-02-23 12:13:19 +01:00
Kristóf Tóth
38ca56fa9d Fix generate_fsm_update() not listing valid transitions properly 2018-02-23 12:08:14 +01:00
Kristóf Tóth
ecbb61a862 Overhaul WS->ZMQ proxying 2018-02-23 12:07:30 +01:00
Kristóf Tóth
26538a4ad9 Make ZMQWebSocketHandler "abstract" 2018-02-21 16:46:25 +01:00
Kristóf Tóth
31ba6cb623 Rename anchor -> key globally ¯\_(ツ)_/¯ 2018-02-21 15:28:16 +01:00
Bálint Bokros
609cd19589 Remove unnecessary super call 2018-02-19 10:02:42 +01:00
Kristóf Tóth
24fd753679 Implement support for multiple websockets connecting to TFW 2018-02-16 17:47:30 +01:00
Kristóf Tóth
3e54733033 Remove unused import 2018-02-16 11:09:58 +01:00
Kristóf Tóth
6e7e681602 Remove unnecessary call in FileManager 2018-02-15 16:32:41 +01:00
Kristóf Tóth
ade210c4fc Remove extension -> language mapping from backend (move to frontend) 2018-02-15 16:30:02 +01:00
Kristóf Tóth
c2e161dad3 Make DirectoryMonitor pausable using the with statement 2018-02-14 17:44:05 +01:00
Kristóf Tóth
0b3db0ae9e Implement pausing watchdog while webide files are being written 2018-02-14 16:09:09 +01:00
Bálint Bokros
2ebc34fa05 Remove unused create_source_code_response_data method 2018-02-13 17:57:12 +01:00
Bálint Bokros
b9e41c01cf Move RateLimiter to decorators 2018-02-13 17:56:01 +01:00
Bálint Bokros
14f3a4a153 Move SupervisorMixin to mixins 2018-02-13 17:51:19 +01:00
Bálint Bokros
f5a8230d3b Move ZMQConnectorBase to networking 2018-02-13 17:44:48 +01:00
Bálint Bokros
dbc2d1c0ea Add cenerator to enable testing 2018-02-13 17:35:30 +01:00
therealkrispet
2530fe43ea
Merge pull request #9 from avatao-content/controller_auth
Controller auth
2018-02-13 17:01:09 +01:00
Bokros Bálint
ddffb666be
Merge pull request #8 from avatao-content/watchdog
Watchdog
2018-02-13 16:32:50 +01:00
Kristóf Tóth
5213152477 Remove obsolete TODO 2018-02-13 16:29:45 +01:00
Kristóf Tóth
1d47ca5684 Add method EventHandlerBase.cleanup() 2018-02-13 15:38:46 +01:00
Kristóf Tóth
fd029dbfe7 Move RateLimiter to tfw.util 2018-02-13 15:06:19 +01:00
Kristóf Tóth
60bcb8c2b0 Refactor webide rate limiting 2018-02-13 15:06:15 +01:00
Kristóf Tóth
4d49c8d11b Improve webide refresh trigger rate limiting 2018-02-13 14:37:56 +01:00
Bálint Bokros
dda470fc93 Validate token in controller's HTTP handlers 2018-02-13 13:39:27 +01:00
Bálint Bokros
019ce53b39 Share token with solvable upon starting 2018-02-13 13:38:13 +01:00
Bálint Bokros
cb46a8b80e Make controller async 2018-02-12 18:04:59 +01:00
Kristóf Tóth
dceb4b2b7e Implement basic rate limiting for webide autoreload magic 2018-02-12 17:46:01 +01:00
Kristóf Tóth
955e1c1cf3 Rename watchdog FileSystemEventHandler child 2018-02-12 17:01:23 +01:00
Kristóf Tóth
67579aea29 Implement sending reload command on file system changes 2018-02-12 16:43:30 +01:00
Kristóf Tóth
9c006451bf Implement proof of concept directory event monitoring 2018-02-12 16:01:24 +01:00
Bálint Bokros
86aecd18a8 Move responding-to-controller related stuff to its own class 2018-02-12 13:22:55 +01:00
Bálint Bokros
6f785b3ca7 Refactor solvable responses 2018-02-12 11:28:35 +01:00
Bálint Bokros
e04cc08dd6 Remove unnecessary autoreload
As running the project outside a Docker container has become unfeasible,
having this feature doesn't make sense anymore.
2018-02-12 11:09:30 +01:00
Kristóf Tóth
1692b424b5 Move webide and terminado event handlers to lib/tfw/components 2018-02-11 14:15:10 +01:00
Kristóf Tóth
4fe9d58681 Move TFWServer to tfw.networking.server package 2018-02-11 12:32:30 +01:00
Kristóf Tóth
0f6ec24d45 Remove unnecessary overrides from ZMQWebSocketHandler 2018-02-11 12:04:18 +01:00
Bálint Bokros
1e9642912c Create initial implementation for solution check 2018-02-09 17:37:56 +01:00
Bálint Bokros
4f181b8f09 Separate the handling of envvars by prefix 2018-02-09 17:37:56 +01:00
Bálint Bokros
2499c4759e Fix envvar imports 2018-02-09 17:37:56 +01:00
Bálint Bokros
28e83de0d7 Create PoC of solvable with hardcoded responses 2018-02-09 17:37:56 +01:00
Bálint Bokros
95e1f907ee Make serialization methods' parameter names more generic 2018-02-09 17:37:56 +01:00
Bálint Bokros
27376ada22 Create initial version of SolvableConnector 2018-02-09 17:37:56 +01:00
Bálint Bokros
03d6f587e9 Create initial version of ControllerConnector 2018-02-09 17:37:56 +01:00
Bálint Bokros
55ef87e089 Add AVATAO_SECRET to envvars 2018-02-09 17:37:56 +01:00
Kristóf Tóth
83b24ad538 Improve internal handling of environment variables 2018-02-09 10:38:16 +01:00
Kristóf Tóth
dceb3b947f Refactor handling of working directory for SourceCodeEventHandler 2018-02-08 17:13:14 +01:00
Kristóf Tóth
71dcb58c92 Change loglevel back to DEBUG (CRITICAL was committed accidentally) 2018-02-08 17:13:14 +01:00
Kristóf Tóth
c74c00c618 Extract process managing logic to SupervisorMixin from event handlers 2018-02-08 17:13:14 +01:00
Bálint Bokros
8b9f7e50cb Move FSM instantiation out of FSMManagingSocketHandler 2018-02-08 14:47:00 +01:00
Kristóf Tóth
849fd7b61c Hotfix eventhandlers invoked several times. Waiting for server refactor. 2018-02-07 10:13:06 +01:00
Kristóf Tóth
08260f70fa Remove leftover ioloop.install() stuff from module global era 2018-02-06 14:26:53 +01:00
Kristóf Tóth
b75709b3e5 Make tfw.networking more structured, remove relative import hell 2018-02-06 14:20:51 +01:00
Kristóf Tóth
de6e23e512 Remove thread safety warning: problem was nonexsistent ¯\_(ツ)_/¯ 2018-02-05 14:23:46 +01:00
Kristóf Tóth
654a732368 Fix ZMQWebSocketHandlers handling their own little FSM instances 2018-02-05 14:10:21 +01:00
Bálint Bokros
96762575ba Move JSON (de)serialization to socket boundaries 2018-02-02 18:39:06 +01:00
Bálint Bokros
31fea13a9a Move serialization in one place 2018-02-02 17:30:26 +01:00
Bálint Bokros
91d5e560eb Rework MessageSender to conform defined API 2018-02-02 16:51:06 +01:00
Kristóf Tóth
0d41b4c8e9 Refactor project structure 2018-01-31 15:56:39 +01:00
Kristóf Tóth
2ad42dbaa7 Fix logging: supervisord loglevel=debug for now 2018-01-31 11:38:01 +01:00
Kristóf Tóth
8bce986b1c Remove dead code from project 2018-01-31 11:35:07 +01:00
Kristóf Tóth
0e38bef92e Implement loglevel configuration from Dockerfile 2018-01-30 10:49:16 +01:00
Kristóf Tóth
071167d3d7 Refactor logging 2018-01-29 18:36:29 +01:00
Kristóf Tóth
6e6d775a05 OO Refactor event_handler_connector.py temporary solution 2018-01-29 17:27:16 +01:00
Kristóf Tóth
eedf589ab7 Implement setting working directory from ENV 2018-01-24 16:26:01 +01:00
Kristóf Tóth
83b66c47b5 Implement and integrate TerminadoEvendHandler to docker container 2018-01-24 15:10:59 +01:00
Kristóf Tóth
2b306efb04 Refactor EventHandles supervisord access to a mixin 2018-01-24 12:17:15 +01:00
Bálint Bokros
729ced323d Rename WEB_PORT to TFW_WEB_PORT 2018-01-10 16:52:03 +01:00
Bálint Bokros
0b8542fc39 Use initial version of SourceCodeEventHandler 2018-01-10 16:49:23 +01:00
Bálint Bokros
1d1cab228b Create initial version of SourceCodeEventHandler 2018-01-10 16:47:25 +01:00
Bálint Bokros
3e14b000b1 Expose supervisor to python clients 2018-01-10 16:31:36 +01:00
Bálint Bokros
7cc5268f9b Remove all frontend related stuff 2018-01-10 16:25:23 +01:00
Bálint Bokros
7e79c22437 Implement frontend dependency management 2017-12-11 17:37:21 +01:00
Bálint Bokros
642ca7f54c Implement watching static files 2017-12-11 13:59:11 +01:00
Bálint Bokros
77c3259099 Remove unnecessary parentheses 2017-12-05 12:44:48 +01:00
Bálint Bokros
b1159d6c3e Create helper methods for parsing source code 2017-11-27 21:09:57 +01:00
Bálint Bokros
8d8f55bbe6 Create parser for anchor in JSON 2017-11-27 21:09:57 +01:00
Bálint Bokros
ff38f41f57 Add environment variables to config 2017-11-27 21:08:31 +01:00