-
Notifications
You must be signed in to change notification settings - Fork 21
docs: update send data
guide
#697
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
Conversation
✅ Deploy Preview for api-clients-automation ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good !
<TabItem value="javascript"> | ||
|
||
```js | ||
// The records retrieved by any of your data sources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to repeat the documentation here ? Maybe a link is enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The guide(s) should (later) be more exhaustive, so this small snippet should be enough to just show the new usage.
Ideally this page will help user gets redirected to guides etc. In this page we have the mention of the previous method names, so it pops in the search
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, the only thing a little bit weird is to have the same code sample for batch at 2 different places. Do we really need to keep the "send data to Algolia" guide ?
(see this comment: #697 (comment)) For now the snippet and guides are pretty similar, but the guide should evolve (like an other example with a batch of 10k records (limit is 1k/ The |
Co-authored-by: Pierre Millot <[email protected]>
Ok then, let's go 🚀 |
List<BatchOperation> requests = new ArrayList<>(); | ||
|
||
for (Map<String, Object> record : records) { | ||
BatchOperation request = new BatchOperation(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this snippet too 🙏 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooops! done here 01a6ced
🧭 What and Why
🎟 JIRA Ticket:
Changes included:
send data to Algolia
to use thebatch
method instead ofsaveObject
saveObjects
methodSide changes:
batch
methodbatch
method (eachaction
)🧪 Test
Netlify preview