Skip to content

[#474] Fix version number#475

Closed
danielmursa-dev wants to merge 3 commits intomasterfrom
ticket-474-fix-version-number
Closed

[#474] Fix version number#475
danielmursa-dev wants to merge 3 commits intomasterfrom
ticket-474-fix-version-number

Conversation

@danielmursa-dev
Copy link
Contributor

Fixes #474
Fixes maykinmedia/open-api-framework#82

The version number is already correctly set up in open-api-framework, but in objects-api PROD was not configured, so the change is to set the value of the environment variables ‘RELEASE’ with the value from api.py

@danielmursa-dev danielmursa-dev force-pushed the ticket-474-fix-version-number branch from 6775aa0 to 3c5824f Compare November 15, 2024 10:13
@Coperh
Copy link
Contributor

Coperh commented Nov 18, 2024

#476 was merged, so if you rebase on master, the check OAF version action should now pass


from .base import * # noqa isort:skip

os.environ.setdefault("RELEASE", API_VERSION)
Copy link
Collaborator

Choose a reason for hiding this comment

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

API_VERSION is the version of the API endpoint itself and we want to show the version of the application in the admin. This should be the RELEASE setting defined in open-api-framework https://github.com/maykinmedia/open-api-framework/blob/main/open_api_framework/conf/base.py#L640. I'm not sure why it isn't picked up here though, maybe it's not being set in the Docker image?

@danielmursa-dev danielmursa-dev force-pushed the ticket-474-fix-version-number branch from 5c8c3b6 to 407b61f Compare January 2, 2025 13:51
@danielmursa-dev danielmursa-dev marked this pull request as draft January 2, 2025 13:56
@danielmursa-dev danielmursa-dev force-pushed the ticket-474-fix-version-number branch from 932ab19 to 737bdd4 Compare January 6, 2025 10:26
[#474] Fix order

[#474] Fix version number

[#474] Fix order

Revert "[#474] Fix version number"

This reverts commit 737bdd4.
@danielmursa-dev danielmursa-dev force-pushed the ticket-474-fix-version-number branch from 075189e to fc58ab5 Compare January 10, 2025 13:34
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.

Version number doesn't seem to be shown Version number doesn't seem to be shown

3 participants