mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -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) yes ### 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)) na ### Description 1. Move all legacy errors to new helio errors 2. Remove all refs to mongo_errors.h excluding error_utils.c , there is function which needs backword compatibility 3. Update `scripts/validate_helio_extension_state.sh` to enforce all validations on oss/pg_helio_api parent directory instead of individual sub directories ---- #### AI description (iteration 1) #### PR Classification Code cleanup and deprecation. #### PR Summary This pull request moves all error handling to `helio_errors` and removes references to `mongo_errors.h`, deprecating certain functions. - `error_utils.c`: Deprecated `command_throw_mongo_error` and `command_convert_mongo_error_to_postgres` functions. - `mongo_errors.h`: Removed Mongo error handling code and redefined error code checks. - `validate_helio_extension_state.sh`: Updated validation script to remove checks for `mongo_errors.h`. - Added new SQL functions for database commands in `kill_op--1.22-0.sql`, `get_shard_key_value--1.22-0.sql`, and `reindex--1.22-0.sql`. - Updated test files to reflect deprecation changes in error handling functions.