Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#474] Fix version number #475

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

danielmursa-dev
Copy link

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

@@ -4,6 +4,7 @@

from .base import * # noqa isort:skip

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

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?

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