Skip to content

feat: infrastructure and boilerplate maintenance (MAPCO-10037)#105

Merged
CL-SHLOMIKONCHA merged 12 commits into
masterfrom
feat/infrastructure-boilerplate-maintenance
Mar 8, 2026
Merged

feat: infrastructure and boilerplate maintenance (MAPCO-10037)#105
CL-SHLOMIKONCHA merged 12 commits into
masterfrom
feat/infrastructure-boilerplate-maintenance

Conversation

@CL-SHLOMIKONCHA

@CL-SHLOMIKONCHA CL-SHLOMIKONCHA commented Feb 24, 2026

Copy link
Copy Markdown
Contributor
Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore

This pull request introduces several major updates focused on modernizing configuration management, improving tracing and metrics integration, and updating dependencies for better maintainability and performance. The most significant changes include replacing the legacy config package with the new @map-colonies/config and schema-based configuration, refactoring tracing to use the latest @map-colonies/tracing packages, and adding Prometheus metrics support. Additionally, dependency versions are updated across the board, and Helm chart values/configuration are enhanced for improved deployment flexibility.

Configuration Management Modernization:

  • Migrated from the legacy config package to @map-colonies/config with schema validation, introducing a new src/common/config.ts for initialization and access, and updating all relevant usages. ([[1]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L51-L85), [[2]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-9d5ba1a74fa3c1ca2e89c9b7a2c356807802c8b5be7473377ffd4d9ab348aef1R1-R29), [[3]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-3cf5fe62c6a3d0d02e22030d2bb6bf7b283684710da4a400afa91ea03c59a88dL1-R38), [[4]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-f07c42814e0913799fda32ac14d063f1ef8a04e24fb6febd873a5f161e58a8d4L13-R17))
  • Added SWC configuration (.swcrc) for TypeScript compilation performance. ([.swcrcR1-R9](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-77a5276f1f91b0001697639c96553e2e0cfc71a6741500c4d5f8752a5df5a9dbR1-R9))

Tracing and Metrics Integration:

  • Refactored tracing to use @map-colonies/tracing and @map-colonies/tracing-utils, with a new factory/getter pattern for initialization and access, and updated container registration for graceful shutdown. ([[1]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-74a4feeee836de44780947cc77b55a356b1f9ffdf892039dd47b16d6f879dd88L1-R30), [[2]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-3cf5fe62c6a3d0d02e22030d2bb6bf7b283684710da4a400afa91ea03c59a88dL1-R38))
  • Added Prometheus metrics support via prom-client and injected metrics registry into the DI container. ([[1]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L51-L85), [[2]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-3cf5fe62c6a3d0d02e22030d2bb6bf7b283684710da4a400afa91ea03c59a88dL1-R38))

Dependency and Build Process Updates:

  • Updated multiple dependencies to latest major versions, including @map-colonies/* packages, eslint, jest, and others, and improved build scripts to use tsc-alias and SWC/Jest for better TypeScript and test performance. ([[1]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L51-L85), [[2]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L98-R119), [[3]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-9601a8f6c734c2001be34a2361f76946d19a39a709b5e8c624a2a5a0aade05f2R1-R7), [[4]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-77a5276f1f91b0001697639c96553e2e0cfc71a6741500c4d5f8752a5df5a9dbR1-R9))
  • Enhanced ESLint configuration to ignore generated files and use the latest config presets. ([eslint.config.mjsR1-R7](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-9601a8f6c734c2001be34a2361f76946d19a39a709b5e8c624a2a5a0aade05f2R1-R7))

Helm and Deployment Enhancements:

  • Added new configManagement values to Helm charts for more flexible configuration injection, including offline mode, version, and server URL. ([[1]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-81801117ec01136c8a49bfcd42af8e104f4efad1f2daccda9da9d960eaad5279R69-R74), [[2]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-bfc6a602171deb9937fdee53ff0c20b633450fe90d995958f68b1e0035175ccbR38-R43))

Minor Improvements and Cleanups:

  • Improved type safety and code clarity with stricter TypeScript types, type-only imports, and minor fixes in DAL and repository logic. ([[1]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-3cc03a2b35797caa9ec37b14a71692d4acda874ed457cc5e9debc04446463fd7L4-L6), [[2]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-5ed2d9b85f555c8c096ab8b933c89bd9f0324b836b9dbb55f18d4ace327a2e43L3-R10), [[3]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-5ed2d9b85f555c8c096ab8b933c89bd9f0324b836b9dbb55f18d4ace327a2e43R26-R31), [[4]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-71c1527c85f65fe2c742f1ad9cac646846489e991c5989ef653c50e3abb6cc97L112), [[5]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-118a1ed2ebf5b946c94c5dfeae1c4d13c9a57ef105b36ad323e0b7b8e368da27L10-R16), [[6]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-45db88c2ebfb3a6f4882ee7b5ac9606046947e1f9ffb409f024a19f9872d5099R10), [[7]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-45db88c2ebfb3a6f4882ee7b5ac9606046947e1f9ffb409f024a19f9872d5099R33))
  • Updated OpenAPI spec to include 400 Bad Request error response. ([openapi3.yamlR194-R199](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-2ae95c92395c47c5e356f0d3b088d7d52a5862b2354e839bcbbf4856d4fd3898R194-R199))
  • Minor YAML and config file cleanups for Redocly. ([[1]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-fcb4e78946cab747fd7b8a40ef9365ca166ecd6423728438fb69000d6e903d1eL1-R1), [[2]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-fcb4e78946cab747fd7b8a40ef9365ca166ecd6423728438fb69000d6e903d1eL21-R28), [[3]](https://github.com/MapColonies/raster-catalog-manager/pull/105/files#diff-fcb4e78946cab747fd7b8a40ef9365ca166ecd6423728438fb69000d6e903d1eR45-R51))

References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]

@CL-SHLOMIKONCHA CL-SHLOMIKONCHA changed the title feat: infrastructure and boilerplate maintenance feat: infrastructure and boilerplate maintenance (MAPCO-10037) Mar 2, 2026
Comment thread src/common/dataModels/records.ts Outdated
Comment thread src/common/dataModels/records.ts Outdated
Comment thread src/DAL/connectionManager.ts
Comment thread src/records/models/recordManager.ts
Comment thread src/serverBuilder.ts
Comment thread src/serverBuilder.ts
Comment thread src/serverBuilder.ts
Comment thread eslint.config.mjs Outdated
Comment thread tsconfig.build.json
@CL-SHLOMIKONCHA CL-SHLOMIKONCHA requested a review from razbroc March 4, 2026 09:40

@razbroc razbroc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks well put bro

Comment thread helm/templates/_helpers.tpl
Comment thread helm/values.yaml
Comment thread src/common/tracing.ts
Comment thread src/serverBuilder.ts
@CL-SHLOMIKONCHA CL-SHLOMIKONCHA requested a review from razbroc March 8, 2026 13:08

@razbroc razbroc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GG WP MASTER

@CL-SHLOMIKONCHA CL-SHLOMIKONCHA merged commit 55d07c0 into master Mar 8, 2026
5 checks passed
@CL-SHLOMIKONCHA CL-SHLOMIKONCHA deleted the feat/infrastructure-boilerplate-maintenance branch March 8, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants