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) 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? ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Move Error map reference into a helio and mongo set of values. This splits error mapping to helio and error for other implementations like mongo wire protocol. ---- #### AI description (iteration 1) #### PR Classification Code cleanup #### PR Summary This pull request moves the error map reference to a generated folder, cleaning up the source directory. - Removed Mongo error code definitions from `oss/pg_helio_core/include/utils/helio_errors.h`. - Added `oss/pg_helio_core/generated/include/utils/helio_error_conversion.h` with Mongo error code definitions. - Updated `oss/scripts/generate_error_values.sh` to handle the new generated header file. - Moved `oss/pg_helio_core/src/utils/helio_errors.c` to `oss/pg_helio_core/generated/src/utils/helio_error_conversion.c`. - Updated `pgmongo/Makefile` to include the new generated directory in the build process. ---- #### AI description (iteration 1) #### PR Classification Code cleanup #### PR Summary This pull request moves the error map reference to a generated folder, separating it from the source directory. - `oss/pg_helio_core/include/utils/helio_errors.h`: Removed Mongo error code definitions. - `oss/pg_helio_core/generated/include/utils/helio_error_conversion.h`: Added new file for Mongo error code definitions. - `oss/scripts/generate_error_values.sh`: Updated script to generate new header and source files for error conversion. - `pgmongo/Makefile`: Updated include paths to reference the new generated directory. - Moved `oss/pg_helio_core/src/utils/helio_errors.c` to `oss/pg_helio_core/generated/src/utils/helio_error_conversion.c` without code changes.