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

671 show urdr version on web page #1020

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

KattisLej
Copy link
Contributor

@KattisLej KattisLej commented Nov 26, 2024

Related issue(s) and PR(s)

This PR closes 671.

Type of change

  • New feature (showing version on the website)

List of changes made

  • Added the git branch and hash in webpack as a enviroment variable. In order to access this information I installed git as root in docker. I copied the same procedure to the production docker file (but haven't managed to test it)
  • The main changes in the webpack file are around these variables:
const gitBranch = execSync("git rev-parse --abbrev-ref HEAD").toString().trim();
const gitHash = execSync("git rev-parse --short HEAD").toString().trim();

Screenshot of the fix

image

Screenshot from 2024-11-26 16-47-33

Testing

  • Start URDR
  • See if you get the information as shown above

Further comments

I haven't manage to test this in production mode by running the production docker image.

Definition of Done checklist

  • I have made an effort making the commit history understandable
  • I have performed a self-review of my own code and commented any hard-to-understand areas
  • Tests and lint/format validations are passing
  • My changes generate no new warnings

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.

1 participant