Skip to content

Conversation

Aschen
Copy link
Contributor

@Aschen Aschen commented Oct 7, 2019

What does this PR do?

v6 version of #450

Remove the local check of the arguments since now we have specifics errors code sent by Kuzzle.

Other changes

  • Add error codes id and code properties to KuzzleError

@codecov
Copy link

codecov bot commented Oct 7, 2019

Codecov Report

Merging #451 into 6-dev will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##            6-dev     #451      +/-   ##
==========================================
- Coverage   95.97%   95.94%   -0.04%     
==========================================
  Files          33       33              
  Lines        1641     1357     -284     
==========================================
- Hits         1575     1302     -273     
+ Misses         66       55      -11
Impacted Files Coverage Δ
src/controllers/index.js 100% <ø> (+2.7%) ⬆️
src/controllers/document.js 96% <ø> (+1.08%) ⬆️
src/controllers/collection.js 100% <ø> (+5.19%) ⬆️
src/controllers/realtime/index.js 97.77% <ø> (-0.64%) ⬇️
src/controllers/security/index.js 99.25% <ø> (-0.33%) ⬇️
src/KuzzleError.js 100% <100%> (ø) ⬆️
src/controllers/auth.js 92.59% <100%> (-0.27%) ⬇️

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 178fe50...9cfe22c. Read the comment docs.

Copy link
Member

@alexandrebouthinon alexandrebouthinon left a comment

Choose a reason for hiding this comment

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

Did you test passing null values or empty strings to functions?

@Aschen
Copy link
Contributor Author

Aschen commented Oct 9, 2019

Did you test passing null values or empty strings to functions?

No but Kuzzle will respond with an error if one of the parameter is incorrect

@scottinet scottinet merged commit fc9539f into 6-dev Oct 11, 2019
@scottinet scottinet deleted the 6/remove-local-arguments-check branch October 11, 2019 12:59
@Aschen Aschen mentioned this pull request Nov 5, 2019
Aschen added a commit that referenced this pull request Nov 5, 2019
# [6.2.6](https://github.com/kuzzleio/sdk-javascript/releases/tag/6.2.6) (2019-11-05)


#### Enhancements

- [ [#456](#456) ] Do not try to reconnect if the browser is offline   ([scottinet](https://github.com/scottinet))
- [ [#451](#451) ] Remove local checks for arguments    ([Aschen](https://github.com/Aschen))
---
@scottinet scottinet mentioned this pull request Nov 5, 2019
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.

3 participants