-
Notifications
You must be signed in to change notification settings - Fork 17
Add collection:update and deprecate collection:updateMapping #517
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also the update method can also update the collection settings.
And usually we refere about mappings in the plural form
# updateMapping | ||
|
||
<SinceBadge version="1.7.1" /> | ||
<DeprecatedBadge version="2.1.0"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is relevant since any version of the SDK can be used with any version of Kuzzle so if I use the latest SDK version but Kuzzle v 2.0.1 this method is not deprecated.
IMHO we should keep the API deprecation in Kuzzle. Also with the deprecation module we talked about, users will receives messages from Kuzzle if they use a deprecated method in the SDK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method is indeed deprecated, so imo it should be documented either in SDKs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you should at least put version="Kuzzle 2.1.0"
# [7.3.0](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.3.0) (2020-07-23) #### Bug fixes - [ [#532](#532) ] Encode URI parameters when using the HTTTP protocol ([scottinet](https://github.com/scottinet)) - [ [#516](#516) ] Fix query string construction ([Yoann-Abbes](https://github.com/Yoann-Abbes)) #### New features - [ [#526](#526) ] Add typescript definitions for Auth controller ([Aschen](https://github.com/Aschen)) - [ [#524](#524) ] Support ms:mexecute ([Leodau](https://github.com/Leodau)) - [ [#522](#522) ] Add bulk:deleteByQuery ([Yoann-Abbes](https://github.com/Yoann-Abbes)) - [ [#519](#519) ] Add document:updateByQuery ([Yoann-Abbes](https://github.com/Yoann-Abbes)) #### Enhancements - [ [#517](#517) ] Add collection:update and deprecate collection:updateMapping ([Yoann-Abbes](https://github.com/Yoann-Abbes)) - [ [#514](#514) ] Able to execute document search as GET http method ([Yoann-Abbes](https://github.com/Yoann-Abbes)) ---
What does this PR do?
This PR adds
collection:update
to the sdk and deprecates the oldercollection:updateMapping
.How should this be manually tested?
Create an index/collection and update its mapping by calling the
collection:update
methodTests