mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
* Merged PR 1565985: [OSS] Enable DBStats and CollStats in documentdb ### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Refactor ### 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 ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Enable DBStats, CollStats and indexStats in DocumentDB. These were partially broken due to their dependence on Citus. Add appropriate hooks to ensure that Distributed continues to work. Also clean up the code reuse of run_command_on_all_nodes across the 4 diagnostic commands. CurrentOp and index builds are also broken but will be tackled in a separate change. ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request enables the `DBStats` and `CollStats` commands in DocumentDB. - `db_stats.c` and `coll_stats.c`: Refactored functions to retrieve shard OIDs and names, returning boolean status. - `distributed_hooks.c`: Added core function to get shard IDs and names for a collection. - Added new regression tests in `bson_aggregation_pipeline_diagnostic_command_tests.out` to validate `DBStats` and `CollStats` functionality. * Merged PR 1565678: Updated README to remove architecture images per PGCA guidelines ### Does this PR have any customer impact? No. ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Documentation ### 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 ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Per PGCA guidelines, we are temporarily removing the architecture image and replacing it with an approved one soon. ---- #### AI description (iteration 1) #### PR Classification Documentation update #### PR Summary This pull request updates the README to comply with PGCA guidelines by removing architecture images. - `oss/README.md`: Removed the architecture image. * DocumentDB sync sha=f3b8a6ec5 --------- Co-authored-by: Vinod Sridharan <visridha@microsoft.com> Co-authored-by: Patty Chow <patty.chow@microsoft.com>