Skip to content

Conversation

Aschen
Copy link
Contributor

@Aschen Aschen commented Oct 4, 2018

What does this PR do?

Before the method validateSpecifications didn't take an index an a collection in parameters and could be used for any collection.
This PR change the signature to match the rest of the collection controller. The method now take an index and a collection in addition to the specifications for this collection.

I also modify the updateSpecifications method. The method was taking an index and collection in parameter but it didn't scope the specifications to the collection.

Related PR: #318, kuzzleio/sdk-go#211, kuzzleio/sdk-c#13, kuzzleio/sdk-cpp#11, kuzzleio/sdk-java#13, kuzzleio/documentation#51

How should this be manually tested?

@Aschen Aschen self-assigned this Oct 4, 2018
@codecov-io
Copy link

codecov-io commented Oct 4, 2018

Codecov Report

Merging #318 into 6-dev will decrease coverage by 0.26%.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff            @@
##            6-dev    #318      +/-   ##
=========================================
- Coverage   97.76%   97.5%   -0.27%     
=========================================
  Files          28      28              
  Lines        1390    1400      +10     
=========================================
+ Hits         1359    1365       +6     
- Misses         31      35       +4
Impacted Files Coverage Δ
src/controllers/collection.js 94.87% <60%> (-5.13%) ⬇️

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 76a39d9...e3c7856. Read the comment docs.

throw new Error('Kuzzle.collection.updateSpecifications: collection is required');
}
if (!specifications) {
throw new Error('Kuzzle.collection.updateSpecifications: specifications is required');
Copy link
Contributor

Choose a reason for hiding this comment

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

specifications are required

throw new Error('Kuzzle.collection.validateSpecifications: collection is required');
}
if (!specifications) {
throw new Error('Kuzzle.collection.updateSpecifications: specifications is required');
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

@Aschen Aschen merged commit 6c7d805 into 6-dev Oct 8, 2018
@Aschen Aschen deleted the KZL-547/update-validate-specification-signature branch October 8, 2018 11:44
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.

4 participants