Skip to content

Commit

Permalink
fix(specs): deleteBy returns an updatedAt response [skip-bc] (#4107)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Nov 15, 2024
1 parent b97a88b commit ab0b923
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 30 deletions.
7 changes: 2 additions & 5 deletions playground/python/app/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ def main():
print("client initialized", client)

try:
resp = client.save_objects("foo", [{"foo": "bar"}])
print(resp)

for r in resp:
client.wait_for_task(index_name="foo", task_id=r.task_id)
resp = client.delete_by(index_name="foo", delete_by_params={"filters": "brand:name"})
print(resp.to_json())
finally:
client.close()

Expand Down
48 changes: 24 additions & 24 deletions playground/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion specs/search/paths/objects/deleteBy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ post:
$ref: '../../common/schemas/DeleteByParams.yml#/deleteByParams'
responses:
'200':
$ref: '../../../common/responses/DeletedAt.yml'
$ref: '../../../common/responses/UpdatedAt.yml'
'400':
$ref: '../../../common/responses/BadRequest.yml'
'402':
Expand Down

0 comments on commit ab0b923

Please sign in to comment.