Skip to content
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

fix(specs): recommendHit is generic #4358

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

fix(specs): recommendHit is generic #4358

wants to merge 2 commits into from

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Jan 14, 2025

🧭 What and Why

🎟 JIRA Ticket:

Make the RecommendHit generic.

@millotp millotp self-assigned this Jan 14, 2025
@millotp millotp requested a review from a team as a code owner January 14, 2025 13:52
@millotp millotp requested review from Fluf22 and shortcuts January 14, 2025 13:52
@algolia-bot
Copy link
Collaborator

algolia-bot commented Jan 14, 2025

🪓 The generated code will be pushed at the end of the CI.

Action triggered by commit 753c7331fffcc5945324af7f58375f9b80c4a0db.

Please do not push any generated code to this pull request.

Comment on lines +49 to +52
bundle.put("defaultGeneric", "Hit.class");
if (this.client.equals("recommend")) {
bundle.put("defaultGeneric", "RecommendHit.class");
}
Copy link
Member

Choose a reason for hiding this comment

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

should it be controlled at the spec level with something like x-defaultGeneric maybe? I guess that's rare enough to not optimize it

}
// we don't know in which order the model will come, so we iterate multiple times to make sure
// models at any depth are propagated
for (int i = 0; i < 5; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

🧙🏻

@millotp millotp marked this pull request as draft January 14, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants