-
Notifications
You must be signed in to change notification settings - Fork 668
DYN-8461: Publishing a new version of a package should reflect correct version number #15914
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
Conversation
There was a problem hiding this 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-8461
| { | ||
| if (Int32.TryParse(inputField.Text, out int value)) | ||
| var val = Int32.TryParse(inputField.Text, out int value); | ||
| if(val || value == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this check always true? If the parsing succeeded then val is true. If it didn't, then value has its default value of 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and now we are assigning that default value in cases where TryParse is false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but why make an if statement that's always true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense, updated.
|
Merging, unrelated failures on engops job caused by another PR |
Purpose
When deleting a version numeral from the UI, the change event skipped empty values (
""). The update should now consider empty values and update version as0.Added test
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
Publishing a new version of a package should reflect correct version number
Reviewers
@DynamoDS/dynamo