Skip to content

feat(javascript): add accountCopyIndex helper #4798

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 13 commits into from
Apr 30, 2025

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Apr 28, 2025

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-3725

Changes included:

This helper wasn't added to the generated clients as we did not had the other internal helpers that are used, but now that we have them, and customer requests this method to be added, it's pretty easy to do so!

@shortcuts shortcuts self-assigned this Apr 28, 2025
@algolia-bot
Copy link
Collaborator

algolia-bot commented Apr 28, 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 2aa72dd7a813499006e9cd0f422ba1491b11c6b5
🍃 Generated commit 3f60273ebf3e1385499b226d8b98bb87daf61033
🌲 Generated branch generated/feat/javascript-account-copy-index
📊 Benchmark results

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

Language Req/s
javascript 1602
go 1593
php 1473
csharp 1444
java 1101
python 1035
ruby 814
swift 566
scala 23

@shortcuts shortcuts marked this pull request as ready for review April 29, 2025 07:50
@shortcuts shortcuts requested a review from a team as a code owner April 29, 2025 07:50
@shortcuts shortcuts force-pushed the feat/javascript-account-copy-index branch from 92da4a7 to dec43f7 Compare April 29, 2025 07:56
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.

good idea !

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.

thanks for the test !

destinationAppID: string;

/**
* The API Key of the `destinationAppID` to write the index to, must have write ACLs.
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe be more precise with an ACL list ? we have the Required ACL section in most endpoints

Copy link
Member Author

Choose a reason for hiding this comment

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

done!

filterPromotes: true,
promote: [
{
objectIDs: ['\u00C6on Flux'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️

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.

all good for me, gg !

@shortcuts shortcuts merged commit 065093a into main Apr 30, 2025
28 checks passed
@shortcuts shortcuts deleted the feat/javascript-account-copy-index branch April 30, 2025 09:13
algolia-bot added a commit that referenced this pull request Apr 30, 2025
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Apr 30, 2025
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