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

add no changes state to diff viewer #11001

Merged
merged 3 commits into from
Aug 17, 2020

Conversation

SHKnudsen
Copy link
Contributor

Purpose

When the Migration Assistant is used on code that is already Python 3 compatible the diff viewer will still show the code. This can lead to confusion as it looks like the Migration Assistant isnt working/doing anything.

This PR adds a No Changes state to the Diff viewer which will let the user know if no changes are needed.

PythonMigrationNoChangeState

NoChangeStateSideBySide

NoChangeStateInLine

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.
  • This PR modifies some build requirements and the readme is updated

Reviewers

@mmisol

FYIs

@mjkkirschner
@QilongTang
@Amoursol

@SHKnudsen
Copy link
Contributor Author

@Amoursol if you guys are happy with this approach, some feedback on the text would be much appropriated.

@mmisol
Copy link
Collaborator

mmisol commented Aug 14, 2020

I love the style!

Still, I think we could make it clearer that they should click "accept" , so that the engine is changed. How does something like Click accept and we'll switch the engine for you sound ?

@@ -145,6 +145,9 @@ There will be a time of transition where both versions of Python node will work
<data name="IronPythonNotificationShortMessage" xml:space="preserve">
<value>This graph currently contains nodes that are using the old IronPython2 (Python 2) engine which will be deprecated in later versions. A new CPython3 (Python 3) has been implemented and is accessible inside the Python editor.</value>
</data>
<data name="MigrationAssisantNoChangesStateMessage" xml:space="preserve">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo Assisant => Assistant

@mjkkirschner
Copy link
Member

hah, we just talked about this - chiming in to say this looks great.

@Amoursol
Copy link
Contributor

LGTM!

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.

Thanks @SHKnudsen . Looks good to me!

@mmisol
Copy link
Collaborator

mmisol commented Aug 17, 2020

@mmisol mmisol merged commit ee7a504 into DynamoDS:master Aug 17, 2020
mmisol pushed a commit to mmisol/Dynamo that referenced this pull request Aug 17, 2020
* add has changes state to diff viewer

* update text + change engine on accept

* typo
mmisol added a commit that referenced this pull request Aug 17, 2020
* add has changes state to diff viewer

* update text + change engine on accept

* typo

Co-authored-by: Sylvester Knudsen <[email protected]>
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.

4 participants