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

AboutModal, html comment: show UI git commit hash #1559

Merged
merged 7 commits into from
Feb 16, 2022

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Jan 26, 2022

This runs git rev-parse HEAD at build time to get the current git commit hash, and provide it as a UI_COMMIT_HASH config.

Then, in standalone mode, the About modal now has a new "UI Version" entry, and there's a html comment as well..
20220126003650

20220126010646

And in insights mode, there is a new html comment with the version, near the end...
20220216144239


$('.hub-ui-version') in the browser console should find it in either mode :)

@himdel himdel marked this pull request as ready for review February 16, 2022 13:36
@himdel
Copy link
Collaborator Author

himdel commented Feb 16, 2022

(webpack-config fail expected.. this is adding a new UI_COMMIT_HASH var to definitions)

@himdel
Copy link
Collaborator Author

himdel commented Feb 16, 2022

Merging to test insights mode in today's stage deploy.

EDIT: Updated insights screenshot above :).

@himdel himdel merged commit f8b73cb into ansible:master Feb 16, 2022
@himdel himdel deleted the ui-commit-hash branch February 16, 2022 14:24
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.

None yet

1 participant