Skip to content

feat(javascript): allow legacy signature for search method #665

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 8 commits into from
Jun 14, 2022

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Jun 10, 2022

🧭 What and Why

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

Changes included:

As discussed during our tech syncs with the fx team, we've decided to support the legacy signature for the search method and handle the logic on our side.

In this PR, we implement the logic in the client-search, algoliasearch and algoliasearch-lite packages.

As algoliasearch inherits of methods from the client-search package, and algoliasearch-lite is a lighter copy of it, I've added tests in this client to ensure the alias works smoothly.

🧪 Test

  • CI :D
  • Jest: yarn workspace @experimental-api-clients-automation/algoliasearch test
  • Playground: yarn workspace javascript-playground start:algoliasearch

@shortcuts shortcuts self-assigned this Jun 10, 2022
@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 52443a4
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62a844ea176ef40008744154

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jun 10, 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 Haroenv, a team, eunjae-lee and millotp and removed request for a team June 10, 2022 11:05
@shortcuts shortcuts marked this pull request as ready for review June 10, 2022 11:06
@shortcuts shortcuts force-pushed the feat/javascript-allow-legacy-search branch from 2f7f48d to d827f95 Compare June 10, 2022 11:21
@shortcuts shortcuts force-pushed the feat/javascript-allow-legacy-search branch from d827f95 to ca56545 Compare June 10, 2022 13:13
@shortcuts shortcuts changed the base branch from main to fix/js-split-template-logic June 10, 2022 13:14
Base automatically changed from fix/js-split-template-logic to main June 10, 2022 13:46
@shortcuts shortcuts force-pushed the feat/javascript-allow-legacy-search branch from ca56545 to 0d0450c Compare June 10, 2022 13:47
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.

I hate it great job !

@shortcuts
Copy link
Member Author

I hate it great job !

Ahaha sacrifices!

@shortcuts shortcuts requested review from millotp and Haroenv June 13, 2022 15:17
millotp
millotp previously approved these changes Jun 13, 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.

Looks great !

Haroenv
Haroenv previously approved these changes Jun 14, 2022
@shortcuts shortcuts dismissed stale reviews from Haroenv and millotp via 0856338 June 14, 2022 08:10
@shortcuts shortcuts requested review from millotp and Haroenv June 14, 2022 08:21
@shortcuts shortcuts enabled auto-merge (squash) June 14, 2022 08:25
@shortcuts shortcuts merged commit 98b40e8 into main Jun 14, 2022
@shortcuts shortcuts deleted the feat/javascript-allow-legacy-search branch June 14, 2022 08:34
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