ebi-gene-expression-group / atlas-web-single-cell

Single Cell Expression Atlas web application
Apache License 2.0
5 stars 5 forks source link

Make the json/build endpoint up-to-date #365

Closed ke4 closed 8 months ago

ke4 commented 10 months ago

Currently there is no way to check which version of the application has been deployed in an environment. The json/build endpoint is not returning any useful data. We should came up with a number for the current version. If nobody knows that it could be version 1. From now on we should use semantic versioning when we are deploying a change to a server.

I will have a think how to do it and going to update this ticket soon.

ke4 commented 10 months ago

Have a look at these gradle plugins: https://plugins.gradle.org/search?term=automatic-versioning

ke4 commented 8 months ago

I found a gradle plugin (gradle-git-properties) to get information about git commits/branch and so on, also get information about the version of our app that we need to increment manually in the gradle build file.

Using that plugin and rewrote the code for the endpoint I get information like this:

{
   "Build version": "1.0.0",
   "Git branch": "develop",
   "Latest commit ID": "809f75d6ad696efc2e7fb7edc0b20b95620de1a4",
   "Latest commit message": "Update docker-compose.yml for postgres to follow changes in db-scxa repo\n"
}

I think that should do for now.