Add queryStatements test with agent + verb params
* Add writing timestamped-domain statements to the LRS
* Add a queryStatement test verifying the count of statements returned
Add equalsStatementCount assertion to queryStatements test
* Avoid duplication of lrs calls for each assertion
Add agent, verb, object permutations to queryStatements tests
Add async tests for equalStatementCount
* Rename equalsStatementCount to equalStatementCount
* Change the title of the queryStatements tests
* Remove the limit filter mention
Refactor the queryStatements tests
* Add a doStatementCountTest wrapper function
* Rename expectedCountIfLimit to expectedCount
* Change the version to test to 1.0.0
* Add an assertion to expect no 'more' URL returned
Run queryStatements tests in node (node-runner.js)
* add callback to saveStatement calls
* remove sync tests, now all queryStatements tests are async
Add _ensureStatementsReturned method
* Add loop to cycle through pages returning not enough statements while having 'more' links
* Intended to work with callbacks by issuing the calls to page through the 'more' links before the callback function is called
Make _ensureStatementsReturned handle the limit param
* Strip the limit parameter when following a more link
* Make sure the original requested limit is met
* Truncate the statement list to match the limit
Correct _ensureStatementsReturned to pass queryStatements tests
* make sure the more and statements result properties are the same for sync and async calls
* correct the detection of the original limit filter and reissue the original request with no limit filter
Correct _ensureStatementsReturned to pass the firstFound tests
(Tests made against a Wax LRS instance)
* add the "LRS _ensureStatementsReturned" test module and the doFirstFoundTest
* fix calling _ensureStatementsReturned from inside callback in queryStatements
* fix getting the statements list from moreStatements in while loop in _ensureStatementsReturned
* add logging number of calls made in while loop in _ensureStatementsReturned
* add firstFound configuration example to config.js.template
Fix Utils.parseURL to support '+' characters in URLs
* addresses an issue where WaxLRS more links contained '+' characters that got converted to %2B through the trip through parseURL (decodeURIComponent + encodeURIComponent) and assembling it again before sending out the moreStatement call. Fixed it by replacing '+' with '%20' before feeding the parameter to decodeURIComponent in parseURL
Fix _ensureStatementsReturned for when limit filter is defined
* Make sure sub-calls were not issued with a callback
* Add checks for detecting xhr errors
* Make sure the .more and .statements references are correct for the re-issued call and the moreStatements calls
* Fix the concat of statement arrays
* Add a log entry for when more statements are collected than the original limit required
Add statementCountTestDelay to queryStatements test
Change statementCountTestDelay to be set in seconds
Make firstFound tests work with synchronous calls
* Clean the result object from _ensureStatementsReturned: remove xhr and err (if null)
Fix firstFound unit tests in node
* Add check for syncEnabled
Fix validity of more URLs returned from _ensureStatementReturned
* Remove the truncation of statements to match original limit filter
* Fixes a situation where the more link returned points to a statements past the intended next statement following the nth statement where n is equal to the original limit number
* Remove the check for fewer or equal statements from firstFound test
Document the _ensureStatementsReturned private method
Add _ensureStatementsReturned call in moreStatements
* make sure that _ensureStatementsReturned isn't called a second time from moreStatements calls issued from within _ensureStatementsReturned