Skip to content

Conversation

@Yoann-Abbes
Copy link
Contributor

@Yoann-Abbes Yoann-Abbes commented Dec 16, 2020

What does this PR do?

Since Kuzzle 2.8.0 supports the "lang" parameter to handle Koncorde filters, we need to add it in SDKs for the API methods who accept it.

#570

How should this be manually tested?

  • Step 1 :
  • Step 2 :
  • Step 3 :
    ...

Other changes

Boyscout

Update ancient links

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.

Can you add an example in the existing snippet for document:search at least ?
To ensure it's working with search result next method but also to show the feature to users


The search query to apply to API keys content, using [ElasticSearch Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/query-dsl.html) syntax.

<SinceBadge version="change-me"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<SinceBadge version="change-me"/>
<SinceBadge version="auto-version"/>

Copy link
Contributor

Choose a reason for hiding this comment

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

Other badges must be updated as well

@scottinet scottinet changed the title Support "lang" parameter for Konkorde filters Support "lang" parameter for Koncorde filters Dec 17, 2020
@codecov
Copy link

codecov bot commented Dec 24, 2020

Codecov Report

Merging #575 (c030418) into 7-dev (3498e27) will not change coverage.
The diff coverage is 40.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##            7-dev     #575   +/-   ##
=======================================
  Coverage   87.98%   87.98%           
=======================================
  Files          32       32           
  Lines        1456     1456           
  Branches      259      259           
=======================================
  Hits         1281     1281           
  Misses        125      125           
  Partials       50       50           
Impacted Files Coverage Δ
src/controllers/Auth.ts 75.64% <0.00%> (ø)
src/controllers/Document.ts 71.59% <33.33%> (ø)
src/controllers/Security.js 97.03% <100.00%> (ø)

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 3498e27...c030418. Read the comment docs.

console.log(`Successfully deleted ${deleted.length} documents`);
} catch (error) {
console.error(error.message);
} No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

missing newline

template: print-result-successes
expected:
- "{ _id: 'document_1', _version: 2, status: 200 }"
- "{ _id: 'document_2', _version: 2, status: 200 }" No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

missing newline

@Yoann-Abbes Yoann-Abbes requested a review from rolljee December 28, 2020 16:20
searchApiKeys(
query: JSONObject = {},
options: { from?: number, size?: number } = {}
options: { from?: number, size?: number, lang?: string } = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing parameter documentation in the method description

Yoann-Abbes and others added 4 commits December 29, 2020 15:28
Co-authored-by: Adrien Maret <amaret93@gmail.com>
…s-koncorde.js

Co-authored-by: Adrien Maret <amaret93@gmail.com>
…s-koncorde.js

Co-authored-by: Adrien Maret <amaret93@gmail.com>
Co-authored-by: Adrien Maret <amaret93@gmail.com>
Yoann-Abbes and others added 7 commits December 29, 2020 15:29
Co-authored-by: Adrien Maret <amaret93@gmail.com>
Co-authored-by: Adrien Maret <amaret93@gmail.com>
Co-authored-by: Adrien Maret <amaret93@gmail.com>
Co-authored-by: Adrien Maret <amaret93@gmail.com>
Co-authored-by: Adrien Maret <amaret93@gmail.com>
Co-authored-by: Adrien Maret <amaret93@gmail.com>
Co-authored-by: Adrien Maret <amaret93@gmail.com>
@Yoann-Abbes Yoann-Abbes requested a review from Aschen December 29, 2020 14:41
@Njuelle Njuelle merged commit bcf3054 into 7-dev Jan 4, 2021
@Njuelle Njuelle deleted the support-lang-parameter-for-konkorde-filters branch January 4, 2021 09:09
@Aschen Aschen mentioned this pull request Jan 4, 2021
Aschen added a commit that referenced this pull request Jan 4, 2021
# [7.4.8](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.4.8) (2021-01-04)


#### Bug fixes

- [ [#573](#573) ] Fix types for Document and CollectionMappings   ([Aschen](https://github.com/Aschen))

#### Enhancements

- [ [#575](#575) ] Support "lang" parameter for Koncorde filters   ([Yoann-Abbes](https://github.com/Yoann-Abbes))
- [ [#579](#579) ] Add event type to document notification   ([Aschen](https://github.com/Aschen))
- [ [#578](#578) ] Convert bulk controller to TS   ([Aschen](https://github.com/Aschen))
- [ [#574](#574) ] Adds a specific error when the request is too big to use the GET verb    ([Aschen](https://github.com/Aschen))
---
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.

5 participants