1
0
Fork 0
Commit Graph

2068 Commits

Author SHA1 Message Date
Willi Goesgens fbbe97b9b0 Modify unit testing suites so they publish the results with 'CL' as prefix if you're running in cluster mode. 2015-05-07 17:45:27 +02:00
Alan Plum 321d9199d8 Saner generator templates. 2015-05-07 17:23:04 +02:00
Alan Plum e90eb767e8 Only add controller extensions if they are active. 2015-05-07 16:49:58 +02:00
Alan Plum d945c99305 Implemented auto-binding model lifecycle listeners. Fixes #1257. 2015-05-07 15:44:56 +02:00
Alan Plum 061ddf6339 Added docs for API documentation. 2015-05-07 15:27:37 +02:00
Alan Plum ed0f6e876d Allow overriding swagger JSON. 2015-05-07 15:27:15 +02:00
Alan Plum 00043c6213 Don't try to send folders. 2015-05-07 14:44:23 +02:00
Alan Plum a24b5d7ac5 Allow overriding default swagger.json generator. 2015-05-07 14:43:20 +02:00
Alan Plum cab3287e08 Allow beforeFn to override indexFile. 2015-05-07 14:28:58 +02:00
Alan Plum 12d9193a26 ApiDocumentation redirect should retain params. 2015-05-07 14:28:58 +02:00
Alan Plum ed154f7ef2 Allow beforeFn to override appPath in swagger endpoints. 2015-05-07 13:54:41 +02:00
Willi Goesgens a571f12634 Work on cluster shutdown:
- when running in valgrind be more gracefull
  - fix incidents when somebody else already picked exit the result
  - fix write access to the results array - run.pids is an object.
  - fix copying arangod in case of crash in cluster case
  - fix cluster shutdown structure analysis
2015-05-07 13:48:58 +02:00
Alan Plum 8bdd5762c1 Removed support for ':x|:y' in URL params (unused + undocumented feature). 2015-05-07 11:44:42 +02:00
Jan Steemann b8a8db8ad1 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-05-07 11:21:55 +02:00
Jan Steemann 57dc9139c1 use FOXX_BASE_URL 2015-05-07 11:21:49 +02:00
Alan Plum 4c0d5b8629 Merge pull request #1329 from pekeler/errorResponse
Adjusted documentation for errorResponse
2015-05-07 10:11:26 +02:00
Alan Plum f9126cd440 Update base_middleware.js 2015-05-07 02:45:52 +02:00
Alan Plum 45cfa12c91 Added Controller#apiDocumentation. 2015-05-07 01:30:14 +02:00
Alan Plum 0b410eb628 Store path (pattern) in RequestContext#path. 2015-05-07 01:30:14 +02:00
Alan Plum 1cd0d0aa10 Simplified BaseMiddleware#params. 2015-05-07 01:30:14 +02:00
Alan Plum de97cfa5fb Converted req.path into a method (no longer useless). 2015-05-07 01:30:14 +02:00
Alan Plum bd09144970 More absoluteUrl. 2015-05-07 01:30:14 +02:00
Michael Hackstein b70cce0353 Use cpp neighbors in AQL 2015-05-06 16:29:50 -07:00
Christian Pekeler 754e7f436c adding missing documentation for errorResponse 2015-05-06 15:13:09 -06:00
Alan Plum 144939dfe1 Added PATCH to generator. Fixes #1324. 2015-05-06 17:39:34 +02:00
Alan Plum 71c2e06649 Linting. 2015-05-06 17:33:05 +02:00
Alan Plum d2db1c9d3c Fixed #1323. 2015-05-06 17:28:37 +02:00
Alan Plum 24f7e2673c Added docs for summary and notes. Fixes #1040. 2015-05-06 17:26:33 +02:00
Alan Plum e6493d7210 Improved Foxx config handling. 2015-05-06 16:27:44 +02:00
Jan Steemann 0996d603c6 fulltext improvements 2015-05-06 14:21:32 +02:00
Willi Goesgens 23739df0aa Increase startup grace period if we're running in cluster mode. 2015-05-06 10:59:00 +02:00
Willi Goesgens 312972a4ec Modify examples so they clean up after their run. 2015-05-04 17:22:25 +02:00
Willi Goesgens c0905812a9 remove debug print 2015-04-29 17:44:56 +02:00
Alan Plum fa24c0d229 Implemented dependencies configuring. 2015-04-29 15:59:51 +02:00
Alan Plum 00f36b07a5 Expose deps on Aardvark API and add cfg and deps to listJson. 2015-04-29 15:57:58 +02:00
Alan Plum 5289e9911f Set default value for app deps. 2015-04-29 15:57:58 +02:00
Alan Plum 89216506b8 Don't try to output swagger docs for fake app routes. 2015-04-29 15:57:58 +02:00
Michael Hackstein 7758250f2b Fixed some leftovers of new parameter documentation in GRAPH_SHORTEST_PATH. Should now be consistent again. #1321 2015-04-28 19:10:52 +00:00
Jan Steemann 128b29c8d2 cxxified more functions 2015-04-28 09:29:09 +02:00
Willi Goesgens 57e361a74b Adust documentation snipets
- they now node when they expect to throw an exception, so all exceptions else thrown are real bugs
  - bugs some snippets fixed
  - some snippets now do a proper setup & teardown
