We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PR #443 broke batch.delete_objects() with an "AND" operand at the root.
broke batch.delete_objects()
We can no longer run queries of the form:
with client.batch.configure() as batch: batch.delete_objects( class_name="Page", where={ "operator": "And", "operands": [ {"path": ["nonce"], "operator": "NotEqual", "valueText": "XH0RZ7W2"}, { "path": ["author", "Author", "id"], "operator": "Equal", "valueText": "765aba1b-ba5b-53db-a255-e236f4a54397", }, ], }, tenant='exq596omhak4osks59w9df3v', )
changing
payload = { "match": { "class": _capitalize_first_letter(class_name), - "where": _clean_delete_objects_where(where), + "where": where, }, "output": output, "dryRun": dry_run, }
in crud_batch.py fixes the issue.
This is the error
ValueError: 'value' field is either missing or incorrect: {'operator': 'And', 'operands': [{'path': ['nonce'], 'operator': 'NotEqual', 'valueText': 'XH0RZ7W2'}, {'path': ['author', 'Author', 'id'], 'operator': 'Equal', 'valueText': '765aba1b-ba5b-53db-a255-e236f4a54397'}]}. Valid values are: {'valueStringArray', 'valueIntArray', 'valueTextArray', 'valueString', 'valueNumber', 'valueText', 'valueDate', 'valueGeoRange', 'valueBoolean', 'valueInt', 'valueNumberArray', 'valueBooleanArray'}.
The text was updated successfully, but these errors were encountered:
Fixed by #479 -- (will be released through the next minor patch)
Sorry, something went wrong.
tsmith023
No branches or pull requests
PR #443
broke batch.delete_objects()
with an "AND" operand at the root.We can no longer run queries of the form:
changing
in crud_batch.py fixes the issue.
This is the error
The text was updated successfully, but these errors were encountered: