-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add a route which returns the API version #112
Labels
Comments
RemiBardon
added
enhancement
New feature or request
good first issue
Good for newcomers
ci
Changes / improvements to the CI
labels
Jan 4, 2025
github-project-automation
bot
moved this to Backlog & Ideas 💡
in Prose Pod API to-do list
Jan 4, 2025
RemiBardon
moved this from Backlog & Ideas 💡
to Not Started 🕑
in Prose Pod API to-do list
Jan 5, 2025
RemiBardon
added a commit
that referenced
this issue
Jan 17, 2025
RemiBardon
added a commit
that referenced
this issue
Jan 17, 2025
RemiBardon
added a commit
that referenced
this issue
Jan 17, 2025
RemiBardon
added a commit
that referenced
this issue
Jan 17, 2025
github-project-automation
bot
moved this from In Progress 🏗️
to Done ✅
in Prose Pod API to-do list
Jan 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes @Paloma-Sanchez seems to have issues where she runs a Docker image but Dokcer uses an outdated version and bugs aren't fixed as expected. To help detecting this, I suggest we add a route which returns informations about the api version.
We should return the tag, but also the date at which the image was built, which is far easier to reason with.
Also, since we won't have the opportunity to return the current tag for edge and local builds, returning the build date will make total sense.
On the version information route, we could return an object like this:
This way, we'd support adding more keys in the future if needed.
For local builds, it could look like:
(We might want to add commit information if there are no unstaged changes.)
Finally, for edge builds it'd look like this:
Edit (2025-01-15):
We would like to access Prosody version information too, so to simplify parsing I suggest we switch to this more extensible structure:
I haven't thought about it that much but I suppose it will be a bit hard to get some of the information for Prosody. We might have more information about prose-pod-server (~prosody), but it will be complicated because it's not bundled with the API. The API could have this data passed staticly at build time but the version of Prosody running is dynamic.
The text was updated successfully, but these errors were encountered: