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

Fix Trusted Message behavior #13355

Merged
merged 4 commits into from
Oct 3, 2022
Merged

Fix Trusted Message behavior #13355

merged 4 commits into from
Oct 3, 2022

Conversation

jesusalvino
Copy link
Contributor

@jesusalvino jesusalvino commented Sep 29, 2022

Purpose

Fix the bug https://jira.autodesk.com/browse/DYN-5228

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

@QilongTang

FYIs

@RobertGlobant20 @filipeotero

@jesusalvino
Copy link
Contributor Author

TrustedMessageFix

Copy link
Contributor

@reddyashish reddyashish left a comment

Choose a reason for hiding this comment

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

LGTM. @jesusalvino need a test for this.

@jesusalvino
Copy link
Contributor Author

LGTM. @jesusalvino need a test for this.

Done.

{
List<string> actions = typeof(TrustedPathViewModel.Action).GetFields().Select(a => a.Name).ToList();

if (actions.Contains(e.PropertyName))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this check duplicate with PropertyChanged event?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see, you have defined dedicated action for each..

@QilongTang QilongTang merged commit 3dfd37e into DynamoDS:master Oct 3, 2022
@QilongTang QilongTang added this to the 2.17.0 milestone Oct 3, 2022
QilongTang pushed a commit that referenced this pull request Jul 12, 2023
* Fix Trusted Message behavior

* Extract Business Logic as a function

* Moving API to Preferences

* Adding unit test
@QilongTang QilongTang mentioned this pull request Jul 12, 2023
9 tasks
QilongTang added a commit that referenced this pull request Jul 13, 2023
* Fixing horizontal center (#13312)

* Fix Trusted Message behavior (#13355)

* Fix Trusted Message behavior

* Extract Business Logic as a function

* Moving API to Preferences

* Adding unit test

* Leave RenderPackage data intact when passed to AggregateRenderPackages (#13437)

* Leave RP data intact

* Fix tests

* Remove unnessary code

* Spelling typos and clean up

* clean up

* clean up

* Add regression test for render package mutation.

* Unsubscribe from event.

* Add image comparison test for render bug.

* Fix test image size.

Co-authored-by: Craig Long <[email protected]>
Co-authored-by: Trygve Wastvedt <[email protected]>

* DYN-5437 Export image button shortcut (#13550)

* Insert the export command in the shortcut view model

* remove test method

* Dyn 5317 check webview2 installed (#13464)

* DYN-5317-Check-WebView2-Installed

I added a validation that before starting the DynamoSandbox app we will check if the WebView2 Runtime is installed or not, if is not installed we will show a MessageBox with the  link of the WebView2 installer and then after pressing the OK button close Dynamo.
Also in the DynamoMessageBox I added a RichTextBox that will be visible under very specific circumstances, this RichTextBox allows to have a blue hyperlink as a part of the text so the user can click it and open the webview2 installer webpage.

* DYN-5317-Check-WebView2-Installed

removing extra comment

* DYN-5674-CustomNode-Renamed (#13854)

After the auto-save functionality is triggered when we are located in the Custom Node edit tab when the node in the Home Workspace is being renamed to "backup". Then after my fix first is checking if it has a name and file associated (that usually happen when you create/edit a custom node) if that is the case then we don't execute the rename process.
Also I added a test that will validate that the Save functionality doesn't rename the CustomNode name.

* clean up

---------

Co-authored-by: jesusalvino <[email protected]>
Co-authored-by: Craig Long <[email protected]>
Co-authored-by: Craig Long <[email protected]>
Co-authored-by: Trygve Wastvedt <[email protected]>
Co-authored-by: filipeotero <[email protected]>
Co-authored-by: Roberto T <[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.

3 participants