riking proposed using the git describe command to display more accurate version numbers in the Discourse dashboard, addressing the confusion where the tests-passed branch incorrectly appears as a “beta” version. The suggestion aims to show the time elapsed since the last beta and indicate unsupported patches via SHA mismatches. While sam initially agreed to a pull request, they clarified that this logic should primarily apply to the master branch, advocating for strict tagging on stable and beta branches. riking noted that backend changes might be necessary and shared initial UI mockups using gsub to format the output (e.g., changing dashes to plus signs). sam suggested suppressing the full hash in the UI to avoid scaring users, allowing them to expand details if needed. riking demonstrated that the -dirty flag correctly reflects uncommitted changes and showed updated screenshots. Ultimately, sam refined the proposal, suggesting the display should simply show the number of commits since the last tag (e.g., “V1.3.0+22”) rather than full hashes. riking implemented this simplified version and submitted a pull request (PR #3228). mcwumbly noted that this feature request had been previously discussed in a related topic.
I would like to suggest using the git describe output to represent both (a) how long it has been since the beta and (b) if the currently running version of Discourse is carrying unsupported patches (through a sha mismatch and number increment).
I am not sure anything is required on mothership, though I would start with only doing “describe” on tests-passed branch. Process wise we can be more militant on stable and beta always getting a new tag per commit.
we should totally only be doing this if you are on the master branch. but yeah, seeing guids can be kind of scary, I would suppress it from the UI and allow people to click to expand or something.