2015-04-27 17:12:35 +02:00
Michael Hackstein 7f3a9fbcae Included the CPP Shortest path into AQL. Only under certain conditions 2015-04-26 22:17:23 -07:00
Willi Goesgens fa1b2fee60 Lintify. 2015-04-24 13:44:57 +02:00
Willi Goesgens 25c6745d13 Add switch to disable noisy config tests 2015-04-24 11:54:59 +02:00
Michael Hackstein 076cc24e3c Documentation update for graph traversal 2015-04-24 00:02:00 -07:00
Jan Steemann 40ed49ebfa fast path for MERGE() 2015-04-23 13:45:31 +02:00
Jan Steemann 224b33cc75 moved UNSET() and KEEP() to cxx implementation 2015-04-22 13:21:05 +02:00
Willi Goesgens e5be9353d0 Fix file copying for after crash. 2015-04-21 17:38:47 +02:00
Jan Steemann ad2e80d334 fixed graph examples 2015-04-20 17:29:24 +02:00
Jan Steemann 528ec17bcd Merge branch 'devel' of https://github.com/arangodb/arangodb into hash-collect
Conflicts:
	arangod/FulltextIndex/fulltext-handles.cpp
2015-04-16 19:06:21 +02:00
Jan Steemann db4bbf6931 removed superfluous parameters 2015-04-16 16:29:56 +02:00
Alan Plum abb3d3bda2 More idiomatic Foxx app template. 2015-04-15 18:18:24 +02:00
Alan Plum 1be7717f0a Added chai support. 2015-04-15 13:04:49 +02:00
Willi Goesgens 2982994444 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-04-15 10:22:24 +02:00
Willi Goesgens feda1119b4 We can simplify extra arguments now that we work with objects for argv all over the place. 2015-04-15 10:21:32 +02:00
Jan Steemann 322b3f9c6d issue #1231: bug xor feature in AQL: LENGTH(null) == 4
This changes the behavior of the AQL `LENGTH` function as follows:

- if the single argument to `LENGTH()` is `null`, then the result will now be `0`. In previous
  versions of ArangoDB, the result of `LENGTH(null)` was `4`.

- if the single argument to `LENGTH()` is `true`, then the result will now be `1`. In previous
  versions of ArangoDB, the result of `LENGTH(true)` was `4`.

- if the single argument to `LENGTH()` is `false`, then the result will now be `0`. In previous
  versions of ArangoDB, the result of `LENGTH(false)` was `5`.

The results of `LENGTH()` with string, numeric, array object argument values do not change.
2015-04-14 19:03:29 +02:00
Alan Plum 7c4a3daeea Implemented aardvark test GUI. 2015-04-14 18:44:37 +02:00
Alan Plum 281fbf1fcb Saner manifest handling.
Controllers and tests are coerced into an object/array on parse instead of on demand.
Removed unnecessary function.
2015-04-14 18:31:12 +02:00
Alan Plum 4e5d097f1a Linting. 2015-04-14 18:31:12 +02:00
Alan Plum decbc6dcea Fully implemented tests API. 2015-04-14 13:39:06 +02:00
Alan Plum 044669cdac Hardcore stubbing action. 2015-04-14 13:39:06 +02:00
Willi Goesgens 25c99c5365 - fix off by one in logfile parsing
- if we already have an exit status, the server is already dead.
2015-04-13 17:02:11 +02:00
Max Neunhoeffer 8a999c8cc1 Merge branch 'devel' of ssh://github.com/arangodb/arangodb into devel 2015-04-13 13:04:50 +02:00
Willi Goesgens 19eb79dd4d On windows also copy the pdb files on core exit 2015-04-13 12:17:08 +02:00
Max Neunhoeffer 0179922eb0 Create _configuration collection only at startup and no longer on the fly.
This gets rid of a race condition on coordinators.
2015-04-13 11:58:21 +02:00
Alan Plum 448e496df6 Don't load the foxx too early. 2015-04-10 11:58:15 +02:00
Alan Plum e0b21f6823 Revert "Create default queue in setup, not on module load."
This reverts commit 6c391827c707216a10183ea3b40ac58f7030b428.
2015-04-10 11:50:27 +02:00
Alan Plum a94b333a26 Create default queue in setup, not on module load. 2015-04-10 10:57:17 +02:00
Alan Plum f108ecd86b Linting. 2015-04-10 10:19:57 +02:00
Alan Plum 63f65f7907 Added rudimentary support for Foxx dependencies.
The manifest parsing / configuration aspect of dependencies is missing,
but dependencies defined in the _apps collection (via options.dependencies)
will be resolved correctly.

Also, setup scripts for non-system apps are delayed
until system apps setup scripts have been executed.
Ideally, `requireApp` should ensure the setup scripts for the app-to-require
have already been executed (to support using dependencies in setup scripts).

We'll also probably want to run "startup" scripts instead of "setup" scripts
and reserve setup scripts for upgrades and installs.

