Skip to content

T1.2 accept/reject code changes proposed by the MigrationAssistant#10915

Merged
mmisol merged 24 commits intoDynamoDS:masterfrom
SHKnudsen:T1.2-AcceptReject-CodeChanges
Jul 23, 2020
Merged

T1.2 accept/reject code changes proposed by the MigrationAssistant#10915
mmisol merged 24 commits intoDynamoDS:masterfrom
SHKnudsen:T1.2-AcceptReject-CodeChanges

Conversation

@SHKnudsen
Copy link
Contributor

Purpose

This PR adds functionality to the MigrationAssistant which allow users to accept or reject the proposed code changes. When code changes are accepted the Python Engine will automatically switch to CPython3. The code migration is part of the Dynamo undo stack, so clicking the Revert button will change the code back to the original state.

Mechanism for saving a complete back-up of the existing .dyn file containing Ironpython2 code is being prepared on a separate PR

T1 2-ChangeCodeGif

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.

Reviewers

@mmisol
@QilongTang

FYIs

@mjkkirschner
@radumg

SHKnudsen added 22 commits July 3, 2020 08:19
* 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
Copy link
Collaborator

@mmisol mmisol left a comment

Choose a reason for hiding this comment

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

Looks good to me but let's wait for Mike to confirm what we should do with the event attached to the model

@mmisol mmisol merged commit 61d3273 into DynamoDS:master Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants