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-6427 & DYN-6828 Graph Properties UI Fixes #15200

Merged
merged 8 commits into from
May 20, 2024

Conversation

saintentropy
Copy link
Contributor

@saintentropy saintentropy commented May 7, 2024

Purpose

This PR fixes two data loss bugs with Graph Properties View Extension interaction.

  • First is the scenario when you have graph properties defined in a graph but open a custom node. When you return to the graph and save the graph properties are lost. This GraphMetaDataView extension is updated here to handle this case when the Workspace is cleared or changed.

  • Second is related to naming auto-naming the custom properties. You adding a deleting you can get into a scenario where the logic suggest the same property name. This PR adjust the logic to insure unique auto properties names

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
  • This PR contains no files larger than 50 MB

Release Notes

Custom properties in the Graph Properties Extension had an issue where opening a custom node would clear custom properties present in the open graph file. Now custom properties are not impacted by opening a custom node in session.

Custom properties in the Graph Properties Extension had an issue where the automatic naming when adding a new property would produce identical property names in some situations. Now custom properties will always produce a unique name when adding a new custom property.

Reviewers

@twastvedt @BogdanZavu

FYIs

@jnealb

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-6427

Copy link

github-actions bot commented May 7, 2024

UI Smoke Tests

Test: success. 2 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

Utility.DispatcherUtil.DoEventsLoop(() =>
{
images = WpfUtilities.ChildrenOfType<Image>(view.NodesInfoDataGrid);

Copy link
Contributor

Choose a reason for hiding this comment

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

This is an attempt to stabilize the test. I merged it here because seems to be able to reproduce it quite consistently

@QilongTang QilongTang added this to the 3.2 milestone May 13, 2024
@saintentropy saintentropy merged commit 9d4a31c into DynamoDS:master May 20, 2024
24 checks passed
Enzo707 pushed a commit to Enzo707/Dynamo that referenced this pull request May 22, 2024
Co-authored-by: Trygve Wastvedt <trygve.wastvedt@autodesk.com>
Co-authored-by: pinzart90 <tiberiu.pinzariu@gmail.com>
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.

None yet

5 participants