Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api): update image version handling and remove SENTRY_RELEASE pro…
…perty (#196) This pull request includes changes to the `api/src` and `api/tests` directories to modify how the `IMAGE_VERSION` is handled and to remove the `SENTRY_RELEASE` property. The changes ensure that the `IMAGE_VERSION` always starts with a 'v' prefix and simplify the configuration settings. Configuration changes: * [`api/src/config.py`](diffhunk://#diff-7df7ccee5a6672bf04f67eebb5964559fbbf239d77f594c8756ba3110e56fae0L35-R36): Modified the `check_image_version` method to ensure the `IMAGE_VERSION` starts with a 'v' prefix. Removed the `SENTRY_RELEASE` property from the `Settings` class. [[1]](diffhunk://#diff-7df7ccee5a6672bf04f67eebb5964559fbbf239d77f594c8756ba3110e56fae0L35-R36) [[2]](diffhunk://#diff-7df7ccee5a6672bf04f67eebb5964559fbbf239d77f594c8756ba3110e56fae0L78-L83) Usage updates: * [`api/src/main.py`](diffhunk://#diff-c03edaf8ac6a8151e382b7dfd02a323226733c4c4c000af2eb658ca692ccd793L15-R15): Updated references to `SENTRY_RELEASE` to use `IMAGE_VERSION` instead in the Sentry initialization and health check endpoint. [[1]](diffhunk://#diff-c03edaf8ac6a8151e382b7dfd02a323226733c4c4c000af2eb658ca692ccd793L15-R15) [[2]](diffhunk://#diff-c03edaf8ac6a8151e382b7dfd02a323226733c4c4c000af2eb658ca692ccd793L51-R51) Test adjustments: * [`api/tests/test_config.py`](diffhunk://#diff-9c77b4f9a6f75032e644de8b5d501ca971379aaf4f4214f4f6e4b881959b8f00L25-R32): Removed assertions related to `SENTRY_RELEASE` and updated tests to reflect the new handling of `IMAGE_VERSION` with a 'v' prefix. [[1]](diffhunk://#diff-9c77b4f9a6f75032e644de8b5d501ca971379aaf4f4214f4f6e4b881959b8f00L25-R32) [[2]](diffhunk://#diff-9c77b4f9a6f75032e644de8b5d501ca971379aaf4f4214f4f6e4b881959b8f00L44-R43) [[3]](diffhunk://#diff-9c77b4f9a6f75032e644de8b5d501ca971379aaf4f4214f4f6e4b881959b8f00L55-R60)
- Loading branch information