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

better error messages for ZT import failure #13911

Merged
merged 4 commits into from
Apr 20, 2023

Conversation

mjkkirschner
Copy link
Member

@mjkkirschner mjkkirschner commented Apr 18, 2023

Purpose

addresses part of https://jira.autodesk.com/browse/DYN-5506

  • adds better error messages for ZT import by keeping track of what type and member we are trying to import / parse when an exception or validity check fails.
  • improves the UI a bit for dll import failure
  • fix a bug in custom text control ... overly aggressive modification of text content.

There are a lot of whitespace changes because I added some giant try/catch statements - please review with white space diff off.

TODO

  • tests

Screen Shot 2023-04-18 at 7 12 25 PM

Screen Shot 2023-04-18 at 7 11 55 PM

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

(FILL ME IN) Brief description of the fix / enhancement. Mandatory section

Reviewers

(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)

(FILL ME IN, optional) Any additional notes to reviewers or testers.

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

@@ -171,8 +171,8 @@ private static FlowDocument GetCustomDocument(string Text)
imageFig.Height = new FigureLength(30);
para.Inlines.Add(imageFig);
}
//End fo the Bullet Items formatting
if (word.EndsWith("-"))
//End of the Bullet Items formatting
Copy link
Member Author

Choose a reason for hiding this comment

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

honestly, I'm not sure what this comment is trying to get across but I think it's supposed to be of - @RobertGlobant20 any hints?

Copy link
Contributor

@RobertGlobant20 RobertGlobant20 Apr 19, 2023

Choose a reason for hiding this comment

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

Well is referring that if you find the next text inside the CustomRichTextBox
- Bullet number 1 asdfasdfasdfasdfasdfasdfasfdasdfasfasfdasfasfdasdfasfdas -
it will put a bullet at the beginning and is expecting the "-" at the end so we will know which text should be included.

  • Bullet number 1 asdfasdfasdfasdfasdfasdfasfdasdfasfasfdasfasfdasdfasfdas

yes, I agree it should be "of"

@QilongTang
Copy link
Contributor

@mjkkirschner You may also consider merging in and have test in a new PR, your choice.

@mjkkirschner
Copy link
Member Author

@mjkkirschner You may also consider merging in and have test in a new PR, your choice.

there are 1500 failing tests - looks like something went wrong with the resx generation for localized strings... looking into it.

Copy link
Contributor

@RobertGlobant20 RobertGlobant20 left a comment

Choose a reason for hiding this comment

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

LGTM

@mjkkirschner
Copy link
Member Author

I'm going to hold merging this until the tests pass - might be awhile as the build machines are down. 😢

@mjkkirschner mjkkirschner merged commit 57a1f94 into DynamoDS:master Apr 20, 2023
@mjkkirschner mjkkirschner deleted the ztenum branch April 20, 2023 21:34
mjkkirschner added a commit to mjkkirschner/Dynamo that referenced this pull request Apr 20, 2023
this passed on serial tests and https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/8868/ - merging

* better error messages and fix some bugs and ui

* comment

* small change

* expose some methods for testing
QilongTang pushed a commit that referenced this pull request Apr 21, 2023
this passed on serial tests and https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/8868/ - merging

* better error messages and fix some bugs and ui

* comment

* small change

* expose some methods for testing
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.

4 participants