The Wayback Machine - https://web.archive.org/web/20220112051341/https://github.com/kedro-org/kedro-viz/pull/690
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

[KED-2615] Nudge user to upgrade Kedro-Viz from the CLI #690

Merged
merged 6 commits into from Jan 11, 2022

Conversation

@limdauto
Copy link
Contributor

@limdauto limdauto commented Jan 10, 2022

Description

This PR shows a warning to encourage user to upgrade Kedro-Viz if there is a newer version on PyPI.

Development notes

Screenshot 2022-01-10 at 17 39 03

QA notes

I have tested this manually

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added new entries to the RELEASE.md file
  • Added tests to cover my changes
cd package && isort .
black package/kedro_viz package/tests package/features
pylint --rcfile=package/.pylintrc -j 0 package/kedro_viz
pylint --rcfile=package/.pylintrc -j 0 --disable=protected-access,missing-docstring,redefined-outer-name,no-self-use,invalid-name,too-few-public-methods,no-member,unused-argument,duplicate-code package/tests
pylint --rcfile=package/.pylintrc -j 0 --disable=missing-docstring,no-name-in-module,unused-argument package/features
flake8 --config=package/.flake8 package
mypy --config-file=package/mypy.ini package
Copy link
Contributor Author

@limdauto limdauto Jan 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this in another PR to parallelise this step but I didn't know & and wait doesn't work on makefile across serveral lines, so I reverted it here.

@limdauto limdauto requested review from MerelTheisenQB, rashidakanchwala and AntonyMilneQB and removed request for MerelTheisenQB Jan 10, 2022
@datajoely
Copy link
Contributor

@datajoely datajoely commented Jan 10, 2022

Do we want to make a note about Kedro-Viz being designed to be backward compatible?

Copy link
Contributor

@AntonyMilneQB AntonyMilneQB left a comment •

Nice change, and 💯 ⭐ 🎉 super good tests!

Just a couple of ideas - nothing big, so feel free to ignore:

  • should we explain why a user might want to upgrade? "It's backwards-compatible so will work with your current project straight away and will let you use lots of cool new features"
  • is there any way of making it even easier for someone to run the pip install -U command so they don't even need to copy/paste it? Like somehow making it clickable or so they just type "y" to execute it (this would be annoying though because you get all the kedro viz console messages after that). I think probably not, but just mentioning it in case you are struck with inspiration
package/kedro_viz/integrations/pypi/__init__.py Outdated Show resolved Hide resolved
package/kedro_viz/launchers/cli.py Outdated Show resolved Hide resolved
Copy link
Contributor

@MerelTheisenQB MerelTheisenQB left a comment

Great change! 👍

Copy link
Contributor

@rashidakanchwala rashidakanchwala left a comment

LGTM!

@limdauto
Copy link
Contributor Author

@limdauto limdauto commented Jan 11, 2022

@AntonyMilneQB @datajoely yea happy to highlight it if someone can help me with the wording. It's already quite long.

@AntonyMilneQB re autoupdate: yes, that's the next iteration. This is a quick fix first, then the idea is we do autoupdate like VSCode or even from the CLI. But that's more involved (need to launch and manage another process, etc.)

@limdauto limdauto force-pushed the KED-2615/cli-nudge-upgrade branch from c8a3ecc to a333d72 Jan 11, 2022
Signed-off-by: Lim Hoang <limdauto@gmail.com>
@limdauto limdauto force-pushed the KED-2615/cli-nudge-upgrade branch from a333d72 to a97cb96 Jan 11, 2022
limdauto added 4 commits Jan 11, 2022
Signed-off-by: Lim Hoang <limdauto@gmail.com>
Signed-off-by: Lim Hoang <limdauto@gmail.com>
Signed-off-by: Lim Hoang <limdauto@gmail.com>
@limdauto limdauto force-pushed the KED-2615/cli-nudge-upgrade branch from 98d8b0a to e98118d Jan 11, 2022
@limdauto limdauto merged commit ed7a974 into main Jan 11, 2022
3 of 4 checks passed
@limdauto limdauto deleted the KED-2615/cli-nudge-upgrade branch Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants