Skip to content

fix(specs): abtest v3 naming conflict with Metric type #5090

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

Merged
merged 5 commits into from
Jul 15, 2025

Conversation

cdhawke
Copy link
Contributor

@cdhawke cdhawke commented Jul 10, 2025

🧭 What and Why

image

The typescript types being generated for the v3 abtesting client don't match the object definitions in the openapi spec file. We think this is due to a naming collision when generating the types - Metric is defined elsewhere and being reused improperly.

Changes included:

  • rename the object reference in the spec

🧪 Test

N/A

@cdhawke cdhawke requested a review from leonardogavaudan July 10, 2025 17:20
@cdhawke cdhawke self-assigned this Jul 10, 2025
@cdhawke cdhawke requested a review from a team as a code owner July 10, 2025 17:20
@cdhawke cdhawke requested review from Fluf22 and shortcuts July 10, 2025 17:20
@algolia-bot
Copy link
Collaborator

algolia-bot commented Jul 10, 2025

💥 Breaking changes detected !!

Either this PR or a previous PR not released yet introduced breaking changes, be careful when merging.
You can find the details in the 'client java@17' CI job.

✔️ Code generated!

Name Link
🪓 Triggered by 090b2544c0c20f5fcce3ed9f0b354717d1869744
🍃 Generated commit 0bf012b708c0f41c9dd17e831a8efddf2e9f6e1d
🌲 Generated branch generated/fix/abtests/spec
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
go 1736
javascript 1675
php 1489
csharp 1347
java 1087
python 1085
ruby 810
swift 370
scala 23

@cdhawke cdhawke changed the title fix(spec): abtest v3 naming conflict with Metric type fix(specs): abtest v3 naming conflict with Metric type Jul 10, 2025
@shortcuts
Copy link
Member

💥 Breaking changes detected !!

Either this PR or a previous PR not released yet introduced breaking changes, be careful when merging.
You can find the details in the 'client java@17' CI job.

✔️ Code generated!

Name Link
🪓 Triggered by b4f302a691b431393a1e582399aa478c49b59f44
🍃 Generated commit 10e13eb58930f9ad332a8ecea8ee8cb80343463b
🌲 Generated branch generated/fix/abtests/spec
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
go 1774
javascript 1663
php 1476
csharp 1304
python 1071
java 1057
ruby 773
swift 662
scala 23

@cdhawke does the generation looks correct here?

@cdhawke
Copy link
Contributor Author

cdhawke commented Jul 10, 2025

@shortcuts - no, looks like it was still reusing one of the names inadvertently. I'm trying to give them distinct names to map better and avoid the collisions. let's see after this next run

@cdhawke
Copy link
Contributor Author

cdhawke commented Jul 14, 2025

@shortcuts I think it looks okay now...

@cdhawke cdhawke requested a review from leonardogavaudan July 14, 2025 12:04
Copy link
Contributor

@leonardogavaudan leonardogavaudan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

indeed good catch!

@shortcuts shortcuts enabled auto-merge (squash) July 15, 2025 08:21
@shortcuts shortcuts merged commit fe3312f into main Jul 15, 2025
29 checks passed
@shortcuts shortcuts deleted the fix/abtests/spec branch July 15, 2025 08:51
algolia-bot added a commit that referenced this pull request Jul 15, 2025
…ated) [skip ci]

Co-authored-by: Christopher Hawke <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Jul 15, 2025
algolia/api-clients-automation#5090

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Christopher Hawke <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
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.

4 participants