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

Node consistency 11 20 #11104

Merged
merged 16 commits into from
Oct 6, 2020

Conversation

martinstacey
Copy link
Contributor

@martinstacey martinstacey commented Sep 10, 2020

Purpose

The following PR addresses nodes' names and descriptions to make them more descriptive for beginners.

12) NODE: Web Request
-CHANGES: Output result to string. Input Description: The url for the web request as a string. Output Description: Content of a web request as a string.

13) NODE: CoordinateSystem.Rotate(coordinateSystem,plane,drees)
-FYI: Node’s description is inside Protogeometry.dll should be changed by Autodesk

14) NODE: Color.Saturation
-CHANGES: Output saturation to double. Output Description: Saturation value as double between 0 and 1 inclusive.

15) NODE: Thread.Pause
CHANGES:
-Rename x in input and output to object.

16) NODE: Convert Between Units
NO CHANGES

17) NODE: Not
CHANGES: Description: Reverses the result, returns false if the result is true
Input Description: boolean to reverse
Output: x to boolean
Output Description: reversed boolean
-FYI: Input could not be changed from x to boolean, Autodesk should change in not reference.

18) NODE: Or
CHANGES: Input: bool0 to boolean0 Output empty to boolean Description: boolean to reverse
Input Description operand to Boolean #0...

19) NODE: And
CHANGES: Input: bool0 to boolean0 Output empty to boolean Description: boolean to reverse
Input Description operand to Boolean #0...

20) NODE: List.MinimumItemByKey
Output: minimumItem
Output Description: minimum item in list using keyFunction

image

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

@SHKnudsen
@Amoursol
@QilongTang

FYIs

  • Node CoordinateSystem.Rotate: Node’s description is inside Protogeometry.dll should be changed by Autodesk
  • Node Not: Input could not be changed from x to boolean, Autodesk should change in not reference.

**NODE: Web Request**
-CHANGES: Output result to string.     Input Description: The url for the web request as a string., Output Description: Content of a webpage as a string.
-NOT APPLICABLE: Name has spaces, does not have DS Syntax
**NODE: Color.Saturation**
-CHANGES: Output saturation to double. Output Description: Saturation value as double between 0 and 1 inclusive.
**NODE: Thread.Pause**
CHANGES:
-Rename x in input and output to object.
**NODE: Not**
CHANGES: Description: Reverses the result, returns false if the result is true
Input Description: boolean to reverse
UNABLE TO DO:
Input: x to boolean
Output: var[]..[] to boolean
Output Description: reversed boolean
**NODE: Or**
CHANGES: Input: bool0 to boolean0 Output empty to boolean Description: boolean to reverse
Input Description operand to Boolean #0...

**NODE: And**
CHANGES: Input: bool0 to boolean0 Output empty to boolean Description: boolean to reverse
Input Description operand to Boolean #0...
Not
output:boolean
Output description reversed boolean
20) NODE: List.MinimumItemByKey
Output: minItem
Output Description: minimum item in list using keyProjector
Content of a webpage as a string.
to
Content of a web request as a string.
Output changed from minItem to minimumItem
@Amoursol
Copy link
Contributor

@martinstacey Please provide improvement suggestions for all the nodes that are locked into ProtoGeometry behind ADSK VPN.

Update output to reflect datatype:
type: var[]..[] (minimum item in list using keyProjector)
Not Node description updated:
Negates the input, e.g. returns false when the input is true.
Changed from boolean to bool to use DesignScript base type abbreviations
Inlcude type in output description
@martinstacey
Copy link
Contributor Author

@martinstacey Please provide improvement suggestions for all the nodes that are locked into ProtoGeometry behind ADSK VPN.

@Amoursol

Suggestions for nodes locked in protogeometry:

CoordinateSystem.Rotate(coordinateSystem,plane,degrees)
-Node Description: Rotates a coordinate system on a plane by a specified degree
-Input Name: coordinateSystem
-Input Description coordinateSystem: a coordinate system
-Output Description coordinateSystem: rotated coordinate system

Not
-Input name: bool
-Input description: Boolean to reverse

@Amoursol
Copy link
Contributor

@martinstacey Please provide improvement suggestions for all the nodes that are locked into ProtoGeometry behind ADSK VPN.

@Amoursol

Suggestions for nodes locked in protogeometry:

CoordinateSystem.Rotate(coordinateSystem,plane,degrees)
-Node Description: Rotates a coordinate system on a plane by a specified degree
-Input Name: coordinateSystem
-Input Description coordinateSystem: a coordinate system
-Output Description coordinateSystem: rotated coordinate system

Not
-Input name: bool
-Input description: Boolean to reverse

JIRA task for LibG improvements added here: https://jira.autodesk.com/browse/DYN-3145

 input name: keyProjector -> keyFunction
new output description: type: var[]..[] (minimum item in list using keyFunction)
@Amoursol
Copy link
Contributor

@martinstacey please change 'keyProjector' to 'keyFunction' for List.MinimumItemByKey, after that LGTM. @aparajit-pratap when keyFunction fix implemented it's good to close from my side.

@aparajit-pratap
Copy link
Contributor

@martinstacey I see two test failures as a result of these changes:

Dynamo.PackageManager.Tests.PackageLoaderTests.LoadingCustomNodeFromPackageSetsNodeInfoPackageInfoCorrectly
Dynamo.PackageManager.Tests.PackageLoaderTests.PlacingCustomNodeInstanceFromPackageRetainsCorrectPackageInfoState

Let us know if you need help fixing these tests before we can merge this PR.

Change boolean to bool
@martinstacey
Copy link
Contributor Author

@martinstacey I see two test failures as a result of these changes:

Dynamo.PackageManager.Tests.PackageLoaderTests.LoadingCustomNodeFromPackageSetsNodeInfoPackageInfoCorrectly
Dynamo.PackageManager.Tests.PackageLoaderTests.PlacingCustomNodeInstanceFromPackageRetainsCorrectPackageInfoState

Let us know if you need help fixing these tests before we can merge this PR.

@aparajit-pratap

I ran these tests on my computer and had no issues. I just did an update on 29402fa, I hope this reruns and passes the tests.

image

type: var[]..[] (minimum item in list using keyFunction)
to
Minimum item in list using keyFunction (type: var[]..[])
@aparajit-pratap aparajit-pratap merged commit 5c37318 into DynamoDS:master Oct 6, 2020
@martinstacey martinstacey deleted the Node-Consistency-11-20 branch December 3, 2020 12:28
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