Commit Graph

425 Commits

Author SHA1 Message Date
wbradmoore
30884c339e SERVER-86977: Make redact a required field for set parameters and update all existing parameters (#20435)
GitOrigin-RevId: a6ede4e300909230b3ec9cc47ea71a9abedde65b
2024-03-27 00:42:44 +00:00
Henri Nikku
a5b0ac198a SERVER-86371 Don't allow unstable required fields in stable API (#20203)
GitOrigin-RevId: 82b3c3606bdbd7ee3a623f82167bf7a076985d40
2024-03-21 19:50:22 +00:00
mathisbessamdb
bcdc8a3374 SERVER-88008 Call (de)serializeForCatalog directly in IDL-generated code (#20069)
GitOrigin-RevId: cacf7683b234a152874b1373c9802f61a5e39792
2024-03-19 20:57:10 +00:00
Ivan Fefer
34c5263554 SERVER-88073 Correctly use override and virtual in IDL generator (#20046)
GitOrigin-RevId: 8e8f54ee02a977ee87072ca3920f33c313b4c71a
2024-03-16 21:37:47 +00:00
Didier Nadeau
809d66eb98 SERVER-87261 Remove nonPrefixed field from SerializationContext (#19872)
GitOrigin-RevId: bfbae7ae37b0fabd5ce097120e81b63a0a325980
2024-03-14 17:39:07 +00:00
Henri Nikku
e89978a2d8 SERVER-86889 Add mechanism to make API compatibility checker ignore privileges in access checks (#19349)
GitOrigin-RevId: f3ae6c01bc9450fa01f60700c10dc00dcbd70966
2024-02-28 17:43:56 +00:00
seanzimm
5d90fc8482 SERVER-71899: Mark bulkWrite command fields as stable (#18843)
GitOrigin-RevId: 91a642924a3ee2c8a96175d626e014897339141d
2024-02-16 15:01:28 +00:00
Patrick Freed
56b57bd0d6 SERVER-42057 Generate setters for chained struct fields (#18847)
GitOrigin-RevId: 383ff48ceb858158ed85011b9021c4aca90626fe
2024-02-09 02:03:36 +00:00
Alex Li
c7589430f7 SERVER-81119 Add is_view to all IDL types (#18690)
GitOrigin-RevId: 433dd9c97c32db1e50a733c77f3df3fbad4ad1d1
2024-02-09 00:43:13 +00:00
Alex Li
915b84c819 SERVER-81119 Add support for is_view field in IDL types (#18623)
GitOrigin-RevId: f283bbeb8710a57d68d1acf457fd4aa5c61dd0aa
2024-02-03 03:11:18 +00:00
Billy Donahue
2d76a26618 SERVER-83513 use trie to parse IDL variant-of-struct
GitOrigin-RevId: 3c2856b528157b71bd3a0e6a0e69daf966ac98b5
2024-02-02 17:56:34 +00:00
Sophia Tan
d1aedcec25 SERVER-84750 (Part 3) Stop parsing expectPrefix in command body in IDL-generated code (#18554)
GitOrigin-RevId: a940f4b68b34fe20a9705f2ba24008989bc8f8c5
2024-02-02 09:07:10 +00:00
Trevor
ebd80c333f SERVER-80018 add bazel formatting requirement to commit queue (#18477)
GitOrigin-RevId: 93b769fba497837206bcd1045a5cead0ddb36d08
2024-01-30 08:39:31 +00:00
Billy Donahue
741c19f225 SERVER-82940 use trie for parsing IDL string enums
GitOrigin-RevId: d9c2db069faddf633cdf7eb81ca13ea1ababf7eb
2024-01-30 01:23:50 +00:00
Billy Donahue
9fc3ecd79b SERVER-85497 use gen_trie to create whole lookup functions (#18284)
GitOrigin-RevId: 8823506176f91fc758644e14a6c4cfd0628702e3
2024-01-25 22:23:46 +00:00
Gabriel Marks
5d61682b27 SERVER-76856 Ensure cluster parameters behave the same between FCV version and matching binary version (#17575)
GitOrigin-RevId: a403c44ba837a172ce8053ee5adc150d5fd2fd1a
2024-01-11 03:28:24 +00:00
Billy Donahue
dd7b44a140 SERVER-83715 reserve document sequence vector (#17817)
GitOrigin-RevId: f0f89fb4670ae0bddd7f114825b8aa269fc25316
2024-01-02 17:53:26 +00:00
Mathis Bessa
5077531909 SERVER-82352 Replace tenantId and SerializationContext with ValidatedTenancyScope in IDLParserContext constructor
GitOrigin-RevId: 08aee09649420758a33fa005d81032956c28e7f7
2023-12-18 22:37:27 +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
Vinod Kumar
0b1beeea95 SERVER-82900 Removed mongo/stdx/variant.h and switched to std::variant
GitOrigin-RevId: 2aa03564ad22ec0b4a3517924ec2cec3bfb2e208
2023-12-03 19:40:23 +00:00
Daniel Moody
1b6183f157 SERVER-80633 add idlc generation to bazel 2023-11-30 23:41:45 +00:00
Will Buerger
892921a1b2 SERVER-83501: Write gen_all_server_params_list script and add to sys-perf compile task 2023-11-29 00:43:00 +00:00
Santiago Roche
b941555010 SERVER-83534: Provide support for custom serialization on fields with "query_shape: custom" 2023-11-28 19:55:39 +00:00
seanzimm
9008e8b3d5 SERVER-82878: Make vector<variant> generated code more efficient 2023-11-28 03:24:49 +00:00
kauboy26
40c8c6eb88 SERVER-82832 Stop creating and destroying vectors unnecessarily in checkAndAssertTypes 2023-11-22 21:36:04 +00:00
Huayu Ouyang
3709d5c193 SERVER-83468 Fix IDL error message for feature flag that should not be FCV gated but has a version 2023-11-21 17:38:49 +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
Ryan Berryhill
95cddf0896 SERVER-81159 Don't generate dead code for IDL variants with array types 2023-11-14 22:34:18 +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
Mathis Bessa
1b662fc042 SERVER-82318 IDL-generated parseProtected which accepts OpMsgRequest consults opCtx for tenant protocol 2023-11-07 23:00:02 +00:00
David Percy
4fda0a1e55 SERVER-82790 Avoid most YAML parsing when "Fetching feature flags" 2023-11-06 19:31:40 +00:00
csum112
225bbc8e78 SERVER-81489 Allow IDL generator serialize custom types in arrays 2023-11-06 18:19:15 +00:00
auto-revert-processor
919540a17e Revert "SERVER-81489 Allow IDL generator serialize custom types in arrays"
This reverts commit 8c1b69f419.
2023-11-04 02:12:18 +00:00
Patrick Freed
6edac6aaa7 SERVER-81191 Improve performance of BSON array key validation 2023-11-03 22:07:39 +00:00
csum112
8c1b69f419 SERVER-81489 Allow IDL generator serialize custom types in arrays 2023-11-03 15:42:57 +00:00
Erin McNulty
5e3f58f8fc SERVER-81111: Make IDL field serialization check debug only 2023-11-03 15:40:33 +00:00
James Harrison
d169f5ea1f SERVER-78877 Make find/count maxTimeMS consistent with aggregate equivalent 2023-10-19 13:12:48 +00:00
Erin Zhu
241821a644 SERVER-81920 Anonymizes fields in $merge for query shape serialization 2023-10-16 20:13:24 +00:00
Mikhail Shchatko
c019228589 SERVER-68699 Check that resmoke suite selector config has valid test paths 2023-10-11 13:49:33 +00:00
Billy Donahue
191ec34eca SERVER-81397 add generic-friendly alternative idlEnumCount<Foo>, remove kNumFoo
enumSizeForCumulativeMetrics
2023-09-27 04:42:19 +00:00
Naama Bareket
f2168022ea SERVER-81043: Add a sub-directory for query shape 2023-09-22 16:49:30 +00:00
Pierlauro Sciarelli
53e1c5b38c SERVER-80330 IDL generator must handle optional IDL-generated variant types 2023-09-13 22:52:29 +00:00
Mathis Bessa
d2d2284b8a SERVER-70409 Serialize and deserialize HealthLogEntries with multitenancySupport 2023-09-01 03:09:01 +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
XueruiFa
c24098cbae SERVER-78441: Find unreleased versions for IDL compatibility script 2023-08-22 19:48:09 +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