-
Notifications
You must be signed in to change notification settings - Fork 5
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
Compare version with network version on launch, and add Update Pepys option #1092
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1092 +/- ##
===========================================
- Coverage 79.84% 79.72% -0.13%
===========================================
Files 109 109
Lines 11651 11678 +27
===========================================
+ Hits 9303 9310 +7
- Misses 2348 2368 +20 ☔ View full report in Codecov by Sentry. |
@IanMayo This all seems to be working now, based on tests on my Windows machine, but I'd appreciate you testing it too. To test, you will need to do something like this on a Windows machine:
(replace the path with the path to your fake network version) Can you have a go and let me know how you get on. Once you've confirmed it is working, we'll need to work with the clients to get it working on their system, with the config file set up correctly etc. |
@robintw - did you consider deleting some (or all) local files before copying the new ones over? If we rename a source-code file in Pepys, the previous one will still be there. This could be relevant for Clearly if an analyst puts their own importer in the folder, or modifies an official version they'll lose their changes. I've just looked, but didn't find any documentation on a 'user' importer folder - where locally developed importers would be stored. Do you remember that at all? |
… of reference to directory
@IanMayo Good point. I've updated the PR so that it now deletes the contents of the folder before copying the new version across. I've tested it and it works. You'll see from the code that it deletes things in a couple of steps, as Powershell/cmd.exe seems to want to keep hold of the bin folder even when you change directory out of it. We get around that by not actually deleting the bin folder, just deleting all the other folders, and then deleting the contents of the bin folder but not the folder itself. Seems to work fine. |
This just worked fine, thanks @robintw. The wrong version was identified. When I ran One issue, we have mixed language: the CLI advises me to I'll modify the CLI message. |
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.
Tested & working
🧰 Issue
Fixes #1035
🚀 Overview:
Adds functionality to compare the current Pepys version to the version of a 'master' network install on Pepys launch, and give an error if the network version is newer. Also add an Update Pepys Start Menu item which can be run to copy the network install to the local install directory.
🔗 Link to preview (or screenshot, if relevant)
🤔 Reason:
Help the users keep Pepys versions up-to-date while running the code locally so that it is faster.
🔨Work carried out:
🖥️ Screenshot
Confirmations
interactive_review
if reviewers will need to see UI\docs
folderalembic revision
transitions📝 Developer Notes: