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

Replace the latest version tag with a baked-in version #291

Open
rmanaem opened this issue Sep 24, 2024 · 0 comments
Open

Replace the latest version tag with a baked-in version #291

rmanaem opened this issue Sep 24, 2024 · 0 comments
Labels
bug:ux Unexpected and unintended behavior that is detrimental to the user experience. type:bug Defects in shipped code and fixes for those defects

Comments

@rmanaem
Copy link
Contributor

rmanaem commented Sep 24, 2024

If an older version of the tool is deployed, the current implementation still uses the latest release tag. This needs to be replaced with the baked-in version.

const GHApiURL = 'https://api.github.com/repos/neurobagel/query-tool/releases/latest';
axios
.get(GHApiURL)
.then((response) => {
const { data } = response;
setLatestReleaseTag(data.tag_name);
})
.catch(() => {
setLatestReleaseTag('beta');
});
}, []);

@rmanaem rmanaem added bug:ux Unexpected and unintended behavior that is detrimental to the user experience. type:bug Defects in shipped code and fixes for those defects labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:ux Unexpected and unintended behavior that is detrimental to the user experience. type:bug Defects in shipped code and fixes for those defects
Projects
Status: No status
Development

No branches or pull requests

1 participant