-
Notifications
You must be signed in to change notification settings - Fork 634
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
T1.3 save python2 backup file #10928
T1.3 save python2 backup file #10928
Conversation
* add ScriptMigrator * Add visual difference viewer * Update PythonMigrationViewExtension.cs * Add tooltip description to migration assistant * updates * comment updates * comment updates
* add ScriptMigrator * Add visual difference viewer * Added methods for updating the ScriptEditors with the migrated code * Update PythonMigrationViewExtension.cs * Add tooltip description to migration assistant * updates * comment updates * comment updates * Update ScriptEditorWindow.xaml.cs * Update PythonMigrationViewExtension.csproj * Update PythonMigrationViewExtension.csproj * comment updates * Revert "comment updates" This reverts commit 2d2332a. * comment updates * Update PythonMigrationAssistantViewModel.cs * comment updates 2
* add ScriptMigrator * Add visual difference viewer * Added methods for updating the ScriptEditors with the migrated code * Update PythonMigrationViewExtension.cs * add mechanisme to save Python 2 backup * Add tooltip description to migration assistant * updates * comment updates * comment updates * Update ScriptEditorWindow.xaml.cs * Update PythonMigrationViewExtension.csproj * Update PythonMigrationViewExtension.csproj * comment updates * Revert "comment updates" This reverts commit 2d2332a. * comment updates * Update PythonMigrationAssistantViewModel.cs * comment updates 2 * small clean ups * Update PythonMigrationAssistantViewModel.cs
…dsen/Dynamo into T1.3-SavePython2BackupFile
…ionAssistantTests
…ited this is because the dependency map dictionary is used in the UI warnings modal
This PR's ready now in theory, just this last comment to address if we still want to - we could add this now, but one question i would have is around the fact the migration now produces a Would this interfere with the test you think (before i delve into it) @mmisol @mjkkirschner ? |
@radumg I'm afraid opening a |
Think those were easier since we could get control of that as
Those methods are
Defo, happy to come back to this one later on. |
You can do that with |
for many message boxes that are modal we sometimes use |
src/PythonMigrationViewExtension/MigrationAssistant/PythonMigrationAssistantViewModel.cs
Outdated
Show resolved
Hide resolved
src/PythonMigrationViewExtension/MigrationAssistant/PythonMigrationAssistantViewModel.cs
Show resolved
Hide resolved
src/PythonMigrationViewExtension/MigrationAssistant/ScriptMigrator.cs
Outdated
Show resolved
Hide resolved
src/PythonMigrationViewExtension/PythonMigrationViewExtension.cs
Outdated
Show resolved
Hide resolved
When we fix the above, also move the |
@mmisol fixed all of @mjkkirschner comments and added a test to check that the backup function works as expected. Also moved the "More Information" button on the ScriptEditor window so it now sits next to the 2to3 button. |
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.
Thanks for addressing @SHKnudsen . Your changes look good to me.
I'm not sure why an automatic build on self server was not triggered but I triggered one manually and everything passed:
https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/1195/
src/PythonMigrationViewExtension/MigrationAssistant/PythonMigrationAssistantViewModel.cs
Show resolved
Hide resolved
let's wait for the final test run, looks good though. |
Purpose
This PR adds functionality to the MigrationAssistant which will save a complete backup of the dyn as
{dynName}.Python2.dyn
. This will only happen the first time the migration assistant is used to update code. As long as there is a{dynName}.Python2.dyn
file in the backup folder no additional python 2 backups will be saved.Declarations
Check these if you believe they are true
*.resx
filesReviewers
@mmisol
FYIs
@mjkkirschner
@QilongTang
@radumg