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

DYN-5423 Fix CustomNode view layout after it is saved. #13585

Merged
merged 3 commits into from
Nov 30, 2022

Conversation

reddyashish
Copy link
Contributor

@reddyashish reddyashish commented Nov 30, 2022

Purpose

Task: https://jira.autodesk.com/browse/DYN-5423.

This PR is to fix the custom node layout by serializing the "Views" property when a new file is saved. This is done in the WorkspaceViewModel which will handle both the HomeWorkspaceModel and CustomNodeWorkspaceModel.

CN saving

The previous check for CustomNodeWorkspaceModel is moved inside WorkspaceViewModel, where we will update the file path info in the custom node manager after a new custom node file is saved (related to the PR).

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

Release Notes

Fix CustomNode view layout after it is saved.

Reviewers

@DynamoDS/dynamo

@QilongTang
Copy link
Contributor

Excellent! Do you know when this regression begin to happen?

@reddyashish
Copy link
Contributor Author

@QilongTang After this #12687 fix by me, which was to store and retrieve the custom node file-path info after it is saved without the need to restart Dynamo.

@reddyashish reddyashish added this to the 2.17.0 milestone Nov 30, 2022
@QilongTang
Copy link
Contributor

@QilongTang After this #12687 fix by me, which was to store and retrieve the custom node file-path info after it is saved without the need to restart Dynamo.

Gotcha, looks like this has been failing for a while. Would you add a unit test to guard it?

Copy link
Contributor

@QilongTang QilongTang left a comment

Choose a reason for hiding this comment

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

LGTM with one question

@reddyashish reddyashish merged commit 750b3ec into DynamoDS:master Nov 30, 2022
QilongTang pushed a commit that referenced this pull request Dec 1, 2022
* Fix CustomNode views after it is saved.

* Add test

* Update WorkspaceSaving.cs
@QilongTang QilongTang mentioned this pull request Dec 1, 2022
8 tasks
QilongTang added a commit that referenced this pull request Dec 1, 2022
* Fix CustomNode view layout after it is saved. (#13585)

* Fix CustomNode views after it is saved.

* Add test

* Update WorkspaceSaving.cs

* Single quote to double quote in js call functions (#13586)

* DYN-5286-MLNodeAutocomplete Adding Analytics  (#13581)

* DYN-5286-MLNodeAutocomplete-Analytics

I added the code for TrackEvent in 4 places:
- NodeAutoCompleteSearchControl.xaml.cs - when clicking the Low Confidence combobox for displaying the list of nodes.
- NodeAutoCompleteSearchViewModel.cs - when the Node Autocomplete is raised using the Recommented nodes option or the Object Types option.
- PreferencesView.xaml.cs when the Slider Confidence Level is updated.
And finally I've added additional Actions in IAnalyticsClient.cs

* DYN-5286-MLNodeAutocomplete-Analytics CodeReview1

Removed the Actions added in IAnalyticsClient.cs so we can re-use the existing ones (so the method calls were also updated).
Added Analytics track events in the Preferences panel when the NodeAutocomplete is se to ML Recomentations or Object Type.
The ExportSettings option and ImportSettings option were renamed to Export and Import (so the method calls were also updated).

* Update

* update

* Update

Co-authored-by: Aaron (Qilong) <[email protected]>

* DYN-5426 Setting different font size when the height of the library is smaller (#13578)

* Setting different font size when the height is smaller

* calculate the font size based on the screen height

Co-authored-by: reddyashish <[email protected]>
Co-authored-by: filipeotero <[email protected]>
Co-authored-by: Roberto T <[email protected]>
QilongTang pushed a commit that referenced this pull request Jul 13, 2023
* Fix CustomNode views after it is saved.

* Add test

* Update WorkspaceSaving.cs
QilongTang added a commit that referenced this pull request Jul 13, 2023
* Fix CustomNode views after it is saved.

* Add test

* Update WorkspaceSaving.cs

Co-authored-by: reddyashish <[email protected]>
@QilongTang QilongTang mentioned this pull request Jul 14, 2023
9 tasks
@QilongTang QilongTang changed the title Fix CustomNode view layout after it is saved. DYN-5423 Fix CustomNode view layout after it is saved. Mar 26, 2024
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.

2 participants