1
0
Fork 0
Commit Graph

4290 Commits

Author SHA1 Message Date
Alan Plum 926f02ace5
Use mime-types 2016-04-18 18:00:35 +02:00
Alan Plum 5a6fa4a253
Generator should support edge collections
Fixes #1718.
2016-04-18 18:00:35 +02:00
Alan Plum ca6bb83a84
More tests 2016-04-18 18:00:35 +02:00
Alan Plum ab0db4e414
Actually don't add 200 response by default 2016-04-18 18:00:35 +02:00
Alan Plum 72f65bd8e3
Response description -> reason 2016-04-18 18:00:34 +02:00
Alan Plum 5b4b3852ad
Better default 200 response 2016-04-18 18:00:34 +02:00
Alan Plum dcc2101d09
Yak shave 2016-04-18 18:00:34 +02:00
Alan Plum 22a8b5ec65
Add util.inline 2016-04-18 18:00:34 +02:00
Alan Plum b01a3da328
Fix swagger responses 2016-04-18 18:00:33 +02:00
Alan Plum 6bc2a10867
Fixup generator 2016-04-18 18:00:33 +02:00
Alan Plum a31bf33892
Basic swagger tests 2016-04-18 18:00:33 +02:00
Alan Plum a71fc92c6f
Add default body/response descriptions 2016-04-18 18:00:33 +02:00
Alan Plum 248e8e747e
Response descriptions are mandatory in Swagger 2016-04-18 18:00:32 +02:00
Alan Plum fddc35df67
mv shell-foxx-router-spec to shell tests 2016-04-18 18:00:32 +02:00
Alan Plum d7f514693b
Implement name reversal 2016-04-18 18:00:32 +02:00
Alan Plum bd4bc8eb96
SyntheticRequest: add baseUrl and makeAbsolute 2016-04-18 18:00:31 +02:00
Alan Plum 31526a8227
Clean up templates 2016-04-18 18:00:31 +02:00
Alan Plum b8d082941a
Fix legacy swagger 2016-04-18 18:00:31 +02:00
Alan Plum 4f2dc536ee
Tightening
Convert some lets to consts and eliminate the redundancy in Router.
2016-04-18 18:00:31 +02:00
Alan Plum 1f347b3145
Update license headers 2016-04-18 18:00:30 +02:00
Alan Plum 2ff1371e19
Port Foxx service generator to FOTF 2016-04-18 18:00:30 +02:00
Alan Plum d971780ba8
Make routing actually work 2016-04-18 18:00:30 +02:00
Alan Plum d2d62a97bc
Make FOTF swagger docs visible to Foxx Swagger 2016-04-18 18:00:30 +02:00
Alan Plum 8d2cc4041d
Implement request/response body handling 2016-04-18 18:00:29 +02:00
Alan Plum a5ffbcf736
Add stub tests for swagger 2016-04-18 18:00:29 +02:00
Alan Plum 24ab288d57
Move body handling into dispatch 2016-04-18 18:00:28 +02:00
Alan Plum d23f42fafc
No response schema if no response type 2016-04-18 18:00:28 +02:00
Alan Plum 3b3bfcbd95
If status 200 is set to no response, imply 204 2016-04-18 18:00:28 +02:00
Alan Plum 1197b6fa22
Use default schema for default response 2016-04-18 18:00:28 +02:00
Alan Plum 47d9ab07f4
Nevermind response headers for now 2016-04-18 18:00:27 +02:00
Alan Plum 21428c7f4b
Use joi-to-json-schema 2016-04-18 18:00:27 +02:00
Alan Plum bf253d07b3
Add operation.responses 2016-04-18 18:00:27 +02:00
Alan Plum a00ac0d96f
Swaggerify route params 2016-04-18 18:00:26 +02:00
Alan Plum d810a335ac
Better handle response/request body docs 2016-04-18 18:00:26 +02:00
Alan Plum 04f59fcdb4
shell-foxx-router-spec to mocha 2016-04-18 18:00:26 +02:00
Alan Plum ff0bf1a182
Add basic swagger generator stub 2016-04-18 18:00:26 +02:00
Alan Plum 91cfcb2fc9
Add SwaggerContext#_merge 2016-04-18 18:00:25 +02:00
Alan Plum 8ab3e4a161
Add tokenize.reverse 2016-04-18 18:00:25 +02:00
Alan Plum bfe66a4ad0
SwaggerContext#response per status code 2016-04-18 18:00:25 +02:00
Alan Plum 27c203bbb2
SwaggerContext should treat missing path as empty 2016-04-18 18:00:25 +02:00
Alan Plum 244345d178
SyntheticRequest#originalUrl should encode db 2016-04-18 18:00:25 +02:00
Alan Plum 314d19d20d
Extract router tree 2016-04-18 18:00:24 +02:00
Alan Plum 2633b0109b
Extract dispatch from router 2016-04-18 18:00:24 +02:00
Alan Plum 95dea0cd14
Yakshaving 2016-04-18 18:00:24 +02:00
Alan Plum 572952864c
Expose service context in request obj 2016-04-18 18:00:24 +02:00
Alan Plum 0156051c37
Basic implementation of SyntheticResponse 2016-04-18 18:00:23 +02:00
Alan Plum 9e3833eadd
Basic implementation of SyntheticRequest
Fixes #1191.
2016-04-18 18:00:23 +02:00
Alan Plum 5ba054210b
Fix router.resolve (req.method => req.requestType) 2016-04-18 18:00:23 +02:00
Alan Plum 34a1835532
Fix legacy mode applicationContext injection 2016-04-18 18:00:23 +02:00
Alan Plum aa4b41763e
Yakshaving
Naming things is hard.
2016-04-18 18:00:22 +02:00
Alan Plum 12e27cac00
Implement queryParam & body validation 2016-04-18 18:00:22 +02:00
Alan Plum 322c9c41b8
Lint shell-foxx-router-spec.js 2016-04-18 18:00:22 +02:00
Alan Plum 4b0fd593ce
Implement rudimentary route handling 2016-04-18 18:00:22 +02:00
Alan Plum 6637a0cd16
Make more route context attributes private 2016-04-18 18:00:21 +02:00
Alan Plum 8230d73406
More versatile route lookup 2016-04-18 18:00:21 +02:00
Alan Plum 6e6a9a3918
Add more tests & fix middleware resolution 2016-04-18 18:00:21 +02:00
Alan Plum 6ea15298bd
Partially implement routing for Foxx 2016-04-18 18:00:21 +02:00
Alan Plum e78e6476ab
Implement routing logic for router 2016-04-18 18:00:20 +02:00
Alan Plum 7bf1e5e502
Add router to Foxx services
Fixes #1189.
2016-04-18 18:00:20 +02:00
Alan Plum 8260da9d35
Implement basic router
Fixes #1164.
Fixes #1759.
2016-04-18 18:00:20 +02:00
Alan Plum 4495a2edc8
Implement session middleware 2016-04-18 18:00:20 +02:00
Alan Plum c934cbc9f2
Implement mounting legacy apps 2016-04-18 18:00:19 +02:00
Alan Plum bc0b5d40c4
Remove context._prefix 2016-04-18 18:00:19 +02:00
Alan Plum 5f91c5399c
Tidy up manifest props 2016-04-18 18:00:19 +02:00
Alan Plum 54fb1a73d8
foxx -> foxx/legacy 2016-04-18 18:00:19 +02:00
Alan Plum 0cfa0ed953
foxx.js -> foxx/index.js 2016-04-18 18:00:18 +02:00
Alan Plum 443ebe42f8
Enable applicationContext for legacy apps 2016-04-18 18:00:18 +02:00
Alan Plum 6a217bc9f7
Remove module.context.foxxFilename 2016-04-18 18:00:18 +02:00
Alan Plum 5161c63670
Remove magical Foxx comments 2016-04-18 18:00:18 +02:00
Alan Plum 54f27f51a2
Expose module.context.service 2016-04-18 18:00:18 +02:00
Alan Plum 4140c26d30
Use symbols for internal module props 2016-04-18 18:00:17 +02:00
Alan Plum c7688a72f8
module.requireCache -> module.require.cache 2016-04-18 18:00:17 +02:00
Alan Plum eacf570a39
applicationContext -> module.context 2016-04-18 18:00:17 +02:00
Jan Steemann e14fd29339 fixed cluster test 2016-04-18 17:04:03 +02:00
Jan Steemann a3ad9ba3a3 fixed issue #1805 2016-04-18 15:09:42 +02:00
jsteemann 30ec73e596 AQL bugfixes and tests, CHANGELOG updates 2016-04-17 20:57:13 +02:00
jsteemann 2294a4287c added tests 2016-04-17 11:31:45 +02:00
jsteemann 1ca9606bbc added tests 2016-04-17 11:21:07 +02:00
jsteemann 43f040b3c5 added test cases 2016-04-17 11:04:46 +02:00
Frank Celler e298ac9881 Merge branch 'devel' of github.com:arangodb/arangodb into FMH 2016-04-15 21:05:52 -07:00
Frank Celler cd91d3654e Merge remote-tracking branch 'origin' into FMH 2016-04-15 19:01:38 -07:00
jsteemann 18f54c2dde Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-04-15 17:21:35 +02:00
jsteemann ecd7de16cb added optimizer rule "inline-subqueries" 2016-04-15 17:21:22 +02:00
Jan Steemann 65e6aed49f jslint 2016-04-15 12:40:14 +02:00
Frank Celler 8254bd4bd6 WIP 2016-04-14 21:32:12 -07:00
Max Neunhoeffer e68a60f81f Remove a test that is no longer needed. 2016-04-15 00:39:55 +02:00
Max Neunhoeffer 429e59108b Improve situation with tests. 2016-04-15 00:13:37 +02:00
Jan Steemann 576fcab12b Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-04-13 16:29:26 +02:00
Jan Steemann a0fde1b7b2 allow array values in attribute name bind parameters 2016-04-13 16:29:09 +02:00
Michael Hackstein 1352e3d682 Fixed JSLINT 2016-04-13 15:57:49 +02:00
Michael Hackstein b043b103e0 Optimized IN in AQL pattern Matcher properly. Also added some tests for it 2016-04-13 14:49:21 +02:00
Frank Celler 3f9dd62d4c WIP 2016-04-13 12:30:18 +02:00
Jan Steemann 9163236f2b renamed optimizer rule "merge-traversal-filter" into "optimize-traversals" 2016-04-12 14:51:15 +02:00
Max Neunhoeffer c9031a648f Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2016-04-11 23:39:02 +02:00
Jan Steemann 947fb8d9ad make LIKE wildcards newline-aware 2016-04-11 14:02:12 +02:00
Frank Celler 3d2cc31306 WIP 2016-04-11 00:05:37 +02:00
Simran Brucherseifer 5905465c26 Add unit tests for TO_BOOL() and unary not with a whole document 2016-04-09 01:55:00 +02:00
Max Neunhoeffer 1d4abd16a6 Merge branch 'spdvpk' of ssh://github.com/ArangoDB/ArangoDB into spdvpk 2016-04-08 10:28:12 +02:00
Jan Steemann c2749b850f fixed tests 2016-04-07 17:48:51 +02:00
Jan Steemann 6df7221691 cleanup 2016-04-07 17:08:44 +02:00
Jan Steemann 32c0c91926 fixed tests 2016-04-07 17:01:45 +02:00
Max Neunhoeffer 130efabdca Export endpointToURL for others to require. 2016-04-07 16:19:26 +02:00
Frank Celler 58b9cf7e91 WIP 2016-04-07 15:40:11 +02:00
Michael Hackstein 1b967d9535 Started fixing AQL-failures-noncluster tests. Still two are failing. Return and Sort. 2016-04-07 14:37:18 +02:00
Jan Steemann b5b1fd705c removed obsolete tests 2016-04-06 17:48:11 +02:00
Jan Steemann a62d863238 Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-04-06 17:39:34 +02:00
Andreas Streichardt bdda4952ef Fix replication still requiring planner 2016-04-06 17:34:43 +02:00
Jan Steemann 9f8c24b1cd Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-04-06 15:43:27 +02:00
Jan Steemann f45b6eeb49 jslint 2016-04-06 09:50:39 +02:00
Jan Steemann 18204c57e8 fixed replication tests 2016-04-06 09:41:31 +02:00
Andreas Streichardt 3bdbded541 Fix linter errors 2016-04-05 18:45:39 +02:00
Andreas Streichardt c2cf4be4e0 Remove etcd 2016-04-05 18:41:37 +02:00
Jan Steemann d0f368445a replication fixes 2016-04-05 18:32:09 +02:00
Andreas Streichardt d2d7af67fe Kickstarter and planner are dead 2016-04-05 17:45:39 +02:00
Michael Hackstein dc58c5d769 Fixed Modify edges in cluster test. Expected old return codes 2016-04-04 18:41:28 +02:00
Frank Celler 6002ede1c4 Merge branch 'devel' of github.com:arangodb/arangodb into FMH 2016-04-03 21:46:30 +02:00
Frank Celler e83c1f09b4 WIP 2016-04-02 23:41:21 +02:00
Michael Hackstein 303dacbc30 Fixed skip in Cordinator case GEO and FULLTEXT index if no limit is set 2016-04-01 16:31:12 +02:00
Kaveh Vahedipour cfcffb7a41 jslint error in agency test correctedush 2016-03-31 21:32:12 +00:00
Michael Hackstein e32df21b2c Also reverted simple geo queries to old version to make them functional again 2016-03-31 17:34:21 +02:00
Michael Hackstein fb2b7b6b0f Fixed FullText index in cluster. Newest implementation ended up in an endless Loop. Reverted to original version. 2016-03-31 16:20:20 +02:00
Alan Plum 77fc097601 Use _scanFoxx(replace:true) 2016-03-31 15:49:55 +02:00
Alan Plum 5a98ed9600 Always run _scanFoxx in a transaction 2016-03-31 15:00:37 +02:00
Frank Celler 2f2b0b9741 Merge branch 'spdvpk' of github.com:arangodb/arangodb into spdvpk 2016-03-31 11:12:17 +02:00
Michael Hackstein 7eb4b2b730 Removed JS implementation of edges. The new CXX AQL implementation can server for CLuster as well. 2016-03-31 11:11:35 +02:00
Frank Celler 119c1bd44b Merge branch 'devel' of github.com:arangodb/arangodb into spdvpk 2016-03-31 09:31:32 +02:00
Alan Plum 7918975f77 Port fix for #1742 to 3.0 2016-03-30 16:14:18 +02:00
Alan Plum 963fa8f9ff Port #1742 test to 3.0 2016-03-30 16:14:17 +02:00
Jan Steemann ecf2deadb8 jslint 2016-03-24 19:35:37 +01:00
Jan Steemann 5166dc72d2 jslint 2016-03-24 19:32:31 +01:00
Jan Steemann d9c5877054 test fixes 2016-03-24 19:25:25 +01:00
Jan Steemann c7daf1531d Merge branch 'spdvpk' of https://github.com/arangodb/arangodb into spdvpk 2016-03-24 17:23:11 +01:00
Michael Hackstein 582be9e707 Fixed usage of replace in graph-blueprints 2016-03-24 17:10:01 +01:00
Jan Steemann 881761d2d5 Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-24 17:05:43 +01:00
Andreas Streichardt 9ba72b4412 Properly update current collection 2016-03-24 16:55:15 +01:00
Michael Hackstein 28a0fd89a8 Removed tests of removed functions BY_EXAMPLE_SKIPLIST / BY_EXAMPLE_HASH 2016-03-24 16:54:19 +01:00
Michael Hackstein 5b3f81b8d5 Fixed test that expected leftover shapes and markers. They can be removed now 2016-03-24 16:46:07 +01:00
Michael Hackstein 9af0a529fa Changed expectation for error message when storing RegExp and Function. Is BAD PARAMETER now, was SHAPER_FAILED. 2016-03-24 15:57:02 +01:00
Michael Hackstein db4b6d2a5b Merge branch 'spdvpk' of github.com:arangodb/arangodb into spdvpk 2016-03-24 15:48:50 +01:00
Michael Hackstein 5b5bf7cad8 Removed tests for byConditionSkiplist. Not supported any more 2016-03-24 15:48:18 +01:00
Michael Hackstein 9371e04a63 Removed tests for CAP constraints and FIRST. Which do not exist any more. 2016-03-24 15:43:59 +01:00
Jan Steemann b9b78aa0d7 fixed test 2016-03-24 15:41:10 +01:00
Andreas Streichardt 3f9f03bb38 Remove debug 2016-03-24 14:26:12 +01:00
Michael Hackstein 0d623b58bb Reverted ordering chance in Object sort function. 2016-03-24 13:18:55 +01:00
Michael Hackstein 6a59de8efc Fixed ordering of elements. Internal sort on in-place created documentes behaves a little bit different now 2016-03-24 12:47:48 +01:00
jsteemann b7c1a42f96 test fixes 2016-03-24 01:12:57 +01:00
jsteemann 72a86bccfd removed cap constraints 2016-03-23 23:48:37 +01:00
Jan Steemann 9ac39b7ad6 Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-23 16:36:30 +01:00
Michael Hackstein 2d45a6e5b2 Fixed statistics for Traversals. Also uses less lookups now 2016-03-23 16:04:53 +01:00
Michael Hackstein 42b866804f Fixed test that relied on a non deterministic ordering 2016-03-23 12:45:40 +01:00
Michael Hackstein 9bd35dcb63 Fixed tests for errors in AQL Edges function. It is more relaxed for input parameters. It does not THROW but simply returns an empty array instead 2016-03-23 12:17:59 +01:00
Michael Hackstein 46f4d627e6 Added some tests for Traversals in subqueries 2016-03-23 11:03:54 +01:00
Jan Steemann d763c102d6 fulltext fixes 2016-03-22 18:34:40 +01:00
Jan Steemann 45cc15fe45 fixes 2016-03-22 10:51:42 +01:00
Michael Hackstein 8dfaf023fc The test for EDGES now does not expect 'CollectionNotFound' if the start vertex collection does not exist. 2016-03-22 09:54:45 +01:00
Jan Steemann 31d9c1873a fixed test 2016-03-21 18:03:49 +01:00
Jan Steemann f0724447b6 fixed sparse index test 2016-03-21 17:08:42 +01:00
Jan Steemann b672ce0985 test fixes 2016-03-21 12:15:40 +01:00
Jan Steemann f17d17841f Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-21 09:28:35 +01:00
Frank Celler 33e2b7b844 Merge branch 'devel' of github.com:arangodb/arangodb into v8 2016-03-18 15:35:01 +01:00
jsteemann 5ded90ed1c fixed compare function for Custom attributes 2016-03-18 13:55:36 +01:00
jsteemann 82a1c58429 Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-18 11:03:54 +01:00
Frank Celler def5b35a84 jslint fixes 2016-03-18 11:02:42 +01:00
jsteemann fd49f750fb Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-18 10:46:03 +01:00
Frank Celler 6d19bdbbfe Merge branch 'devel' of github.com:arangodb/arangodb into v8 2016-03-18 09:50:20 +01:00
Andreas Streichardt 14ce41435b Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-03-17 22:40:00 +00:00
Andreas Streichardt 90862b6081 Proper secondary => Primary failover 2016-03-17 22:39:15 +00:00
jsteemann c175d03433 Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-17 23:14:53 +01:00
jsteemann ba9b318a7f don't issue two warnings 2016-03-17 23:13:50 +01:00
jsteemann 9209794f36 removed print 2016-03-17 23:08:00 +01:00
jsteemann 7b5b0de86d fixed test 2016-03-17 23:06:57 +01:00
Frank Celler f28f20883a cosmetics 2016-03-16 22:16:56 +01:00
jsteemann 333bda5df1 Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-16 14:51:08 +01:00
Frank Celler cd1b2b6fc3 moved script 2016-03-16 13:01:41 +01:00
Frank Celler d9f9b8b65d fixed server version 2016-03-16 13:01:18 +01:00
Jan Steemann 6d6d2e9e9c do not set useless bind parameters 2016-03-11 19:42:14 +01:00
Jan Steemann 273deddaee Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-11 19:11:58 +01:00
Andreas Streichardt b29c437b7f Add more error info 2016-03-11 18:22:12 +01:00
Jan Steemann 14a3d02ce7 simple query cleanup 2016-03-07 20:29:04 +01:00
Jan Steemann 4d4ee7e237 Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-07 16:25:15 +01:00
Jan Steemann ba637faea0 do not compare execution times 2016-03-07 11:33:20 +01:00
Jan Steemann e0e84b7ea1 Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk 2016-03-01 11:50:48 +01:00
Frank Celler 0d13d6609a renamed to _frontend 2016-03-01 11:25:07 +01:00
Jan Steemann ce31d754e4 fixed typo 2016-02-26 12:33:08 +01:00
Jan Steemann af367a3e13 fixed range optimizations 2016-02-24 17:43:17 +01:00
Jan Steemann bc6283fc91 added WITH collections declarative 2016-02-19 18:20:46 +01:00
Michael Hackstein 7388345f87 Fixed JSLINT 2016-02-16 15:18:40 +01:00
Michael Hackstein 32d0e48d61 Merge branch 'devel' of github.com:arangodb/arangodb into vpack 2016-02-16 13:56:08 +01:00
Alan Plum 14cba16385 Linting 2016-02-15 23:29:23 +01:00
Alan Plum 6593f3d358 Clean up stacktraces
Fixes #1564, #1565, #1744.
2016-02-15 22:56:29 +01:00
Max Neunhoeffer 0902edc257 Fix jslint error. 2016-02-15 20:50:12 +01:00
Max Neunhoeffer 9d3446afe5 Stop WAL collection before synchronization of shard. 2016-02-15 10:29:06 +01:00
Michael Hackstein a3cd1aa54e Merge branch 'devel' of github.com:arangodb/arangodb into vpack 2016-02-15 10:25:31 +01:00
Max Neunhoeffer 459a540867 Merge branch 'devel' into ClustUp2 2016-02-15 09:16:01 +01:00
Frank Celler 687f7fdd72 higher wait intervall 2016-02-14 15:34:03 +01:00
Max Neunhoeffer 4cbd99a54b Merge branch 'devel' into ClustUp2 2016-02-13 23:06:22 +01:00
Max Neunhoeffer 1065486a77 First version of getting shards in sync working. 2016-02-13 23:04:20 +01:00
Jan Steemann 797fff14c2 fixed issue #1722 2016-02-12 09:45:32 +01:00
Max Neunhoeffer fc3f9f2b99 Merge branch 'devel' into ClustUp2 2016-02-11 09:27:28 +01:00
Jan Steemann f59cda9151 jslint 2016-02-11 09:18:45 +01:00