-
Notifications
You must be signed in to change notification settings - Fork 22
refactor(specs): add interface to manipulate query parameter between composition API & Search API #5123
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
✔️ Code generated!
📊 Benchmark resultsBenchmarks performed on the method using a mock server, the results might not reflect the real-world performance.
|
3902472
to
14f3cbc
Compare
1b16d2c
to
a561559
Compare
a561559
to
825c35d
Compare
@@ -0,0 +1,565 @@ | |||
advancedSyntax: |
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.
this is the same as the index settings one, no? if so, we can import it
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.
This code duplication is legacy, check my next PR to see the final results
type: array | ||
items: | ||
$ref: '../../../common/schemas/IndexSettings.yml#/advancedSyntaxFeatures' | ||
description: | |
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.
same here the description is the same, is there a reason to duplicate it?
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.
This code duplication is legacy, check my next PR to see the final results
…composition API & Search API
825c35d
to
aec0c49
Compare
After rebasing, I have an error on the Dart client, happy to have insights about how to fix it. |
seems to work locally after |
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.
gg
…composition API & Search API (#5123) (generated) [skip ci] Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
…composition API & Search API (generated) algolia/api-clients-automation#5123 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
🧭 What and Why
🎟 JIRA Ticket: Work preparation for https://algolia.atlassian.net/browse/CMP-484
Composition API team is preparing update of the API clients with writes endpoints (see full list of endpoints here).
Goals of this PR is to cleanup / refactor the current Open API spec to ease the integrations of the new endpoints.
Changes included:
Create directory
specs/composition-full/common/params
with the files:Search.yml
: dedicated to link toward the actual spec for Search API specs as the same parameters are expected to be usedComposition.yml
to store query parameter dedicated to Composition API that might differs from the Search API onesFile
specs/composition-full/common/params/Search.yml
allow to have a simple interface to always refer to in the spec for Composition API.This file is responsible to maintain the link between the Comp API specs and the Search API specs (see next step for handling code duplication) to avoid all the other parts of the Comp API specs to have to do it.
This file allow to refer every parameter for files
specs/composition-full/common/schemas/components/Injection.yml
&specs/composition-full/common/schemas/requestBodies/RunParams.yml
to refer to directlySimplify file
specs/composition-full/common/schemas/components/Injection.yml
to have a better view of what parameter is allowed where.Stack PRs
Next steps
Mutualise code between Search API Client and Composition API client regarding query parameters.
Some are not yet exported to be referenced directly.
🧪 Test
yarn cli build specs all
yarn cli build clients javascript