summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* feat: add "access-ready" to feature flags in welcome messagefeat/prepare-accessJan Lehnardt2020-01-031-0/+3
|
* feat: allow special document member _accessJan Lehnardt2020-01-032-3/+7
| | | | | | | | | | | | | | | | | This is in preparation for per-document access control which is going to use this field. We are adding this in 3.0 because per- document access control will not be ready for 3.0, but added in 3.1 or later. This commit allows a future version of CouchDB with per-document access control to replicate with CouchDB 3.0, to make upgrades and interoperability easy. The per-documnet access control code is not going to store the _access property in the document body like this patch does, but is going to store it in an extra field inside of #doc and assert access control for a document without having to load the entire document body.
* test: add failing test for _access preparation commitJan Lehnardt2020-01-031-1/+11
|
* Fix double "make clean"Joan Touzet2019-12-311-1/+3
| | | | | | | This is a recurrence of #1450 caused by ec416c3 (SpiderMonkey 60 PR), where a case clause in rebar.config.script lacks a match when configure has not yet been run yet.
* Speedup eunit: smoosh_serverPaul J. Davis2019-12-251-18/+27
|
* Speedup eunit: mem3_sync_event_listenerPaul J. Davis2019-12-251-18/+35
|
* Speedup eunit: mem3_shardsPaul J. Davis2019-12-251-18/+36
|
* Speedup eunit: mem3_repPaul J. Davis2019-12-251-1/+1
|
* Speedup eunit: mango_idx_testPaul J. Davis2019-12-251-17/+30
|
* Speedup eunit: fabric_doc_updatePaul J. Davis2019-12-251-19/+34
|
* Speedup eunit: fabric_doc_purgePaul J. Davis2019-12-251-2/+1
|
* Speedup eunit: fabric_doc_openPaul J. Davis2019-12-251-23/+38
|
* Speedup eunit: fabric_db_createPaul J. Davis2019-12-251-14/+25
|
* Speedup eunit: ddoc_cache_no_cache_testPaul J. Davis2019-12-251-3/+13
|
* Speedup eunit: couch_replicator_schedulerPaul J. Davis2019-12-251-38/+55
|
* Speedup eunit: couch_replicator_clusteringPaul J. Davis2019-12-251-11/+28
|
* Speedup eunit: couch_replicator_auth_sessionPaul J. Davis2019-12-251-20/+37
|
* Speedup eunit: couch_replicatorPaul J. Davis2019-12-251-4/+6
|
* Speedup eunit: couch_mrview_purge_docs_fabric_testsPaul J. Davis2019-12-251-4/+14
|
* Speedup eunit: couch_mrview_compactorPaul J. Davis2019-12-251-19/+22
|
* Speedup eunit: couch_index_compaction_testsPaul J. Davis2019-12-251-4/+15
|
* Speedup eunit: couch_indexPaul J. Davis2019-12-251-6/+15
|
* Speedup eunit: couchdb_mrview_testsPaul J. Davis2019-12-251-11/+20
|
* Speedup eunit: couch_uuids_testsPaul J. Davis2019-12-251-98/+68
| | | | | Avoid `test_util:start/3` as it wastes time mocking modules for each test.
* Speedup eunit: couch_flags_config_testsPaul J. Davis2019-12-251-4/+7
| | | | | This undoes the test per combination approach to avoid the time spent printing each name to the console.
* Speedup eunit: couch_file_testsPaul J. Davis2019-12-251-74/+92
|
* Speedup eunit: couch_serverPaul J. Davis2019-12-251-34/+29
|
* Speedup eunit: couch_httpdPaul J. Davis2019-12-251-6/+9
|
* Speedup eunit: couch_dbPaul J. Davis2019-12-251-18/+52
|
* Speedup eunit: chttpd_xframe_testPaul J. Davis2019-12-251-8/+21
|
* Speedup eunit: chttpd_prefer_header_testPaul J. Davis2019-12-251-16/+31
|
* Speedup eunit: chttpd_viewPaul J. Davis2019-12-251-9/+26
|
* Speedup eunit: couch_replicator_compact_testsPaul J. Davis2019-12-251-18/+21
| | | | | Increase the doc write batch count in the background writer process to speed up the should_populate_and_compact test.
* Speedup eunit: chttpd_endpoints_testsPaul J. Davis2019-12-251-136/+55
| | | | | There's no need to call through mocked functions when we can just assert its the correct function returned.
* Speedup eunit: couch_replicator_doc_processorPaul J. Davis2019-12-251-23/+45
| | | | Another example of moving mocks around.
* Speedup eunit: chttpd_db_bulk_get_testPaul J. Davis2019-12-251-30/+34
| | | | | Another example of moving mocks to a setup and using `meck:reset/1` in the foreach fixture.
* Speedup eunit: chttpd_db_bulk_get_multipart_testPaul J. Davis2019-12-251-24/+43
| | | | | Another module where loading the meck expect values once per suite saves us 20s or so.
* Speedup eunit: couchdb_file_compression_testsPaul J. Davis2019-12-251-67/+57
| | | | | This just populates a single test db and then copies the raw file to a new database name for each individual test.
* Speedup eunit: fabric_doc_open_revsPaul J. Davis2019-12-251-36/+54
| | | | | Moving the meck configuration into setup and resetting in foreach makes tests quite a bit faster.
* Speedup eunit: couch_multidb_changesPaul J. Davis2019-12-251-56/+75
| | | | | This moves all of the mock work to a single setup function and then just resets all of the mocked modules before each test run.
* Speedup eunit: couch_peruser_testPaul J. Davis2019-12-251-3/+3
| | | | | The quiet and start periods of a second were costing quite a bit of time. Setting them to zero shaves off about 26 seconds.
* Cleanup eunit: couch_peruser_testPaul J. Davis2019-12-251-254/+273
| | | | | The body of these tests were running during the setup phase which is not correct. Wrapping each body with `?_test()` macros fixes the issue.
* Disable JavaScript tests ported to ElixirPaul J. Davis2019-12-2524-69/+97
|
* Speedup JavaScript testsPaul J. Davis2019-12-2528-93/+92
| | | | | | We sleep for a bit more than a second for each test. Rather than using return to skip a test we just mark the test as skipped so we don't have to waste time. This saves about 25s on the test suite.
* Silence already started message for cryptoPaul J. Davis2019-12-251-0/+2
|
* Switch replicator "info" error message to be an objectNick Vatamaniuc2019-12-233-6/+10
| | | | Instead of a string, null or object, it should now be only a null or an object.
* Merge pull request #2345 from apache/sm60-davispPeng Hui Jiang2019-12-2133-56/+9014
|\ | | | | port to spidermonkey 60
| * Add Javascript to support Spidermonkey 60sm60-davispjiangph2019-12-2016-41/+6925
| | | | | | | | Co-Authored-By: Paul J. Davis <paul.joseph.davis@gmail.com>
| * Allow configuring the use of SpiderMonkey 60Paul J. Davis2019-12-201-5/+31
| |
| * Import SpiderMonkey 60 based CouchJS sourcesjiangph2019-12-208-0/+1997
| | | | | | | | Co-Authored-By: Jan Lehnardt <jan@apache.org>