Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specification CRUDL routes #231

Merged
merged 4 commits into from
Jun 19, 2017
Merged

Add specification CRUDL routes #231

merged 4 commits into from
Jun 19, 2017

Conversation

samniisan
Copy link
Contributor

@samniisan samniisan commented Jun 12, 2017

fix kuzzleio/kuzzle-sdk#3

Introduces

  • Specifications CRUDL routes (get - search - scroll - update - delete - validate) and related unit tests
  • Small fix in Security (scrollProfiles method should not return Security instance)

@codecov-io
Copy link

codecov-io commented Jun 12, 2017

Codecov Report

Merging #231 into 5.x will increase coverage by 0.16%.
The diff coverage is 95.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##              5.x     #231      +/-   ##
==========================================
+ Coverage   98.56%   98.72%   +0.16%     
==========================================
  Files          17       17              
  Lines        2085     2512     +427     
  Branches      595      762     +167     
==========================================
+ Hits         2055     2480     +425     
- Misses         30       32       +2
Impacted Files Coverage Δ
src/security/Security.js 97.74% <ø> (-0.01%) ⬇️
src/Collection.js 98.03% <95.16%> (-0.61%) ⬇️
src/networkWrapper/wrappers/socketio.js 100% <0%> (ø) ⬆️
src/networkWrapper/wrappers/websocket.js 98.97% <0%> (+0.27%) ⬆️
src/Kuzzle.js 99.44% <0%> (+0.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00dcaca...0b04447. Read the comment docs.

@samniisan samniisan changed the title 3 data validation Add specification CRUDL routes Jun 12, 2017
* @param {object} [options] - Optional parameters
* @param {responseCallback} cb - Handles the query response
*/
Collection.prototype.scrollSpecifications = function (scrollId, options, cb) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other scroll methods return a KuzzleSearchResult object, shouldn't this one do the same?

* @param {object} [options] - Optional parameters
* @param {responseCallback} cb - Handles the query response
*/
Collection.prototype.searchSpecifications = function (filters, options, cb) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other search methods return a KuzzleSearchResult object, shouldn't this one do the same?

@samniisan
Copy link
Contributor Author

@scottinet Just updated this PR according to your comments

@scottinet scottinet merged commit 5387731 into 5.x Jun 19, 2017
@scottinet scottinet deleted the 3-data-validation branch June 19, 2017 13:56
@scottinet scottinet mentioned this pull request Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants