Commit Graph
100 Commits
Author SHA1 Message Date
Kristóf Tóth 5776400990 Make FSMManager.fsm a property 2018-02-26 17:24:56 +01:00
Kristóf Tóth 25fd71a2b8 Add message argument to FSMManager.trigger() 2018-02-26 17:24:56 +01:00
Kristóf Tóth 47a4e078de Replace homemade hacky defaultdict with defaultdict ¯\_(ツ)_/¯ 2018-02-26 17:24:56 +01:00
Kristóf Tóth 5e9eb88bfc Implement crude FSMManager – wip 2018-02-26 17:24:56 +01:00
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
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
therealkrispet e5576775ef Merge pull request #10 from avatao-content/util_refactor
Util refactor
2018-02-13 18:54:08 +01:00
therealkrispet 2530fe43ea Merge pull request #9 from avatao-content/controller_auth
Controller auth
2018-02-13 17:01:09 +01:00
Kristóf Tóth 5213152477 Remove obsolete TODO 2018-02-13 16:29:45 +01:00
therealkrispet f395adc8c3 Merge pull request #7 from avatao-content/controller
Initial controller implementation
2018-02-13 16:22:23 +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
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
Kristóf Tóth 4582538060 Merge branch 'controller' 2018-02-12 13:44:27 +01:00
Kristóf Tóth ec83cbe7a0 Make Dockerfile bootiful again 2018-02-11 15:20:06 +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
Kristóf Tóth bcd31de852 Begin refactoring app.py to TFWServer class 2018-02-11 11:50:40 +01:00
Kristóf Tóth 545b972296 Add chmod to wordir in Dockerfile 2018-02-09 17:25:38 +01:00
Kristóf Tóth 7720c63bc8 Make error handling of file reading more robust 2018-02-09 15:59:26 +01:00
Kristóf Tóth 8268e3e44a Update frontend 2018-02-09 15:32:32 +01:00
Kristóf Tóth 84375e9cf5 Improve attachment of always necessary data to response in webide 2018-02-09 15:04:00 +01:00
Kristóf Tóth 87b1163060 Fix typo in error logging 2018-02-09 13:14:13 +01:00
Kristóf Tóth 015d2c5019 Update frontend 2018-02-09 11:44:57 +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 c0f533c692 Update frontend 2018-02-08 17:48:48 +01:00
Kristóf Tóth 3da263d8cd Remove leftover default value 2018-02-08 17:42:00 +01:00
Kristóf Tóth be244217aa Refactor trivial piece of code overcomplicated 2018-02-08 17:39:59 +01:00
Kristóf Tóth 557318af4e Implement robust error handling in SourceCodeEventHandler 2018-02-08 17:13:14 +01:00
Kristóf Tóth 8c492df646 Implement exclude list in FileManager 2018-02-08 17:13:14 +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 89694097cc Temporary extension of ACE editor language map, make 'text' default 2018-02-08 17:13:14 +01:00
Kristóf Tóth 792981742c Make SourceCodeEventHandler command handlers data_json['data'] based 2018-02-08 17:13:14 +01:00
Kristóf Tóth 6283b825d6 Fix file list disappearing from json after write command – webide. 2018-02-08 17:13:14 +01:00
Kristóf Tóth c2c5353f98 Fix files in subdirectories killing everything I stand for 2018-02-08 17:13:14 +01:00
Kristóf Tóth d0a04240b6 Fix non-unicode files kill whole webide backend 2018-02-08 17:13:14 +01:00
Kristóf Tóth fc168f47ef Add support for tab switching on backend SourceCodeEventHandler 2018-02-08 17:13:14 +01:00
Kristóf Tóth eb344de7a2 Implement SourceCodeEventHandler support for multiple files 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 944066d699 Implement recursive file lookup in FileManager.files 2018-02-08 17:13:14 +01:00
Kristóf Tóth 5cc1ab2c8d Refactor handling of files in SourceCodeEventHandler 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
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 5e34835ed6 Refactor Dockerfile (move nginx setup to earlier layers) 2018-02-05 15:51:53 +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
Kristóf Tóth c99630172b Split nginx configuration to several files 2018-01-31 23:04:51 +01:00
Kristóf Tóth 0ec79fe8d0 Split supervisor configuration to several files 2018-01-31 23:04:27 +01:00
Kristóf Tóth 4c50f07be9 Unify Docker container config file locations to project root 2018-01-31 16:15:19 +01:00
Kristóf Tóth 0d41b4c8e9 Refactor project structure 2018-01-31 15:56:39 +01:00
Kristóf Tóth 23cc381495 Fix EventHandler subscriptions being registered several times 2018-01-31 15:10:05 +01:00
Kristóf Tóth 1b49386da6 Edit FSM transitions to minimize reset events causing slow loading 2018-01-31 13:24:38 +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 340ea31856 Remove unnecessary RPC server 2018-01-30 10:51:23 +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 1856831d80 Remove meaningless, obsolete dev commit 2018-01-29 18:04:45 +01:00
Kristóf Tóth f8ca656ff0 Fix ZMQWebSocketHandler's sockets being bound several times 2018-01-29 18:03:54 +01:00
Kristóf Tóth 87a437cfb5 Refactor socket logic from state machine ¯\_(ツ)_/¯ 2018-01-29 17:27:16 +01:00
Kristóf Tóth 9760db7c5c Work out multiple inheritance in event_handler_connector.py 2018-01-29 17:27:16 +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 e05ae079ad Refactor FSM instance creation 2018-01-29 14:09:40 +01:00
Kristóf Tóth 22aef7dd7b Remove unused json import 2018-01-29 13:24:55 +01:00
Kristóf Tóth 35d375968b Implement FSM status updates to frontend 2018-01-29 11:03:55 +01:00
Kristóf Tóth 14db8cae62 Fix EventHandlerBase anchor 'reset' subscription 2018-01-25 16:49:58 +01:00
Kristóf Tóth 96b5234fc1 Fix terminado buffer issues & terminado server OO refactor 2018-01-25 16:48:48 +01:00
Kristóf Tóth 7e4f8ae2f9 Update frontend 2018-01-25 14:31:50 +01:00
Kristóf Tóth 6de653534f Apply nginx reverse proxy to terminado's 7878 websocket 2018-01-25 12:22:32 +01:00
Kristóf Tóth d7919255ec Handling of xmlrpc exceptions is now done with contextlib.suppress() 2018-01-24 18:28:45 +01:00
Kristóf Tóth ae4c27c0f5 Freeze Python dependencies via pip install -r req....txt 2018-01-24 18:26:02 +01:00
Kristóf Tóth fb597adf46 TerminalEventHandler.handle_event() now logs instead of raising 2018-01-24 16:36:32 +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 c7bc588397 Refactor for handling xmlrpc exceptiions 2018-01-24 15:54:03 +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 6b6f4942c0 Reorder of Dockerfile for painless configuration of envvars 2018-01-24 13:46:27 +01:00
Kristóf Tóth 2b306efb04 Refactor EventHandles supervisord access to a mixin 2018-01-24 12:17:15 +01:00
Kristóf Tóth 3a7349abd4 Commit of sqlFSM magic line to make master branch testable 2018-01-24 12:15:24 +01:00
Kristóf Tóth 3dbb14ecd3 Removal of multistage features and general cleanup of Dockerfile 2018-01-18 15:51:08 +01:00
Kristóf Tóth 677bd57ba4 EventHandlers now handle anchor 'reset' in a dedicated method 2018-01-18 15:51:08 +01:00