Added loop to cycle through pages returning not enough statements while having 'more' links
- Added _ensureStatementsReturned()
- Intended to work with callbacks by issuing the calls to page through the 'more' links before the callback function is called
Stripped the limit parameter when following a more link in _ensureStatementsReturned
- Made sure the original requested limit is met
- Truncated the statement list to match the limit
Added test for queryStatements with agent + verb params
- Added writing timestamped-domain statements to the LRS
- Added a queryStatement test verifying the count of statements returned
Added the assertion equalsStatementCount to avoid deduplication of lrs calls for each assertion
Added the other permutations of agent, verb, object to the queryStatements tests
Renamed expectedCount to expectedCountIfNoLimit in equalsStatementCount
- Prepared to modify the equalsStatementCount to test both a limit and no limit
Added async tests for equalStatementCount
- Renamed equalsStatementCount to equalStatementCount
Changed the title of the queryStatements tests and removed the limit filter mention
Refactored the queryStatements tests with a doStatementCountTest wrapper function
- Renamed expectedCountIfLimit to expectedCount
- Changed the version to test to 1.0.0
- Added an assertion to expect no 'more' URL returned
Added support for running queryStatements tests in node (node-runner.js)
- added callback to saveStatement calls
- removed sync tests, now all queryStatements tests are async
Added loop to cycle through pages returning not enough statements while having 'more' links
- Added _ensureStatementsReturned()
- Intended to work with callbacks by issuing the calls to page through the 'more' links before the callback function is called
Stripped the limit parameter when following a more link in _ensureStatementsReturned
- Made sure the original requested limit is met
- Truncated the statement list to match the limit
Merge branch 'fetch-until-first-statement' of https://git.med.uottawa.ca/plaliber/TinCanJS into fetch-until-first-statement
Corrected _ensureStatementsReturned to pass queryStatements tests
- made sure the more and statements result properties were the same for sync and async calls
- corrected the detection of the original limit filter and reissued the original request with no limit filter
Corrected _ensureStatementsReturned to pass the firstFound tests with WaxLRS
- added the "LRS _ensureStatementsReturned" test module and the doFirstFoundTest
- fixed calling _ensureStatementsReturned from inside callback in queryStatements
- fixed getting the statements list from moreStatements in while loop in _ensureStatementsReturned
- added logging number of calls made in while loop in _ensureStatementsReturned
- added firstFound configuration example to config.js.template
Fixed support for '+' characters in URLs parsed through Utils.parseURL()
- addressed 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
Fixed _ensureStatementsReturned for cases where limit filter is defined
Fixed _ensureStatementsReturned for when a limit filter is specified
- Made sure sub-calls were not issued with a callback
- Added checks for detecting xhr errors
- Made sure the .more and .statements references were correct for the re-issued call and the moreStatements calls
- Fixed the concat of statement arrays
- Added a log entry for when more statements were collected than the original limit required.
Added statementCountTestDelay to add delay between recording test statements and querying for them
Changed statementCountTestDelay to be set in seconds