You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
133: Create get_update fn to get one update status r=curquiza a=icyJoseph
Hi,
Having fun using this SDK, but I reckon a function to get the status of one single update is missing.
When I read through https://docs.meilisearch.com/reference/api/updates.html#get-an-update-status, I see for example:
```javascript
client.index('movies').getUpdateStatus(1)
```
Where the argument of `getUpdateStatus`, I guess, is the update id based on what the cURL version does:
```bash
curl \
-X GET 'http://localhost:7700/indexes/movies/updates/1'
```
Which mirrors the MeiliSearch `/indexes/:index_uid/updates/:updateId` endpoint.
The rather unlucky thing is that to do the same with the Rust SDK it is not sufficient, not possible, to use the update id.
```rust
let status: Status = progress.get_status().await.unwrap();
```
The above requires access to the `progress` instance, which is not possible in my case. Regardless of any specific use case, _**it is my opinion**_ that for completeness sake, the `get_update` function, defined in this PR, is needed to complete the SDK. Of course this can be challenged, or perhaps there's a reason to why such function does not exist.
Thanks for the SDK! Great Job!
Co-authored-by: Joseph Chamochumbi <[email protected]>
0 commit comments