-
Notifications
You must be signed in to change notification settings - Fork 27
refactor(specs): add interface between Search and Composition #5277
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
This reverts commit c004dd2.
No code generatedIf you believe code should've been generated, please, report the issue. 📊 Benchmark resultsBenchmarks performed on the method using a mock server, the results might not reflect the real-world performance.
|
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.
nitpick comment, looks good
enableRules: | ||
$ref: '../../params/Composition.yml#/enableRules' | ||
ruleContexts: | ||
$ref: '../../params/Composition.yml#/ruleContexts' |
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.
should those, that are initially search parameters, but edited to match composition's requirement, also moved to that new Search.yml?
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.
As they are not related anymore to Search API client, I don't believe so.
The Search.yml file also contains the ref to the actual search query paramter that we used in other part of the composition API clients.
For these query paramater. available for run request for Composition, we want them to point to Composition specific parameters
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.
fine for me
🧭 What and Why
What
This PR refactors the Composition API client specs to introduce a dedicated
Search.yml
file that aggregates all Search API resource references.Composition API should continue to expose resources from other clients as we plan to grow in API you can directly call. Having a clear separation of concern will make the evolution of the Composition API client easier.
Why
$ref
calls to Search API schemas in multiple files (all parameter that are shared between run and injection:filters
,hitsPerPage
, etc...).Changes included:
specs/composition-full/common/params/Search.yml
containing all Search API–related$ref
definitions used in Composition.Injection.yml
andRunParams.yml
to reference this new file instead of directly pointing tocommon/schemas/IndexSettings.yml
,common/schemas/SearchParams.yml
(the difference means nothing for Composition API) or complexe one likecommon/schemas/SearchParams.yml#/baseSearchParamsWithoutQuery/properties/facets
🧪 Test
yarn cli build specs all
yarn cli build clients javascript