Skip to content

Conversation

@zeusongit
Copy link
Contributor

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 as 0.

Added test

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

Publishing a new version of a package should reflect correct version number

Reviewers

@DynamoDS/dynamo

@zeusongit zeusongit added this to the 3.5 milestone Mar 7, 2025
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-8461

{
if (Int32.TryParse(inputField.Text, out int value))
var val = Int32.TryParse(inputField.Text, out int value);
if(val || value == 0)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense, updated.

@zeusongit
Copy link
Contributor Author

Merging, unrelated failures on engops job caused by another PR

@zeusongit zeusongit merged commit a9a909a into DynamoDS:master Mar 10, 2025
20 of 24 checks passed
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