Commit Graph

96 Commits

Author SHA1 Message Date
henrinikku 909764ccf2 SERVER-86889 Add mechanism to make API compatibility check ignore privileges in access checks
(cherry picked from commit 773ac477426b4d1220c8d35627f8bb6eec62740d)

GitOrigin-RevId: c9429dccc725cbe8519fb749f1ff6c81d54443eb
2024-02-28 18:32:22 +00:00
Denis Grebennicov ace6336b5b SERVER-77080 Introduce query settings into explain output for aggregation
This patch makes sure that corresponding query settings appear in the
explain of the aggregate commands, if those commands have query settings
set. This includes adding 'querySettings' to the aggregate command idl
as well as propagating the query settings from mongos to the shards in
sharded cluster deployment.

GitOrigin-RevId: 9ad100fc9ecb2053db6e07950bd988a0deef1180
2023-12-13 21:02:31 +00:00
Denis Grebennicov 99d4911e13 SERVER-77469 Propagate QuerySettings from mongos to the shards
Before this change, query settings were only looked up on mongod, which means that query settings will not be applied to find queries that were modified on mongos. In order to fix this issue, query settings will be looked up on mongos in sharded cluster and on mongod in replica set deployments. Upon the lookup, query settings will be propagated to the shards as command's new 'querySettings' attribute (marked as unstable).

In addition, as a part of this change, the encoding of a CanonicalQuery into a QueryShapeString will omit the 'hint' field if it is made redundant by the matching query setting.
2023-11-15 10:45:37 +00:00
auto-revert-processor 71e55df5b3 Revert "SERVER-77469 Propagate QuerySettings from mongos to the shards"
This reverts commit 98d757f948.
2023-11-13 22:09:04 +00:00
Denis Grebennicov 98d757f948 SERVER-77469 Propagate QuerySettings from mongos to the shards
Before this change, query settings were only looked up on mongod, which means that query settings will not be applied to find queries that were modified on mongos. In order to fix this issue, query settings will be looked up on mongos in sharded cluster and on mongod in replica set deployments. Upon the lookup, query settings will be propagated to the shards as command's new 'querySettings' attribute (marked as unstable).

In addition, as a part of this change, the encoding of a CanonicalQuery into a QueryShapeString will omit the 'hint' field if it is made redundant by the matching query setting.
2023-11-13 14:13:26 +00:00
auto-revert-processor d55c78bd72 Revert "SERVER-77469 Propagate QuerySettings from mongos to the shards"
This reverts commit 39dd12e256.
2023-11-11 02:26:11 +00:00
Denis Grebennicov 39dd12e256 SERVER-77469 Propagate QuerySettings from mongos to the shards
Before this change, query settings were only looked up on mongod, which means that query settings will not be applied to find queries that were modified on mongos. In order to fix this issue, query settings will be looked up on mongos in sharded cluster and on mongod in replica set deployments. Upon the lookup, query settings will be propagated to the shards as command's new 'querySettings' attribute (marked as unstable).

