-
Notifications
You must be signed in to change notification settings - Fork 113
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
Get version using restAPI #2242
base: feature_branch/remove-experiment-tracking
Are you sure you want to change the base?
Get version using restAPI #2242
Conversation
Signed-off-by: Huong Nguyen <[email protected]>
def get_version_response(): | ||
"""API response for `/api/version`.""" | ||
installed_version = __version__ | ||
latest_version = "0.5.0" # how do i check the latest version? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from kedro_viz.integrations.pypi import get_latest_version, is_running_outdated_version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the same logic as we do in graphql
latest_version = get_latest_version()
is_outdated=is_running_outdated_version(installed_version, latest_version),
Signed-off-by: Huong Nguyen <[email protected]>
Signed-off-by: Huong Nguyen <[email protected]>
Signed-off-by: Huong Nguyen <[email protected]>
Signed-off-by: Huong Nguyen <[email protected]>
Signed-off-by: Huong Nguyen <[email protected]>
Signed-off-by: Huong Nguyen <[email protected]>
Signed-off-by: Huong Nguyen <[email protected]>
Signed-off-by: Huong Nguyen <[email protected]>
Description
Fixes #2221 , in order to remove graphql completely, we need to update the part of get version to restAPI.
I'm currently looking at strange failed test https://github.com/kedro-org/kedro-viz/actions/runs/12827700845/job/35770224311?pr=2242, if you have any idea why this has failed please let me know. Otherwise feel free to review the rest of the PR
QA notes
If you pull the branch and restart the build, everything should work fine. You can also log the
response
incheckKedroVizVersion()
written insidewrapper.js
. It should log 3 valuesis_outdated, installed, and latest
Checklist
RELEASE.md
file