mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 19:59:54 -05:00
### Does this PR have any customer impact? We had a regression in 1.24, this reverts that by putting it behind a flag and setting it off. The tests are ran using the config being set to on for quick turnaround. We have one test with the flag set to off. ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Config ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? Not yet ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description We had a regression in 1.24, this reverts that by putting it behind a flag and setting it off. The tests are ran using the config being set to on for quick turnaround. We have one test with the flag set to off. Will follow up with a proper fix and tests. ---- #### AI description (iteration 1) #### PR Classification Putting Pushing down sort by _id to primary key behind a feature flag. which was implemented in. https://msdata.visualstudio.com/CosmosDB/_git/pgmongo/pullrequest/1525883 #### PR Summary This pull request introduces a new feature flag to enable or disable pushing down sort by ID to the primary key. - `configs/feature_flag_configs.c`: Added a new feature flag `EnableSortbyIdPushDownToPrimaryKey`. - `bson_aggregation_pipeline.c`: Modified sort handling to respect the new feature flag. - `postgresql.conf` files: Updated configurations to include the new feature flag. - `utils.sh`: Added the new feature flag to the setup script. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->