Commit graph

215 commits

Author SHA1 Message Date
Lucien Greathouse
9af6c9cfd9 test /read API for empty project 2018-06-06 00:07:20 -07:00
Lucien Greathouse
565bed2b9d Change /read to use a list of IDs instead of POSTing JSON 2018-06-05 23:43:10 -07:00
Lucien Greathouse
c85e5c8a78 Wrangle lifetimes and implement empty read_all test 2018-06-05 23:36:50 -07:00
Lucien Greathouse
27d5bd3d6f Add test utilities for server 2018-06-05 23:18:33 -07:00
Lucien Greathouse
9e0e12358c Implement integration tests for web API 2018-06-05 00:55:46 -07:00
Lucien Greathouse
473edad399 Convert most web code to use Project where possible 2018-06-05 00:22:54 -07:00
Lucien Greathouse
bfda025a97 Port Session objects to use Project instead of SessionConfig 2018-06-05 00:07:15 -07:00
Lucien Greathouse
0a05ab4d69 Implement Project, which is more direct 2018-06-05 00:02:24 -07:00
Lucien Greathouse
6b9367c370 Rename Project to SourceProject 2018-06-04 23:28:52 -07:00
Lucien Greathouse
204084dcae Beautify project code 2018-06-04 23:24:51 -07:00
Lucien Greathouse
8cd7d990e0 Iterative progress
* Cleaned up MessageSession code a little bit, it's still pretty
  suboptimal
* Added stub `tests` folder
* Renamed rojo_core to librojo
2018-06-04 23:10:42 -07:00
Lucien Greathouse
1dc69d81dc Move API to /api, in preparation for web interface in / 2018-06-04 22:09:51 -07:00
Lucien Greathouse
fff8741817 Update .editorconfig so that it'll actually work 2018-06-03 00:50:58 -07:00
Lucien Greathouse
554ae42f7b Factor out web logic into dedicated struct to ease testing 2018-06-02 19:28:44 -07:00
Lucien Greathouse
516246c56a Extract out RbxTree; more robust tree implementation 2018-05-31 00:35:18 -07:00
Lucien Greathouse
ee108e414f Track both parent and children on instances 2018-05-31 00:24:27 -07:00
Lucien Greathouse
1137584cd3 Switch from 'parent' property to 'children' property for tracking instances 2018-05-30 23:34:45 -07:00
Lucien Greathouse
313e617181 Add (broken) implementation of /read endpoint 2018-05-30 23:14:14 -07:00
Lucien Greathouse
bf7c0cb32d Modernize web_util 2018-05-30 22:58:18 -07:00
Lucien Greathouse
068aa513a0 Remove json_response in favor of Response::json, which now works in Rouille 2.x 2018-05-30 22:52:27 -07:00
Lucien Greathouse
5eaa5b7950 Implement stub 'read' echo API 2018-05-30 22:48:38 -07:00
Lucien Greathouse
0d25e1c196 Move partition info into root endpoint 2018-05-30 22:44:06 -07:00
Lucien Greathouse
8df0565e0e Send partition information in read_all endpoint 2018-05-30 22:37:49 -07:00
Lucien Greathouse
bf6766919e Track what needs to be done in-source 2018-05-26 03:15:39 -07:00
Lucien Greathouse
63ea182f94 Plugin cleanup, and better message distinction 2018-05-26 03:00:06 -07:00
Lucien Greathouse
a30937f009 Handle moving (very sloppily) 2018-05-26 02:32:10 -07:00
Lucien Greathouse
e4f35b29bd Deletion, wrangling parents a little bit 2018-05-26 02:28:34 -07:00
Lucien Greathouse
8729de1312 Basic synchronization of edited objects 2018-05-26 02:06:10 -07:00
Lucien Greathouse
00b903e97c Update plugin to use new API 2018-05-26 01:12:06 -07:00
Lucien Greathouse
d85383cfd4 Introduce MessageSession, for keeping track of messages to send to clients 2018-05-26 01:11:05 -07:00
Lucien Greathouse
92fa52c56f Implement long-polling message passing 2018-05-26 00:16:27 -07:00
Lucien Greathouse
a9d24f1493 Plugin work 2018-05-25 23:38:03 -07:00
Lucien Greathouse
3e4b595e3b Stomp out old plugin, begin foundations for v2 plugin 2018-05-18 00:46:07 -07:00
Lucien Greathouse
de02966db6 Implement portion of long-polling message interface, untested 2018-05-18 00:43:12 -07:00
Lucien Greathouse
9f31b1233f Implement read_all endpoint, pass RbxSession into web process 2018-05-17 01:27:11 -07:00
Lucien Greathouse
59e3881895 Increase port range for random project port generation 2018-05-16 22:25:19 -07:00
Lucien Greathouse
d81ebc927a Make RbxSession track instances by FileRoute 2018-05-16 00:44:46 -07:00
Lucien Greathouse
b301a6512e Naive, untested VFS implementation 2018-05-13 01:05:15 -07:00
Lucien Greathouse
c604ab6b1c Fight borrow checker, incomplete VfsSession write interface 2018-05-12 22:56:16 -07:00
Lucien Greathouse
50b4157c11 Bump up maxed received body size to 100 MB 2018-05-12 15:37:26 -07:00
Lucien Greathouse
7bb148c0e7 Trim web server a bit and re-enable it 2018-05-12 15:35:57 -07:00
Lucien Greathouse
5bf3af57ab Bump protocol to version 2 2018-05-12 15:27:32 -07:00
Lucien Greathouse
5acbc9f967 Orchestrate communication between RbxSession and VfsSession 2018-05-12 15:27:20 -07:00
Lucien Greathouse
cb548719b2 Server, no serving! 2018-05-12 14:56:09 -07:00
Lucien Greathouse
83ea72776f I think this is the design now 2018-05-12 14:23:31 -07:00
Lucien Greathouse
664c7fc8e6 Canonicalize paths before letting them continue 2018-05-12 01:26:15 -07:00
Lucien Greathouse
b2f85cd665 Clean up file change tracking since I wrote it when I was sleepy 2018-05-12 01:13:18 -07:00
Lucien Greathouse
4000a40cad Update design graph a bit 2018-05-12 00:25:44 -07:00
Lucien Greathouse
64d38a24a0 Tinker with FileRoute 2018-05-09 00:11:22 -07:00
Lucien Greathouse
5a82879115 Tidy up and reorganize things, they're just about in shape 2018-05-09 00:01:44 -07:00