Skip to content

Conversation

@reddyashish
Copy link
Contributor

@reddyashish reddyashish commented Jul 14, 2022

Purpose

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

When the CachedValue is not a function, PortDefaultValueMarkerVisible should be set to false.

function indicator fix

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 function indicator bar on output port

Reviewers

@QilongTang .

@reddyashish
Copy link
Contributor Author

@QilongTang QilongTang added this to the 2.16.0 milestone Jul 14, 2022
@QilongTang
Copy link
Contributor

@filipeotero When you have time, please review this

Copy link
Contributor

@filipeotero filipeotero left a comment

Choose a reason for hiding this comment

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

LGTM

{
PortDefaultValueMarkerVisible = false;
}
PortDefaultValueMarkerVisible = node.NodeModel.CachedValue != null && node.NodeModel.CachedValue.IsFunction;
Copy link
Contributor

@QilongTang QilongTang Jul 15, 2022

Choose a reason for hiding this comment

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

Do we still need to check node.NodeModel.CachedValue.Data != null?

Copy link
Contributor Author

@reddyashish reddyashish Jul 15, 2022

Choose a reason for hiding this comment

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

When node.NodeModel.CachedValue.Data is null, IsFunction will be false and the port marker will not be visible. So I think we don't need any additional check.

@reddyashish reddyashish reopened this Jul 18, 2022
@reddyashish
Copy link
Contributor Author

@QilongTang Removing those unused images that were left out from #13109. Sorry I mixed up branches and just consolidated it.

@QilongTang
Copy link
Contributor

@reddyashish Looks like there are regressions to fix

@reddyashish
Copy link
Contributor Author

This test WorkspaceContextMenu_IfSubmenuOpenOnMouseHover passes locally and passed on CI before. It just failed for some other reason. Looks flaky. Verified it locally.

@reddyashish
Copy link
Contributor Author

@reddyashish
Copy link
Contributor Author

reddyashish commented Jul 18, 2022

Latest CI job passed

@reddyashish reddyashish merged commit cc082e2 into DynamoDS:master Jul 18, 2022
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