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

feat(specs): add abtesting specs and client #76

Merged
merged 11 commits into from
Jan 13, 2022

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Jan 11, 2022

🧭 What and Why

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

Changes included:

  • Add specs and JavaScript client for abtesting endponts
  • Fix wrapped parameters (feat(js): avoid wrapping bodyParams #77) for the Query Suggestions client
  • Update clients/README.md
  • Add playground for the Query Suggestions client

🧪 Test

CI :D

@shortcuts shortcuts marked this pull request as ready for review January 12, 2022 12:09
@shortcuts shortcuts requested review from a team and damcou and removed request for a team January 12, 2022 12:09
@shortcuts shortcuts self-assigned this Jan 12, 2022
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.

Very nice !

openapitools.json Outdated Show resolved Hide resolved
Comment on lines +15 to +16
taskID:
$ref: ../../common/parameters.yml#/taskID
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you remove this one and use the common directly in the spec please ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, forgot to fix that

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually I remember why I did that, this in between reference is required when generating client since the path is too deep.

I wonder if this is a limitation of being unable to use built specs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I doubt that adding ../ makes the path too deep, and it's never mentioned in the openapi spec

Copy link
Collaborator

Choose a reason for hiding this comment

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

It works without the in between ref for me

Copy link
Member Author

Choose a reason for hiding this comment

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

Weird, mine fails 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

with just $ref: ../../common/parameters.yml#/taskID ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

both files are at the same depth there is no reason to fail in one place and not the other

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, I get Could not find taskID in contents of ./paths/../common/parameters.yml

specs/common/parameters.yml Show resolved Hide resolved
@shortcuts shortcuts mentioned this pull request Jan 12, 2022
@shortcuts shortcuts merged commit 5ba87a0 into main Jan 13, 2022
@shortcuts shortcuts deleted the feat/APIC-201/abtesting-specs branch January 13, 2022 08:15
shortcuts added a commit that referenced this pull request Apr 22, 2022
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.

2 participants