jsteemann
e0ce1cef5a
make buffers somewhat usable
2016-03-17 22:47:22 +01:00
Frank Celler
13603e876e
safety check
2016-03-17 12:00:27 +01:00
Alan Plum
041ebf1542
Fix #1577 once and for all
...
This guarantees the module resolution doesn't break out of the ArangoDB module root (or the service's root).
2016-02-26 12:24:26 +01:00
Michael Hackstein
8295bae5b3
Added generated files
2016-02-16 14:07:10 +01:00
Alan Plum
6593f3d358
Clean up stacktraces
...
Fixes #1564 , #1565 , #1744 .
2016-02-15 22:56:29 +01:00
Max Neunhoeffer
dc63cb3874
Merge branch 'devel' into ClustUp2
2016-02-09 15:52:36 +01:00
Frank Celler
6d4b68245a
added print.limitString
2016-02-06 20:20:07 +01:00
Frank Celler
7769b68d69
fixed returns
2016-02-04 16:46:29 +01:00
Frank Celler
8b6f4b8bec
removed DEV_APP_PATH
2016-02-04 16:38:20 +01:00
Max Neunhoeffer
7a92f3ac0f
Merge branch 'devel' into ClustUp2
2016-02-04 09:39:46 +01:00
Frank Celler
bb3acf8cd5
fixed /_admin/log
2016-02-04 00:41:50 +01:00
Max Neunhoeffer
93400bfdcc
Implement followerInfo.
2016-02-01 11:38:10 +01:00
Michael Hackstein
651e705ebd
Introduced a new EMPTY_GRAPH error which is thrown during AQL execitions whenever the graph has no edge collections.
2016-01-28 18:07:26 +01:00
Frank Celler
8a7f409380
added fs.append
2016-01-24 11:34:13 +01:00
Frank Celler
df0a6f4abf
create out directory
2016-01-23 23:30:41 +01:00
jsteemann
842384016d
namespace cleanup
2016-01-21 00:20:22 +01:00
Frank Celler
9840280637
added vm
2016-01-15 12:36:57 +01:00
Frank Celler
cc91d528e2
do not check DB if connection is down
2016-01-15 12:35:00 +01:00
Jan Steemann
6937dbc489
aggregate fixes
2016-01-12 17:21:18 +01:00
Jan Steemann
8390793699
moved docu blocks into their own files
2016-01-07 16:39:19 +01:00
Frank Celler
1065a1bd2c
added work monitor
2016-01-04 15:33:06 +01:00
Alan Plum
dd51a91d59
Always org/arangodb -> @arangodb
2015-12-17 13:02:39 +01:00
Alan Plum
34843b76fb
Remove CoffeeScript support
2015-12-16 02:03:44 +01:00
Alan Plum
7039647936
Make require behave again
...
Calls to require should stay within the ArangoDB paths or Foxx service root.
The require cache for Foxx services should be service specific.
Reloading a service's controllers should clear the service's require cache.
See #1577 .
2015-12-16 01:16:38 +01:00
Alan Plum
6910f9eaa8
Don't deprecate CoffeeScript in 2.x
2015-12-16 01:16:34 +01:00
Alan Plum
8853ede355
org/arangodb -> @arangodb
2015-12-15 15:51:44 +01:00
jsteemann
c043f9301c
changed error message
2015-12-15 13:13:31 +01:00
Jan Steemann
8e7ac689a2
issue #1606 : fail gracefully on invalid index definitions
2015-12-14 16:58:05 +01:00
Alan Plum
3c804390cd
More consistency
2015-12-11 15:26:41 +01:00
Alan Plum
70ad91c122
Consistency
2015-12-11 15:25:51 +01:00
jsteemann
18e47457a6
fixes
2015-12-11 13:29:18 +01:00
Alan Plum
d3e2f75c33
Make require behave again
...
Calls to require should stay within the ArangoDB paths or Foxx service root.
The require cache for Foxx services should be service specific.
Reloading a service's controllers should clear the service's require cache.
See #1577 .
2015-12-09 13:33:41 +01:00
Alan Plum
adde8c2867
Yak shaving
2015-12-08 20:17:00 +01:00
Alan Plum
6b4fbdc5a7
Make the Foxx console behave as documented
2015-12-08 18:42:13 +01:00
jsteemann
9fa0f6d3a7
Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-multi-modify
2015-12-02 16:38:50 +01:00
Alan Plum
707c3fe1e2
Brute force ignore events module in jshint
2015-12-01 20:19:54 +01:00
Alan Plum
125f825420
Add process to system modules (because it's global)
2015-12-01 19:53:34 +01:00
jsteemann
cb62c657e0
initial commit
2015-11-18 17:46:19 +01:00
Jan Steemann
01499dde43
added deadlock detection for lazy locking of collections
2015-10-29 11:57:22 +01:00
Alan Plum
3325d46211
Unbreak aardvark shell
2015-10-06 16:18:23 +02:00
Alan Plum
820e694d0c
Re-implement cleanupCancelation
2015-10-06 15:10:43 +02:00
Alan Plum
5b7f3d19d0
Deprecate CS in 2.9, not 2.8
2015-10-06 12:47:58 +02:00
Jan Steemann
beaf3acbd3
simplifications
2015-10-06 11:58:23 +02:00
Jan Steemann
3f622d71fb
fixed some require issues
2015-10-05 10:28:44 +02:00
Jan Steemann
7933fe5d4b
restore 2.6 behavior for db-based modules
2015-10-01 10:51:23 +02:00
Jan Steemann
74358962b5
fixed require on Windows
2015-09-30 13:06:36 +02:00
Alan Plum
e26fc9b442
S'more.
2015-09-25 17:04:08 +02:00
Alan Plum
40837eacf1
Refactored db module loading
2015-09-25 17:02:51 +02:00
Alan Plum
a58fc5fdfa
Also add node/node_modules on Windows
2015-09-25 16:43:50 +02:00
Wilfried Goesgens
06b0057bb1
Fix module loading
2015-09-25 16:24:17 +02:00
Alan Plum
963d9b082e
Removed hack for extension-free package main
2015-09-24 14:23:15 +02:00
Alan Plum
30588d556f
Add support for 'main: "index"' and expose globalPaths
2015-09-24 13:46:14 +02:00
Alan Plum
f8ef55f437
Fixed Foxx preprocessing
2015-09-24 13:46:14 +02:00
Alan Plum
252cba5e9f
Implemented FoxxService
2015-09-24 13:46:14 +02:00
Alan Plum
f021cdc471
Implemented require from db collection
2015-09-24 13:46:13 +02:00
Alan Plum
038267cb06
Re-implemented require/module based on Node 4.1.0
...
The require function should now behave as expected and treat ArangoDB's module paths as sources for "external" modules.
The "assert", "buffer" and "path" modules have been moved out of ./js/node into the bootstrap modules.
The module "org/arangodb/foxx/arangoApp" (as well as any modules depending on it) is incompatible with the new module loading behaviour and will be have to be rewritten from scratch.
The "Package" class has been removed entirely and is no longer needed.
Support for the database-stored modules is currently missing and needs to be re-implemented within the module loader.
2015-09-24 13:46:13 +02:00
Jan Steemann
75ccd7e2cc
fixed incremental sync method
2015-09-14 17:44:12 +02:00
CoDEmanX
3a9648d78a
More Americanization
2015-09-03 22:25:43 +02:00
Jan Steemann
a80d6635ab
create fat datafiles
...
This prevents SIGBUS when a sparse datafile is accessed and the disk is full. In
this case the mmapped region is not necessarily backed by physical memory, and
accessing the memory may crash the program
2015-09-02 10:18:24 +02:00
Jan Steemann
9374a25822
removed unused error code
2015-08-25 19:55:48 +02:00
Jan Steemann
4e771b2728
replication improvements
2015-08-17 18:41:05 +02:00
Jan Steemann
589e67357f
issue #1434 : return more meaningful error message from org/arangodb/general-graph::_fromVertex()
2015-08-12 21:36:27 +02:00
Jan Steemann
e642ce972f
throw error if collection not yet loaded
2015-08-10 17:08:41 +02:00
Alan Plum
7bd08e29aa
Deprecated CS.
2015-08-05 12:48:27 +02:00
Willi Goesgens
a5337ccdcb
fix usage of db._query() when generating documentation.
2015-08-04 18:41:37 +02:00
Jan Steemann
20c96b5e46
removed locks
2015-07-21 17:34:57 +02:00
Jan Steemann
f5a7e2120f
pass filename to internal.parse() call
2015-07-14 18:23:08 +02:00
Alan Plum
fc15d421d6
Implemeneted JSON configs. Cleaned up optional configs.
2015-06-16 17:58:38 +02:00
Alan Plum
273d16c0ed
Linting.
2015-06-16 14:54:14 +02:00
Willi Goesgens
6126569d6a
Fix conversion of bool arguments
2015-06-11 13:08:48 +02:00
Alan Plum
3576b898d7
Fixed toArgv implementation.
2015-06-10 18:02:23 +02:00
Jan Steemann
bd055a3b1d
fix line numbers being off by 2 in Foxx stack traces
2015-06-10 09:14:55 +02:00
Alan Plum
9d3a1dc453
Less noise.
2015-06-03 21:06:59 +02:00
Alan Plum
9b5acdf25a
Don't dump file content in console.
2015-05-27 12:43:31 +02:00
Alan Plum
e9c5b87ea5
Inject process and console in Module.run.
2015-05-27 10:28:13 +02:00
Alan Plum
00cbb400fd
Simplification.
2015-05-27 10:27:56 +02:00
Alan Plum
797fdc36d7
Support fs.readFileSync(filename, {encoding}).
2015-05-27 10:24:12 +02:00
Alan Plum
4fe795db3c
Implemented script args and results.
2015-05-26 19:52:06 +02:00
Alan Plum
a98f1b088e
Readability.
2015-05-26 19:52:05 +02:00
Willi Goesgens
c418f10729
Implement copying of files, since copyRecursive can't copy single files.
2015-05-21 15:49:10 +02:00
Alan Plum
1b3d22ebe3
Whitespace.
2015-05-07 23:14:18 +02:00
Alan Plum
2a40edaa41
Fixed Foxx trace paths.
2015-05-07 23:09:22 +02:00
Alan Plum
61aabc2b06
Update module-fs.js
2015-05-07 03:37:08 +02:00
Alan Plum
45cfa12c91
Added Controller#apiDocumentation.
2015-05-07 01:30:14 +02:00
Alan Plum
7db1593fab
fs.join and fs.safeJoin now take arbitrary number of arguments.
2015-05-07 01:30:14 +02:00
Alan Plum
4f17dfe10e
Added error 1237: collection type mismatch.
2015-05-03 22:55:56 +02:00
Jan Steemann
7e0597f215
fixed cursor output in browser shell
2015-04-15 12:00:35 +02:00
Willi Goesgens
950e05787b
Instead of zip'ing for move, copy recursive & remove original.
2015-04-14 18:30:03 +02:00
Willi Goesgens
6579eefc33
Add function that can copy files recursive.
2015-04-14 14:46:17 +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
Jan Steemann
a17d2d2e0e
added generated file
2015-04-13 13:41:57 +02:00
Alan Plum
b02fb586aa
More beautiful console.trace.
2015-04-09 20:04:13 +02:00
Alan Plum
69e63c2c64
Strict mode all the things.
2015-04-09 00:22:05 +02:00
Alan Plum
e8ba1a1332
Even more strictness.
2015-04-08 17:12:34 +02:00
Alan Plum
45ff33b404
More strictness.
2015-04-08 16:18:11 +02:00
Max Neunhoeffer
19b14bd98c
Move loading of db:// modules later in the search.
...
Collection lookups are painfully slow on a coordinator if they fail,
because the cache has to be reloaded from the Agency. Therefore we
only want to load modules from there after all other local methods
have been tried.
2015-04-08 13:16:34 +02:00
Alan Plum
f8cfcbdbd6
Use ArangoError in module loader.
2015-04-08 13:16:12 +02:00
Alan Plum
83b1b4596a
Added module loader errors.
2015-04-08 13:12:43 +02:00
Alan Plum
064599d1a5
Code style.
2015-04-08 01:53:09 +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
8133bd4c6a
Linting
2015-04-07 20:04:59 +02:00
Alan Plum
c0bc47165b
Added more stubs.
2015-04-07 19:55:58 +02:00
Alan Plum
efe7dba4c1
Workaround for internal.sprintf not handling dates properly.
2015-04-07 19:55:45 +02:00
Alan Plum
211d6f3987
Lunt.
2015-04-07 17:41:04 +02:00
Alan Plum
df23003452
Extracted Module#run.
2015-04-07 17:34:32 +02:00
Frank Celler
de1a9fe833
added reload for DB modules
2015-04-05 14:02:34 +02:00
Jan Steemann
3ddf23d093
hand-moved changes from other branch
2015-03-30 12:30:45 +02:00
Willi Goesgens
0690b4943f
- Replace the javascript implementation of makeDirectoryRecursive by our native implementation
...
- fix the native implementation so it doesn't try to create driveletters as directories.
2015-03-26 17:23:57 +01:00
Jan Steemann
7ec3a18e04
added internal.options()
2015-03-25 17:08:29 +01:00
Jan Steemann
7d5cc17d98
added tests
2015-03-23 22:28:26 +01:00
Willi Goesgens
108fccdbf7
Add environment variable to V8 wrapping.
2015-03-20 11:55:32 +01:00
Jan Steemann
bdae982aa0
refuse to start the server when collection files or parameter.json files are not readable
...
Conflicts:
js/apps/system/aardvark/frontend/js/bootstrap/errors.js
2015-03-18 17:44:06 +01:00
Willi Goesgens
a95a496920
Add (unix) implementation for chmod
2015-03-18 13:41:26 +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
a9d9b56992
Argsparser:
...
- fix parsing of sub-option arrays
- add possibibility to serialize to '--longopt=value' instead of '--longopt' 'value'
2015-03-11 15:04:01 +01:00
Willi Goesgens
2619529f63
Relax cluster timeout when compiled with -DCOVERAGE
2015-02-26 11:01:53 +01:00
Michael Hackstein
c5adf7b089
Fixed tests for foxx on multiple databases. And added generated files
2015-02-25 10:44:15 +01:00
Willi Goesgens
cd9ad14160
Fix error handling in directory creation: only catch errors of directory existing; throw meaningfull error message.
2015-02-20 12:55:46 +01:00
Michael Hackstein
28c0498330
Module fs circus
2015-02-20 11:47:49 +01:00
Michael Hackstein
3d8a4584dc
Addded a wrapper around FS move that is actually able to move directories accross mountpoints and on FAT file systems
2015-02-20 10:49:40 +01:00
Jan Steemann
83ea75fa8f
removed unused config options
2015-02-18 16:40:15 +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
9d5ae45b10
Improved errors thrown when trying to install malformed applications
2015-02-13 22:11:54 +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
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
Jan Steemann
ce69be69bf
increase default value for maxIterations
2015-02-11 12:45:41 +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
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
Michael Hackstein
449f6dfc6c
Fixed bugs for app path movement
2015-02-09 08:53:51 +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
acc4aabdad
Renamed App folder from databases to _db. It is now consistent with url
2015-02-03 15:45:00 +01:00
Frank Celler
86c1082935
added path cache
2015-02-02 17:07:31 +01:00
Frank Celler
05b8115abf
Merge pull request #1227 from triAGENS/foxxy-console
...
Foxx console
2015-01-29 17:16:05 +01:00
Alan Plum
0859b83558
Fixed unset mount point.
2015-01-28 18:50:42 +01:00
Frank Celler
0e7f958e0e
moved console to package environment
2015-01-28 18:43:22 +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
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
964d6f93df
Inject console into app modules.
2015-01-27 19:59:59 +01:00
Frank Celler
6363011339
fixed routing
2015-01-26 11:59:05 +01:00
Michael Hackstein
986cdbacec
The new modules arangoApp and routing now are able to create an app including a context. Also the routing information is created in the routing file. Now has to be included into the routing table
2015-01-26 11:57:05 +01:00
Michael Hackstein
4bafbc44b1
Moved ArangoApp to its own file. It is not contained in bootstrap modules anymore
2015-01-26 11:56:32 +01:00
Michael Hackstein
f74c181bf5
The ArangoApp in modules now takes a configuration and exports the configuration to be stored in a collection
2015-01-26 11:36:20 +01:00
Michael Hackstein
a8cdd1b6d1
Moved description computation from moduels to manager. And deleted obsolete code
2015-01-26 11:36:20 +01:00
Michael Hackstein
0df4242965
Moved some code from the module into foxx manager
2015-01-26 11:36:20 +01:00