[CDRIVER-3478] Rely on _mongoc_write_command_execute_idl to report client-side error for unsupported arrayFilters option Created: 08/Jan/20  Updated: 10/Feb/23

Status: Backlog
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: low-hanging-fruits, new-eng, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-2664 Raise client error if arrayFilters op... Closed
is related to CDRIVER-3400 support ability to pass hint to update Closed

 Description   

Something else I noticed while implementing CDRIVER-3400 is that _mongoc_collection_update_or_replace's error reporting for specifying arrayFilters when unsupported by the selected server appears to be redundant in light of existing logic in _mongoc_write_command_execute_idl (which is used for collation). That code dates back to c4af4aa for CDRIVER-2664.

We should see if setting the mongoc_write_command_t.flags.has_array_filters in _mongoc_collection_update_or_replace would allow us to delete the error reporting code in that function.


Generated at Wed Feb 07 21:18:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.