We also still need a way to run Foxx app code in each thread on startup
in addition to the (necessarily) one-thread-only "startup" script.
2015-04-09 20:05:18 +02:00
Alan Plum 96bc36499f No need to emit. 2015-04-09 17:30:41 +02:00
Alan Plum 69e63c2c64 Strict mode all the things. 2015-04-09 00:22:05 +02:00
Alan Plum 4f51343100 Fixed Foxx installer errors. 2015-04-08 14:19:38 +02:00
Alan Plum f8cfcbdbd6 Use ArangoError in module loader. 2015-04-08 13:16:12 +02:00
Alan Plum ecbc6f581f Merge pull request #1287 from arangodb/vulpine-grace
Foxx improvements (fixes #1284, #1257)
2015-04-08 03:23:55 +02:00
Alan Plum 4dcdb1cde9 Fixed relative requires in apps. Also fixes #887. 2015-04-08 01:49:27 +02:00
Alan Plum eb255f73ed Use ArangoError in Module#run. 2015-04-07 23:33:23 +02:00
Alan Plum 5bc058d247 Removed unused code. 2015-04-07 20:06:43 +02:00
Alan Plum 8133bd4c6a Linting 2015-04-07 20:04:59 +02:00
Alan Plum f47c4a4572 Allow running tests. 2015-04-07 19:58:24 +02:00
Alan Plum 3b48230976 More stubs. 2015-04-07 19:55:01 +02:00
Alan Plum df23003452 Extracted Module#run. 2015-04-07 17:34:32 +02:00
Alan Plum b707f690b2 Removed unused method ArangoApp#getAppContext. 2015-04-07 13:12:40 +02:00
Frank Celler de1a9fe833 added reload for DB modules 2015-04-05 14:02:34 +02:00
Alan Plum c23390360b Unbreak the build. 2015-04-02 01:49:00 +02:00
Alan Plum 8ffd5ddd1c Allow running arbitrary Foxx scripts. 2015-04-02 00:16:23 +02:00
Michael Hackstein 3c79b54330 Merge branch 'devel' of github.com:arangodb/arangodb into gos 2015-04-01 13:38:29 +02:00
Michael Hackstein e2fd4cdd65 Further improvements of graph queries. All queries should now be noticably faster. 2015-04-01 13:25:25 +02:00
Jan Steemann 80a99ab23e refactored cursor API 2015-03-30 14:58:51 +02:00
Michael Hackstein a4e4abe3cd Improved several graph AQL functions by moving the logic into the visitor, reducing the amount of necessary loops thereby 2015-03-30 11:11:05 +02:00
Willi Goesgens 2b04526729 Relax timeout for cluster startup. 2015-03-26 13:45:01 +01:00
Willi Goesgens ca95acc246 Switch commandline argument handling to the new object structure. 2015-03-26 13:44:29 +01:00
Alan Plum 8b77637dd7 Allow non-fq file paths. 2015-03-26 12:22:13 +01:00
Alan Plum d6d6914b9e Added Foxx.Repository#exists. 2015-03-25 17:19:44 +01:00
Alan Plum 85254434ee More linting. 2015-03-25 13:01:30 +01:00
Alan Plum c7f9679085 Gotcha: underscore's template method changed in new version. 2015-03-25 11:32:10 +01:00
Alan Plum 8266fb8252 Linting. 2015-03-25 10:35:18 +01:00
Alan Plum eb30d2aad0 Less magic. 2015-03-25 10:35:18 +01:00
Alan Plum 03ccf67269 Implemented Repository lifecycle events. See #1257. 2015-03-25 10:35:18 +01:00
Alan Plum 02c9beab0c Support chaining in Foxx.Model#set. 2015-03-25 10:35:18 +01:00
Alan Plum 0620369a05 Saner schema handling for Foxx models. Fixes #1284. 2015-03-25 10:35:18 +01:00
Alan Plum 33086816a7 Linting. 2015-03-25 10:34:36 +01:00
Alan Plum d1fea9c05e Removed unused import. 2015-03-24 23:36:28 +01:00
Alan Plum ff1a9b26e3 Made ShapedJson#_PRINT non-enumerable. Fixes #1289 root cause. 2015-03-24 23:32:30 +01:00
Alan Plum 9afb093e84 Replace bundled backbone extend with npm dep. 2015-03-24 22:58:45 +01:00
Alan Plum e8834a350a Fixed #1289. 2015-03-24 21:06:28 +01:00
Alan Plum 5e9beaeb5b Linting. 2015-03-24 21:05:11 +01:00
Alan Plum 4daf2e6401 Removed deprecated toJSONSchema static method. 2015-03-24 17:42:16 +01:00
Alan Plum d1a37cdc17 Fixed failing tests. 2015-03-24 13:33:42 +01:00
Alan Plum e7a7ae2abd Prepped deprecation of assets in 2.7/2.8. 2015-03-24 13:33:01 +01:00
Alan Plum 271d3946ec Moved manifest setup/teardown into scripts property. 2015-03-24 13:18:57 +01:00
Alan Plum 51fe2655c9 More vigilant manifest validation. 2015-03-24 13:18:57 +01:00
Alan Plum 1953f043c8 Linting. 2015-03-24 13:18:57 +01:00
Alan Plum 3f492b35b2 Allow Foxx controllers to be a single file. 2015-03-24 13:18:57 +01:00
Alan Plum 079b8c554b Validate manifest using joi. 2015-03-24 13:15:53 +01:00
Alan Plum ae02f7c4df Re-use manifest schema. 2015-03-24 13:15:53 +01:00
Alan Plum 598457f6a3 More cleanup. 2015-03-24 13:15:53 +01:00
Alan Plum bc5dd49e30 Readability. 2015-03-24 13:15:53 +01:00
Alan Plum c397b0a54d Cleanup. 2015-03-24 13:15:53 +01:00
Alan Plum 34eb3884ee for-in -> forEach. 2015-03-24 13:15:52 +01:00
Alan Plum 840405b670 Allow Foxx apps to export a single file. 2015-03-24 13:15:52 +01:00
Alan Plum eb8f5395df Allow Foxx exports to use as expected. 2015-03-24 13:15:52 +01:00
Alan Plum 99ca1cb41f Allow manifest validation types to be arrays. 2015-03-24 13:15:52 +01:00
Willi Goesgens 3b773c0c49 Fix cluster arangob tests 2015-03-24 10:48:28 +01:00
Willi Goesgens ac141a4e14 options.test is always there - need to check whether its defined. 2015-03-23 18:45:46 +01:00
Willi Goesgens 0988508e33 Add ability to pass through args to arangob 2015-03-23 14:25:37 +01:00
Willi Goesgens 0d593de325 Add filter of testcases based on the --test parameter. 2015-03-23 10:44:42 +01:00
Jan Steemann d63f47e840 added possibility to kill JS traversals 2015-03-20 23:05:41 +01:00
Jan Steemann d512b5fa35 issue #1282: Geo WITHIN_RECTANGLE for nested lat/lng 2015-03-20 19:27:30 +01:00
Jan Steemann 6d37c96099 fixed spelling 2015-03-17 18:23:42 +01:00
Jan Steemann e214a4d472 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-03-16 10:38:20 +01:00
Jan Steemann a336ac2ff5 make Foxx queues database-specific 2015-03-16 10:38:10 +01:00
Michael Hackstein 4543668a07 Fixed installing of Apps containing an internal app folder 2015-03-16 10:27:32 +01:00
Jan Steemann 940968bd96 when specifying the same dispatcher IP address multiple times, try to create non-overlapping port ranges 2015-03-13 18:26:50 +01:00
Michael Hackstein 7f7ae079f7 Fixxed an issue with the generated swagger documentation. Where it was not possible to have two body parameters with the same name but different content. Only one of them was used in the Documentation the other one was overwritten. Fixes and Closes #1271. 2015-03-13 11:26:02 +01:00
Michael Hackstein 63ef6ba1aa Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-03-12 17:48:01 +01:00
Michael Hackstein c3b350054b Fixed configuration of Foxx apps. It was not fully working in foxx manager 2015-03-12 17:47:56 +01:00
Michael Hackstein 2f5818f5c3 The old configuration of an app is now maintained while issuing upgrade. It is thrown away while issuing replace 2015-03-12 17:26:39 +01:00
Jan Steemann 29611a511f issue #1241: added configure option `allowNull` for visitor 2015-03-12 16:28:52 +01:00
Jan Steemann f035ea1c3b kill AQL queries
Conflicts:
	arangod/Aql/ExecutionBlock.cpp
2015-03-12 15:00:14 +01:00
Jan Steemann e67c82c8a4 added JavaScript APIs for query tracking 2015-03-12 13:02:14 +01:00
Michael Hackstein 5be310fc21 It is now possible to install Apps that are invalid if they are not configured correctly. If they get broken by configuration they are still routed and will display an errorpage. They also display an errorpage until configured. 2015-03-11 17:49:42 +01:00
Willi Goesgens 019a2923fa Argparse:
- implement correct toArgv conversion for extraargs and valgrindargs.
2015-03-11 15:05:06 +01:00
Willi Goesgens e092e9d8fb Add option to skip loganalysis; if run in trace mode, the logs can become huge. 2015-03-11 14:11:49 +01:00
Jan Steemann 37bb6d6732 issue #1241: fixed passing `data` attribute into GRAPH_NEIGHBORS() function 2015-03-11 10:22:27 +01:00
Michael Hackstein a3950cf8ba Improved testing js in combination with Jasmine 2015-03-10 15:03:50 +01:00
Michael Hackstein bb9d8d18a1 Fixed broken App path in web interface 2015-03-10 11:32:16 +01:00
Michael Hackstein d4848d3a42 Made foxx ready for clustering 2015-03-09 19:17:50 +01:00
Michael Hackstein 6adbab0bf6 Changed internal app validation path to be absolute and not relative to the user defined js app path 2015-03-09 14:46:00 +01:00
Michael Hackstein 391065c210 Further bughunting for foxx distribution in cluster case 2015-03-09 14:38:00 +01:00
Michael Hackstein 167f78cac1 The app folder resync will now not write anything to any collection if the calling command was distributed via the cluster 2015-03-09 14:13:02 +01:00
Michael Hackstein 8b544c3aea The coordinators now do only fan out installation process once 2015-03-09 13:18:17 +01:00
Michael Hackstein fc1a868fad Further bughunting for Foxx in cluster 2015-03-09 12:49:29 +01:00
Michael Hackstein 7f072b1adb Fixed JSHint warning for ES6 Object short notation. Not supported too good by jshint right now 2015-03-09 12:07:59 +01:00
Michael Hackstein 65005ecf7e Fixed Parse errorr for cluster implementation of Foxx 2015-03-09 09:56:45 +01:00
Frank Celler 98a28ff805 fixed endpoints 2015-03-06 16:42:00 +01:00
Michael Hackstein 75ace2b354 First attempt to install Foxx apps on a cluster 2015-03-06 15:36:25 +01:00
Michael Hackstein 9e99ce2f90 Upgrading and replacing Apps using FoxxManager with broken Apps will now maintain the original App instead of deleting everything 2015-03-06 13:16:50 +01:00
Willi Goesgens 2b9a6c681d fix running of jsunity tests in single_server 2015-03-06 10:43:05 +01:00
Willi Goesgens f78cc512fc Fix generation of app path - once more so it doesn't break the dump test. 2015-03-05 15:25:06 +01:00
Willi Goesgens 9e7c429c0e - make app folder a sub folder of the installation, so we don't get races.
- run the procdump window along with the tested arangod so we can analyse crashes.
2015-03-05 13:45:51 +01:00
Alan Plum f15e710d51 Fixxed Array#each -> Array#every. 2015-03-04 15:45:17 +01:00
Willi Goesgens 96e45465a8 Add path to errormessage. 2015-03-04 14:40:35 +01:00
Willi Goesgens 26d71b0f75 Fix Error message - filename is enough here. 2015-03-04 14:38:56 +01:00
Willi Goesgens d2afb6bc11 remove debug output 2015-03-03 11:02:05 +01:00
Willi Goesgens 677b35fb05 Fix typo. 2015-03-03 10:29:38 +01:00
Willi Goesgens f152d5c133 Handle jasmine the way that it only produces success/fail 2015-03-03 09:23:38 +01:00
Willi Goesgens 24451f3709 Testsuite:
- add possibility to skip ruby https tests
  - try to send test results from arangosh to server via a temporary file; fallback to rc.
2015-03-02 19:09:28 +01:00
Willi Goesgens 5e3a96d0d4 relax cluster timeouts for valgrind too. 2015-02-26 11:21:21 +01:00
Willi Goesgens 2619529f63 Relax cluster timeout when compiled with -DCOVERAGE 2015-02-26 11:01:53 +01:00
Michael Hackstein 9dc27fa7db Fixed test to install Apps from Store. sessionapp requires oauth2 to be installed at a special location 2015-02-25 10:26:53 +01:00
Michael Hackstein 8fb5c548b6 Added controller extensions for foxx apps. Allows to define additional functions on request context 2015-02-24 17:36:31 +01:00
Michael Hackstein c3df4f8ec3 Massively improved foxx install stack traces. They now contain more information about your app 2015-02-24 17:36:30 +01:00
Frank Celler 4f8ea3a208 Merge remote-tracking branch 'origin/2.5' into devel
Conflicts:
	CHANGELOG
	arangod/RestServer/arangod.cpp
	js/apps/system/_admin/aardvark/APP/package.json
2015-02-24 16:10:11 +01:00
Jan Steemann 6ce1f2892e install fix for Foxx apps 2015-02-24 13:51:41 +01:00
Willi Goesgens 3baf9b8270 Use central facility to remove temporary file. 2015-02-24 12:53:56 +01:00
Willi Goesgens b68924a979 Use central facility to remove temporary file. 2015-02-24 11:49:23 +01:00
Michael Hackstein 055138c363 Fixed another stupid windows not able to use proper slashes in file path bug. 2015-02-24 09:26:58 +01:00
Michael Hackstein 8910dae75f Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-02-24 09:26:38 +01:00
Michael Hackstein 9c22014361 Fixed another stupid windows not able to use proper slashes in file path bug. 2015-02-24 09:26:32 +01:00
Michael Hackstein f324f2f4cd Filtered jasmine internal error messages from test output 2015-02-23 18:17:29 +01:00
Michael Hackstein 3b446889de Filtered jasmine internal error messages from test output 2015-02-23 18:15:06 +01:00
Michael Hackstein eccaada507 added a function to synchronize the app collection with the apps folder. It is automatically invoced on arango startup 2015-02-23 16:41:48 +01:00
Michael Hackstein d47dc091ba Invalidated exports cache properly. Fixed a bug with session app 2015-02-23 15:40:07 +01:00
Michael Hackstein 89a11587b3 Fixed regex to identify Windows absolute and relative pathes also 2015-02-23 15:08:06 +01:00
Michael Hackstein 8db83ce903 Fixed regex to identify Windows absolute and relative pathes also 2015-02-23 15:07:03 +01:00
Jan Steemann 2ac736b36e added visitor test
Conflicts:
	js/server/tests/aql-graph-visitors.js
2015-02-20 15:48:18 +01:00
Jan Steemann e3a4ee8a7b strip illegal characters from collection names 2015-02-20 15:46:27 +01:00
Michael Hackstein ca35d0c610 The foxx manager now reinstalls all system apps on startup 2015-02-19 18:39:01 +01:00
Michael Hackstein 571b146fe3 Fixed a caching problem in the foxx manager 2015-02-19 14:53:24 +01:00
Michael Hackstein daa9ef0e60 Fixed options parameter for foxx manager uninstall 2015-02-19 11:29:57 +01:00
Jan Steemann 83ea75fa8f removed unused config options 2015-02-18 16:40:15 +01:00
Michael Hackstein 79d587a812 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-02-18 15:38:51 +01:00
Michael Hackstein bac394d76c Removing the folder in tests is now try and catched to avoid failures 2015-02-18 15:38:30 +01:00
Jan Steemann f29591135a adjusted geo index API 2015-02-18 14:59:46 +01:00
Michael Hackstein 8c4587d4ef Tests will now create their own app path which will be deleted after each run 2015-02-18 14:05:50 +01:00
Michael Hackstein d710047ddb Fixed a bug in foxx manager that refilled the cache but did not make use of it 2015-02-18 14:05:30 +01:00
Michael Hackstein 21bc33a68a Fix for upgrade procedure with new foxx apps. 2015-02-18 13:09:48 +01:00
Michael Hackstein 494de7a762 Installing of foxx-apps now also tests valid app exports 2015-02-18 11:38:46 +01:00
Michael Hackstein b52597ffc5 Fixed a bug where applicationContext got lost while using require 2015-02-18 09:50:27 +01:00
Michael Hackstein a11d06a260 Seperated routing and exporting of Apps. Exporting can now be triggered cascadingly. Circular references are NOT yet handled 2015-02-17 18:09:44 +01:00
Michael Hackstein b530036655 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-02-17 17:25:10 +01:00
Michael Hackstein 3c96aa8c6a Applied default configuration to foxx apps. Fixed RegEx for allowed routes. Started to fix exports. 2015-02-17 17:25:04 +01:00
Willi Goesgens c306cda185 Fix variable names for server results 2015-02-17 13:37:45 +01:00
Frank Celler b075f77152 added expection message in verbose case 2015-02-17 12:51:55 +01:00
Michael Hackstein b2be7a828f Default handler for errors in foxx routes now behaves differently in production and development mode 2015-02-17 12:46:35 +01:00
Michael Hackstein b4268eaea7 Added a check for repositories to take only ArangoDB Collections 2015-02-17 10:45:00 +01:00
Michael Hackstein e6919ac59b Handmerged pull request, as some changes triggered conflicts. #1239 2015-02-17 10:35:29 +01:00
Michael Hackstein 4bcadadde2 Added the option to not execute the teardown script. 2015-02-16 18:06:42 +01:00
Michael Hackstein c6e9d98251 Added a force uninstall for foxx apps, to make sure they are removed from disk even if sth is unclear with mounting. Also created an error for foxx not found on file system has been added 2015-02-16 17:14:36 +01:00
Michael Hackstein 0c78629199 Merge branch 'foxx-pathes' of github.com:arangodb/arangodb into devel 2015-02-16 14:17:52 +01:00
Michael Hackstein ab5fbb66e0 Fixed server side foxx tests. They had to be adapted to new routing info computation 2015-02-16 14:13:10 +01:00
Michael Hackstein 808d658ff8 JSLint fixes 2015-02-16 14:12:34 +01:00
Michael Hackstein 9d5ae45b10 Improved errors thrown when trying to install malformed applications 2015-02-13 22:11:54 +01:00
Jan Steemann db2cd7acc9 added `filtered` attribute to AQL execution statistics 2015-02-13 21:37:49 +01:00
Jan Steemann 94a362c3c7 custom visitors 2015-02-13 11:32:13 +01:00
Michael Hackstein 5b3fae42aa Merge branch 'devel' of github.com:arangodb/arangodb into foxx-pathes
Conflicts:
	js/apps/system/_admin/aardvark/APP/frontend/js/bootstrap/errors.js
	js/common/bootstrap/errors.js
	lib/Basics/voc-errors.cpp
	lib/Basics/voc-errors.h
2015-02-13 10:20:36 +01:00
Michael Hackstein 9346a2513b The Foxx Manager app-cache is now aware of databases 2015-02-12 11:03:14 +01:00
Willi Goesgens 6da7073127 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-02-12 10:49:57 +01:00
Willi Goesgens 0a2b3177d7 Make the config tests a little more verbose. 2015-02-12 10:49:10 +01:00
Jan Steemann ec2b866200 Merge branch 'devel' of https://github.com/arangodb/arangodb into sparse-indexes
Conflicts:
	js/apps/system/aardvark/frontend/js/templates/documentsView.ejs
2015-02-11 17:53:23 +01:00
Michael Hackstein a7bdecc12e Reimplemented request context of foxx. It will now generate one larger function instead of a list of callbacks. Now also the ordering of elements has less effect 2015-02-11 13:26:31 +01:00
Jan Steemann 442b716d75 added custom visitor functionality for GRAPH_NEIGHBORS, too 2015-02-11 12:56:35 +01:00
Jan Steemann 6f12e69bae Merge branch 'devel' of https://github.com/arangodb/arangodb into sparse-indexes 2015-02-11 09:51:16 +01:00
Jan Steemann f7210e3604 sparse index tests 2015-02-11 00:25:30 +01:00
Frank Celler 3e35e94a83 added hidden option --fronend-version-check 2015-02-10 21:24:24 +01:00
Jan Steemann c87d984481 jslint 2015-02-10 11:35:03 +01:00
Jan Steemann b10b2bb9b0 Merge branch 'devel' of https://github.com/arangodb/arangodb into sparse-indexes 2015-02-10 10:36:45 +01:00
Michael Hackstein 4d32092de8 properly clone documents that are included in the foxx manager cache. Otherwise databases are not droppable 2015-02-10 10:30:40 +01:00
Michael Hackstein 23f14ca4b8 _shallowCopy does not clear references to internal objects causing databases to not be dropped properly 2015-02-10 10:29:56 +01:00
Jan Steemann 82c9d8cadd jslint, unglobalized functions 2015-02-10 10:04:56 +01:00
Jan Steemann b377a36577 Merge branch 'devel' of https://github.com/arangodb/arangodb into sparse-indexes 2015-02-10 09:47:06 +01:00
Willi Goesgens b6556576d3 Handle commandline parsing in a nicer way. 2015-02-10 00:19:55 +01:00
Jan Steemann aa8741d5f1 unique constraints 2015-02-09 20:48:02 +01:00
Jan Steemann a0309c44e2 Merge branch 'devel' of https://github.com/arangodb/arangodb into sparse-indexes
Conflicts:
	.travis.yml
2015-02-09 20:32:18 +01:00
Jan Steemann 82c7522d4e test fixes 2015-02-09 20:08:06 +01:00
Willi Goesgens 9c244e0348 Lintify. 2015-02-09 19:11:00 +01:00
Willi Goesgens edda36b484 match new etcd
- use 127.0.0.1 instead of localhost
  - properly pass errors up if we fail to launch a cluster component
  - Planner: throw proper error objects.
  - testing: properly handle cluster start abort situations.
  - if the agent doesn't come up in time, kill it for a proper abort.
2015-02-09 17:34:16 +01:00
Jan Steemann efd9d0ed82 updated index API methods 2015-02-08 14:13:03 +01:00
Jan Steemann 003d7e9112 sparse indexes, initial commit, untested 2015-02-07 03:07:41 +01:00
Michael Hackstein aad7e46f10 Merge branch 'devel' of github.com:arangodb/arangodb into foxx-pathes
Conflicts:
	Documentation/Books/Users/SUMMARY.md
	js/actions/api-system.js
	js/common/bootstrap/modules.js
	js/server/modules/org/arangodb/foxx/manager.js
	js/server/tests/shell-routing.js
2015-02-06 17:22:01 +01:00
Michael Hackstein 0481f6f331 Fixed generator templates. 2015-02-06 16:55:38 +01:00
Michael Hackstein 576d812ac5 Merge branch 'foxx-pathes' of github.com:arangodb/arangodb into foxx-pathes 2015-02-06 15:21:06 +01:00
Michael Hackstein 46a631d124 Fixed a bug where the documentation of apps with multiple controllers has not been created correctly. #1235 2015-02-06 15:20:52 +01:00
Michael Hackstein b759c50954 Fixed a bug where the documentation of apps with multiple controllers has not been created correctly. #1235 2015-02-06 15:16:43 +01:00
Michael Hackstein cb122cddf1 Added list development to clientside foxx manager. Fixed a wrong error description 2015-02-05 21:50:47 +01:00
Michael Hackstein 10ece1f881 Included development, production, configure and configuration in the client implementation of FoxxManager. 2015-02-04 15:55:30 +01:00
Michael Hackstein aa72dacefd Improved upgrade procedure, it now runs smoothly, at least once 2015-02-03 15:44:29 +01:00
Willi Goesgens 3404032207 Add timestamp to messages, so we can better estimate errors from logfiles to tests executed. 2015-02-03 15:32:03 +01:00
Michael Hackstein 1f2f33cf17 More informative output if tempfiles cannot be removed during app installation processes 2015-02-03 14:16:30 +01:00
Alan Plum f9744eb761 Don't re-invent the wheel. 2015-02-03 11:56:37 +01:00
Alan Plum a36c96060a Fixed stack parsing. 2015-02-03 11:34:26 +01:00
Willi Goesgens 43e61168fa Fix checking of cluster health in dump tests 2015-02-02 19:02:52 +01:00
Willi Goesgens f102ce8464 If we receive SIGABRT we want to keep the binary for core dump analysis too. 2015-02-02 18:41:34 +01:00
Willi Goesgens e1993d0d3e Add hostname to URL info string 2015-02-02 18:11:22 +01:00
Willi Goesgens be9b02a0ad Add instance names to several log messages. 2015-02-02 18:10:51 +01:00
Michael Hackstein 9df4fc8121 Removed mount validation for switching from devel to production. This dissallowed to put system apps in development mode 2015-02-02 16:56:59 +01:00
Michael Hackstein cf5e3db098 Fixed base middleware routing match. It now ignores a trailing slash 2015-02-02 16:55:58 +01:00
Willi Goesgens 0eecdc0973 More complete error messages on cluster com failures. 2015-02-02 16:06:46 +01:00
Willi Goesgens 6514bc0215 Add the logfile name to the output so we can know which cluster node gave us the messages. 2015-02-02 15:24:54 +01:00
Michael Hackstein 34458bad92 Added a check to validate the foxx mount point 2015-02-02 13:36:12 +01:00
Willi Goesgens 5339be7b3f Use a loop instead of cut'n'paste the source 3 times 2015-02-02 13:19:04 +01:00
Willi Goesgens 1c0c259d03 Run logfile analysis in cluster case too. 2015-02-01 12:38:04 +01:00
Max Neunhoeffer 6bda5c6e00 Only collect important log file lines in non-cluster case. 2015-01-30 17:18:46 +01:00
Michael Hackstein 7d30e543fb App not found is now an error object and keeps the stack trace if triggered 2015-01-30 17:13:37 +01:00
Willi Goesgens bd6875e554 Fix brace closing 2015-01-30 10:53:14 +01:00
Willi Goesgens 9d04d4be44 Check logfiles for important messages 2015-01-30 09:49:43 +01:00
Jan Steemann 07733c672a added yesternight's changes 2015-01-30 08:47:43 +01:00
Willi Goesgens a738191d41 Don't loop endless if the monitored server crashed. 2015-01-29 19:05:57 +01:00
Frank Celler 05b8115abf Merge pull request #1227 from triAGENS/foxxy-console
Foxx console
2015-01-29 17:16:05 +01:00
Jan Steemann 93131b6bf7 less copying 2015-01-29 14:21:02 +01:00
Michael Hackstein e742ae607a Applied some fixes to foxxManager to make app uninstable. The WebInterface is now able to uninstall an App properly. Added a test for it. 2015-01-29 14:02:31 +01:00
Jan Steemann 699b7e76f6 fun with custom visitors, cont. 2015-01-29 01:57:03 +01:00
Alan Plum 0859b83558 Fixed unset mount point. 2015-01-28 18:50:42 +01:00
Alan Plum 48abd07dc8 Tests for the testgod! 2015-01-28 15:32:19 +01:00
Michael Hackstein 54fd833041 Started moving aardvark to new foxx-manager functionality. Confirmed: listing all apps works. 2015-01-28 14:39:08 +01:00
Willi Goesgens b859e4a54d Relax timeout of tests if running with valgrind. 2015-01-28 14:18:49 +01:00
Max Neunhoeffer e24278828c Changes to cluster startup for mesos cooperation.
This simplifies the cluster startup by introducing a further agency
lookup step using "local info" to find the "id". This allows an external
discovery process (see scripts/discover.js as an example) to configure
a new server in the cluster dynamically when it starts up.

New GNUmakefile targets
  pack-tar-config
  pack-tar
2015-01-28 12:58:24 +01:00
Jan Steemann fa5f340107 added tests for estimations 2015-01-28 11:20:01 +01:00
Jan Steemann b03a7a4c8f fun with custom visitors 2015-01-28 00:45:21 +01:00
Alan Plum 4f3adeb879 Documentation! 2015-01-27 20:00:00 +01:00
Alan Plum 6a4625e1e0 Added Foxx log manager. 2015-01-27 20:00:00 +01:00
Alan Plum 755b1567d3 Rewrote all the logging. 2015-01-27 20:00:00 +01:00
Alan Plum 1ec82e022a Added foxx/logging module. 2015-01-27 19:59:59 +01:00
Willi Goesgens 19d8221e1d Portably handle path separators. 2015-01-27 12:18:37 +01:00
Michael Hackstein 8e562b2268 Merge branch 'foxx-pathes' of github.com:triAGENS/ArangoDB into foxx-pathes
Conflicts:
	js/client/modules/org/arangodb/foxx/manager.js
	js/common/modules/org/arangodb/foxx/manager-utils.js
	js/common/modules/org/arangodb/foxx/store.js
	js/server/modules/org/arangodb/foxx/manager.js
2015-01-26 16:53:34 +01:00
Michael Hackstein c72a967e0d Fixed a bug in foxx manager install local file/directory behaviour. It always loaded file from server not from client when using shell. 2015-01-26 15:34:42 +01:00
Michael Hackstein 6b2b459423 Removed leftovers from rebase 2015-01-26 13:03:06 +01:00
Michael Hackstein ac9c931fe2 Removed debug output 2015-01-26 11:59:06 +01:00
Michael Hackstein 3e39372f0d Whenever there is an error during launch of the application it is now returned by the route 2015-01-26 11:59:06 +01:00
Michael Hackstein c988add0b8 Fixed a reloading problem in development mode 2015-01-26 11:59:06 +01:00
Michael Hackstein 9620680d7f Improved output for client foxx manager. Also the serverside foxx manager will now return a simplified json version of the app 2015-01-26 11:59:06 +01:00
Frank Celler 128afd20d9 added development mode 2015-01-26 11:59:06 +01:00
Frank Celler c8e8a2ac71 use all files in tree 2015-01-26 11:59:05 +01:00
Frank Celler 6363011339 fixed routing 2015-01-26 11:59:05 +01:00
Michael Hackstein 900fce9f4a Installing a foxx app is now possible from App store. 2015-01-26 11:58:16 +01:00
Michael Hackstein c9b92ecf23 Now allows to configure an App during runtime and get its configuration options. Configure will trigger reload routing. 2015-01-26 11:58:16 +01:00
Michael Hackstein 802167cea7 Added triggers for to activate development and production mode of Apps 2015-01-26 11:58:16 +01:00
Michael Hackstein d744425043 Moved the foxx generator into a server module. It is now possible to generate a new app from command line 2015-01-26 11:58:15 +01:00
Michael Hackstein f56c47647d Mount all system apps on startup 2015-01-26 11:57:06 +01:00
Michael Hackstein 9969a6e4f2 Fixed some conflicts in foxx routing. 2015-01-26 11:57:06 +01:00