In addition, as a part of this change, the encoding of a CanonicalQuery into a QueryShapeString will omit the 'hint' field if it is made redundant by the matching query setting.
2023-11-10 21:10:15 +00:00
James Harrison d169f5ea1f SERVER-78877 Make find/count maxTimeMS consistent with aggregate equivalent 2023-10-19 13:12:48 +00:00
William Qian 992d7f35d1 SERVER-79106 Purge from IDL ignore lists entries from before lastLTS 2023-08-28 20:35:35 +00:00
Peter Volk f3bc784dc8 SERVER-80245 Update comments in IDL compatibility checker to reference Query team instead of Replication team 2023-08-23 15:41:22 +00:00
Samy Lanka 946cd9f135 SERVER-79361 Make the IDL compatibility checker script stop parsing feature flags in IDL files 2023-08-21 19:34:22 +00:00
Yuhong Zhang 8de45f7d9f SERVER-77382 Skip checking the IDL validator fields for time-series timeField and metaField 2023-07-21 19:00:39 +00:00
Romans Kasperovics ca7dcf91d9 SERVER-74036 Remove recordPreImages collection option
Remove "recordPreImages" collection option related
code once 7.0 branches out and becomes last-lts.
2023-07-20 10:53:42 +00:00
Arun Banala adc2eea411 SERVER-65369 Remove $_generateV2ResumeTokens parameter from aggregate command after 7.0 2023-05-03 00:18:32 +00:00
Naama Bareket 6c2987acbf SERVER-74166: Mark 'temp' field in create command as stable to support $out flow 2023-04-10 15:24:43 +00:00
kauboy26 93dc9da23e SERVER-72788 Construct sub-batching bulkWrite command to send to shards. 2023-03-17 15:49:39 +00:00
Frederic Vitzikam 8bea119833 SERVER-72092 Add update/delete op type to bulkWrite command 2023-02-22 19:33:54 +00:00
Projjal Chanda 7050aed3ed SERVER-69559: Change stability of upsertSupplied field to internal 2023-02-18 02:17:04 +00:00
seanzimm 233b11e209 SERVER-73138 Support IDL Variants of Multiple Structs 2023-02-03 10:25:46 +00:00
Cheahuychou Mao bb36f80204 SERVER-68757 SERVER-68758 SERVER-69800 (1/2) Add an aggregate stage for calculating read and write distribution metrics from sampled queries 2023-01-26 20:20:04 +00:00
Cheahuychou Mao a859249940 SERVER-73177 Make API compatibility check ignore access checks introduced by new aggregation stages 2023-01-23 18:56:22 +00:00
Vesselina Ratcheva 88aedb81e1 SERVER-71314 Create bulkWrite IDL and command stub 2022-12-06 06:24:01 +00:00
Faustoleyva54 91c6120015 SERVER-71601 Set an upper limit for bucketRoundingSeconds and bucketMaxSpanSeconds in create and collMod commands 2022-12-02 20:57:40 +00:00
George Wangensteen 47895b611f SERVER-71409 Generate generic argument and reply fields as c++ structures 2022-11-30 16:34:44 +00:00
Mindaugas Malinauskas aa15763f05 SERVER-60919 Remove oplog based change stream pre-image storage 2022-09-14 15:06:34 +00:00
Alexander Neben 97ac02fa50 SERVER-68593 Disable low value python warnings 2022-09-02 22:55:09 +00:00
Kaloian Manassiev 0c95addd61 SERVER-68826 Move basic_types into server_base 2022-08-26 16:10:00 +00:00
Vesselina Ratcheva 17e0097a3a SERVER-68621 Fix internal fields erroneously marked as stable 2022-08-25 01:27:47 +00:00
Fernando Lisboa 408c0cfc46 SERVER-61822 Create new command listDatabasesForAllTenants 2022-08-11 23:30:22 +00:00
Huayu Ouyang c83e20e55a SERVER-68644 Update Stable API README 2022-08-11 19:49:09 +00:00
Rui Liu 10d1fe34d9 SERVER-61685 Remove isTimeseriesNamespace flag for collMod 2022-08-02 18:25:36 +00:00
Rui Liu 62d2777a3e SERVER-65002 Change 'unstable' boolean to 'stability' enum and allow 'internal' stability 2022-08-01 11:19:08 +00:00
Vesselina Ratcheva 6262d18688 SERVER-65004 Make it harder to add a stable field/change an unstable field to stable in the IDL compatibility checker 2022-07-28 20:14:58 +00:00
Reilly McBride f5d681c10a SERVER-67200 Add a new range QueryType to EncryptedFieldConfig 2022-07-08 18:35:10 +00:00
Vesselina Ratcheva 835f85779c SERVER-64089 Ignore checking fields in IGNORE_UNSTABLE_LIST in IDL compatibility checker 2022-06-23 22:26:32 +00:00
Sara Golemon 4fab61e9c5 SERVER-66360 Remove multi-user authentication support 2022-05-24 05:17:25 +00:00
Randolph Tan 77ffcb1d04 SERVER-6491 Make dropIndexes take the distlock so it can never run in parallel with shardCollection 2022-04-20 03:51:41 +00:00
Varun Ravichandran ceb27a1820 SERVER-61802: Create changeStreamOptions cluster server parameter 2022-04-12 01:15:19 +00:00
Huayu Ouyang 1abaec7ea9 SERVER-64821 Change unstable to true for fields that are not meant to be included in the stable API 2022-03-31 22:37:06 +00:00
James Wahlin 6e8396defc SERVER-63850 Add the count command to API version 1 2022-03-14 21:10:54 +00:00
Sviatlana Zuiko 00553eb233 Revert "SERVER-63850 Add the count command to API version 1"
This reverts commit 1ca10441ee.
2022-03-14 12:32:56 +00:00
James Wahlin 1ca10441ee SERVER-63850 Add the count command to API version 1 2022-03-12 16:32:57 +00:00
Huayu Ouyang d4af42c0e6 SERVER-63842 Improve error messages in IDL Compatibility Checker 2022-03-08 16:33:51 +00:00
Robert Guo d93689f1ea SERVER-64301 ignore third-party IDLs in stable API check 2022-03-07 21:25:20 +00:00
Benety Goh eaf7eb2f1b SERVER-63748 complex access checks for aggregation stages should be separate from default (no aggregation stage defined) 2022-03-05 00:46:34 +00:00
Benety Goh 9865999146 SERVER-63748 extract complex access logic from check_security_access_checks() 2022-03-04 21:47:24 +00:00
Ted Tuckman f25675cc8e SERVER-62535 Allow sharded aggregation to return two cursors 2022-03-02 23:11:24 +00:00
ali-mir a259083f11 SERVER-62569 Handle bson_serialization_type for ArrayType in IDL Compatibility Checker script 2022-02-02 23:46:08 +00:00
Romans Kasperovics 58f041625b SERVER-56387 Check optionalBool-typed IDL fields for backward compatibility 2022-01-14 01:15:48 +00:00
Romans Kasperovics 9ce5ff8c50 SERVER-60349 Allow adding optionalBool fields in IDL compatibility check 2022-01-06 22:47:00 +00:00