Open gabriel-v opened 8 months ago
The version is imported from this endpoint:
https://icij.github.io/prophecies/api.html#/operations/List%20Settings
Can you confirm you're not seen it in /api/v1/settings/
?
Ah, the dynamic settings from the admin. Yes I do not see version
, only the stuff from the admin form.
I don't see it here either https://github.com/ICIJ/prophecies/blob/27a581f9cfd6a4cdbf927393693662060e53e532/prophecies/settings/base.py#L433
But I do see it if I vandalize that table
(
cat <<EOPY
import os
# on Constance update to v3, import will change to constance.models or something
from constance.backends.database.models import Constance
import prophecies
for key in ['appName', 'avatarUrlTemplate', 'loginAccountButton', 'orgName', 'logoutUrl', 'version']:
c, _ = Constance.objects.get_or_create(key=key)
c.value = prophecies.VERSION if key == 'version' else os.getenv(key)
c.save()
print(c, key, 'setting was set to', os.getenv(key))
EOPY
) | make shell
In profile dropdown
But when I get into the container and check the python self-reported version, it works
I see some js here https://github.com/ICIJ/prophecies/blob/27a581f9cfd6a4cdbf927393693662060e53e532/prophecies/apps/frontend/src/components/AppVersion.vue#L6
Do I need to rebuild some js for version # to take effect?