Skip to content

Conversation

Yoann-Abbes
Copy link
Contributor

@Yoann-Abbes Yoann-Abbes commented May 28, 2020

What does this PR do?

This PR adds collection:update to the sdk and deprecates the older collection:updateMapping.

How should this be manually tested?

Create an index/collection and update its mapping by calling the collection:update method
Tests

Copy link
Contributor

@Aschen Aschen left a 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"/>
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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"

@Yoann-Abbes Yoann-Abbes requested a review from Aschen June 5, 2020 09:02
@Aschen Aschen merged commit 06c6fcd into 7-dev Jun 10, 2020
@Aschen Aschen deleted the add-collection-update branch June 10, 2020 08:03
@scottinet scottinet mentioned this pull request Jul 23, 2020
scottinet added a commit that referenced this pull request Jul 23, 2020
# [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))
---
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