1
0
Fork 0
Commit Graph

201 Commits

Author SHA1 Message Date
Jan Steemann ede177aa55 issue #507, issue #508 2013-05-06 09:40:28 +02:00
Frank Celler 01d654e923 fixed https version of test 2013-05-05 23:34:02 +02:00
Frank Celler 48515d7bd8 fixed tests 2013-05-05 21:55:10 +02:00
Jan Steemann ee7ab712d6 issue #495 2013-05-03 11:08:58 +02:00
Jan Steemann ef1fcc89ee added test case for #491 2013-05-02 16:26:40 +02:00
Jan Steemann cd17f1ef44 issue #481 2013-04-21 11:37:46 +02:00
Jan Steemann 7d9777f8c5 extended API for user-defined AQL functions 2013-04-16 18:32:19 +02:00
Jan Steemann c945dbd2cd updated transaction API 2013-04-15 11:54:36 +02:00
Jan Steemann dee5adb9f5 added client side API for transactions 2013-04-12 23:18:48 +02:00
Frank Celler 3512fa6ff0 fixed error handling 2013-04-02 15:00:55 +02:00
Jan Steemann 55c1134702 replaced error code 9 2013-03-26 18:03:03 +01:00
Jan Steemann 6d82d45859 adjusted tests after Franks changes 2013-03-26 17:58:09 +01:00
Jan Steemann 69db58a154 index cleanup 2013-03-22 10:38:47 +01:00
Jan Steemann 40199d64b7 fixed handling of empty and reserved attribute names in documents
specifying an empty attribute name in a document may have led to segmentation faults
when the document was unpacked later.
2013-03-20 11:48:33 +01:00
Jan Steemann d54078390d fixed failing test 2013-03-19 14:57:11 +01:00
Jan Steemann 99522ccb84 switch order of insertion into indexes & datafile for updates
updates are now done in the indexes first, then written to the datafile
2013-03-18 13:03:05 +01:00
a-brandt b2703d4a49 fixed unittest 2013-03-13 14:46:55 +01:00
Jan Steemann 8ddf718c81 more detailed logging 2013-03-11 13:41:39 +01:00
a-brandt 4f6fbd9cd3 added more tests 2013-03-11 10:53:37 +01:00
a-brandt 1f4685a17d #412 added If-None-Match, If-Match and waitForSync 2013-03-08 17:00:15 +01:00
a-brandt e952b28aab changed http return codes for document update and delete 2013-03-08 16:56:15 +01:00
Jan Steemann 5631314bc7 issue #212: added auto-increment support for collections
the feature can be used by creating a collection with the extra `keyOptions`
attribute as follows:

    db._create("mycollection", { keyOptions: { type: "autoincrement", offset: 1, increment: 10, allowUserKeys: true } });

The `type` attribute will make sure the keys will be auto-generated if no `_key` attribute is specified for a document.
The `allowUserKeys` attribute determines whether users might still supply own `_key` values with documents or if this
is considered an error.
The `increment` value determines the actual increment value, whereas the `offset` value can be used to seed to value
sequence with a specific starting value. This will be useful later in a multi-master setup, when multiple servers can use
different auto-increment seed values and thus generate non-conflicting auto-increment values.

The default values currently are:

- `allowUserKeys`: `true`
- `offset`: `0`
- `increment`: `1`

The only other available key generator type currently is `traditional`. The `traditional` key generator
will auto-generate keys in a fashion as ArangoDB always did (some increasing integer value, with a more or less unpredictable
increment value).

Note that for the `traditional` key generator there is no the option to disallow user-supplied keys and give the
server the sole responsibility for key generation.
2013-03-08 11:54:03 +01:00
Frank Celler dd15025c1c fixed tests, add missing prefix = false to statistics call 2013-03-05 13:32:58 +01:00
Jan Steemann f32e5811d4 increase the http unittest timeout to make all tests pass even with Valgrind 2013-03-01 11:32:52 +01:00
Jan Steemann 47bce0a0b4 issue #436 2013-02-27 14:47:05 +01:00
Jan Steemann 13d1ff0057 issue #425 2013-02-22 23:43:52 +01:00
Jan Steemann 71459b680f issue #426 2013-02-22 23:26:52 +01:00
Jan Steemann 60349edaed fix for routing reload 2013-02-21 18:52:02 +01:00
Jan Steemann 71e5014792 test for a simple route 2013-02-21 18:44:06 +01:00
Jan Steemann a10c139039 added tests for /_admin/echo and thus req.url 2013-02-21 17:57:22 +01:00
Jan Steemann 3e095ab0d0 split users module in client- and server-specific parts 2013-02-21 17:41:38 +01:00
Jan Steemann 35f6b3f054 fix cloning 2013-02-21 15:12:50 +01:00
Jan Steemann 3fdebb38ee issue #393, issue #128
Added a REST API for user management
The REST API exposes the functionality available in module "users" for HTTP access.

The following methods are available:
* GET /_api/user/username: fetch user information
* POST /_api/user: create new user
* PUT /_api/user: replace an existing user
* PATCH /_api/user: (partially) update an existing user
* DELETE /_api/user: remove an existing user

Additionally, a module "crypto" is introduced and exposed for Javascript actions.
The crypto module provides the following functions:
* require("org/arangodb/crypto").md5();
* require("org/arangodb/crypto").sha256();
* require("org/arangodb/crypto").rand();
2013-02-20 11:56:26 +01:00
Jan Steemann d1edc4ddb2 added replaceByExample() and updateByExample() methods
added optional "limit" parameter for removeByExample() method
2013-02-19 11:38:55 +01:00
a-brandt 25882a3cd0 bugfix #410: Graph REST API returns "400:Bad request" instead of "404:Not found" 2013-02-18 09:28:03 +01:00
Jan Steemann f675bdc7dd fixed typo 2013-02-15 15:14:59 +01:00
Jan Steemann 68986e068e added optional parameter "excludeSystem" for GET /_api/collection 2013-02-14 16:57:39 +01:00
a-brandt 46c5d66f8e bugfix #396: Creating a Graph with an existing graph's name _key doesn't throw an error 2013-02-14 15:12:11 +01:00
a-brandt d6426107f3 dded PATCH to graph api 2013-02-13 13:28:24 +01:00
Jan Steemann 0f29e2b7dd pass request body to user-defined PATCH action 2013-02-12 18:17:07 +01:00
a-brandt cce1e6bc02 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2013-02-12 13:28:20 +01:00
a-brandt 01729482ad fixed wrong http return code 2013-02-12 12:55:38 +01:00
Jan Steemann 861a2e6b25 issue #395 2013-02-12 11:46:55 +01:00
Jan Steemann 24a64efa94 fix tests 2013-02-06 12:40:00 +01:00
Jan Steemann c2a3f221f8 do not use start_with in rspec. Travis doesn't have it 2013-02-06 12:10:12 +01:00
Jan Steemann 577941bf23 unify collection names returned by ArangoDB 2013-02-04 23:04:56 +01:00
Jan Steemann 923027bfdd unify collection names returned by rest API 2013-02-04 19:52:05 +01:00
Jan Steemann de0b290bcd moved AQL to use AhuacatlTransaction 2013-02-04 11:25:03 +01:00
Jan Steemann e38a795ff6 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2013-01-29 14:32:52 +01:00
Jan Steemann ae9aa990f3 issue #358: fixed credentialing in CORS-non-preflight requests, fixed CORS keep-alive issue 2013-01-29 14:32:10 +01:00