mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 19:59:54 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Refactoring ### 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? No ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description Remove feature flags that are default for 2 releases Remove version checks that are default now Tag some feature flags for the releases where they should be removed. ---- #### AI description (iteration 1) #### PR Classification This pull request is a code cleanup that removes deprecated default feature flags and associated version checks. #### PR Summary The changes simplify the codebase by eliminating legacy feature flags and version-dependent conditionals, which streamlines aggregation, index creation, and schema validation logic. Key updates include: - **`configs/feature_flag_configs.c`**: Removed default feature flags and related GUC variables with deprecation comments for v104/v105. - **`aggregation/bson_aggregation_pipeline.c`**: Eliminated version checks for the $redact stage and group accumulator logic (e.g., $median, $percentile). - **`commands/create_indexes.c` & `commands/update.c`**: Removed outdated conditionals for unique index statistics and schema validation. - **`planner/documents_planner.c` & `aggregation/bson_aggregation_nested_pipeline.c`**: Erased support for nested aggregation function flags and associated version verifications. - **Test files**: Updated expected outputs and SQL tests to align with the removal of deprecated feature flags and aggregation behaviors. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->