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): fix missing params and types #772

Merged
merged 5 commits into from
Jul 4, 2022
Merged

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Jul 1, 2022

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-553

Changes included:

There's a lot of spec changes that has been implemented on some clients but not been documented. In this PR, I've took a look at a few of them to find some fixes to apply, but also find some myself.

I'll split the PR if it becomes too big

🧪 Test

CI :D

@shortcuts shortcuts self-assigned this Jul 1, 2022
@netlify
Copy link

netlify bot commented Jul 1, 2022

Deploy Preview for api-clients-automation ready!

Name Link
🔨 Latest commit 5f616d5
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62c2d4deb545a80009398965
😎 Deploy Preview https://deploy-preview-772--api-clients-automation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@shortcuts
Copy link
Member Author

shortcuts commented Jul 1, 2022

oops amend the wrong commit good

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jul 4, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

@shortcuts shortcuts requested review from a team, damcou and millotp and removed request for a team July 4, 2022 09:30
@shortcuts shortcuts marked this pull request as ready for review July 4, 2022 09:30
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

nothing to add on the specs, waiting on the codegen :)

@@ -58,5 +58,361 @@
"forwardToReplicas": "true"
}
}
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice test !

@shortcuts shortcuts enabled auto-merge (squash) July 4, 2022 09:53
@shortcuts shortcuts requested a review from millotp July 4, 2022 09:53
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

The generated looks good, one last comment !

specs/abtesting/common/parameters.yml Outdated Show resolved Hide resolved
- $ref: '#/searchFiltersNestedArrayString'
x-categories:
- Advanced
- $ref: '#/listOfSearchFilters'
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's too bad that all of those filters are the same type but different object, it means they are not compatible in java just because we want a different description

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup indeed, but there's also a benefit of doing this is that you call the constructor with the same name of the object you are trying to build, while with a single object it would be something like SearchFilters

@shortcuts shortcuts requested a review from millotp July 4, 2022 11:54
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

Great job !

@shortcuts shortcuts merged commit a11e84d into main Jul 4, 2022
@shortcuts shortcuts deleted the fix/specs-params branch July 4, 2022 12:17
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