Skip to content

Conversation

@RobertGlobant20
Copy link
Contributor

@RobertGlobant20 RobertGlobant20 commented Apr 30, 2021

Purpose

In this pull request I'm enabling the functionality for Geometry Scaling and Render Precision in the Preferences -> Visual Settings tab (Both changes take effect immediately after update).
Also I removed the code related to the old Geometry Scaling functionality (ChangeScaleFactorPrompt) and all the events/commands associated with it.
Related to the UIAutomation tests, there is just only one test that is checking all the entries from the settings menu against some entries in a json file, so even if I implement the functionality for validate the "Geometry Scaling" and "Render Precision" the test will be failing, then we are trying to figure out what to implement for this case.

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

@QilongTang

FYIs

@Astul-Betizagasti

I added a new workflow (issue_type_predicte.yaml) that is using the ML.NET model for predicting the issue type (source repo), so If a new issue is created in the Dynamo repo this workflow will run and will predict if is a Wishlist issue or not. If is a Wishlist issue it will be labeled as "Wishlist" and then another workflow will move the issue to the DynamoWishlist repo. If the issue is incomplete or is not valid the label "NotMLEvaluated" will be added to the issue.

Also I added two scripts more, one will return the issue body in a json string and the other one will clan the issue body removing sections not used like "Dynamo Version" or "Stack Trace"
When testing the issue predicter workflow the issues labeled as Wishlist were not moved to the DynamoWishlist repo due that the "Move Issue by labels" workflow failed. There was a problem with the PAT used to label the issue, I was using the wrong one (no triggers actions).
Enabling the Geometry Scaling section part 1
I added the functionality for re-loading the ScaleValue in the Geometry Scaling section when the Preferences window is re-opened.
Also I set-up the binding functionality for the Render Precision section, so the precision will be reflected in the 3d Figure.
I removed some code that won't be used due that the ChangelScaleFactorPrompt window was deleted (now instead of the window we have 4 radio buttons in the Preferences -> Visual Settings -> Geometry Scaling section).
Also I deleted some events/commands used when the ScaleFactor changes due that the event won't be used.
This functionality was additional and I think is not needed since is not forcing to re-run the Graph for updating the Render Precision, so it's been deleted.
@RobertGlobant20
Copy link
Contributor Author

This is GIF for showing how the Geometry Scaling and Render Precision Functionality are working.
testing_RenderPrecision_GeoScaling

@RobertGlobant20 RobertGlobant20 mentioned this pull request May 3, 2021
9 tasks
}

public event EventHandler RequestScaleFactorDialog;
public virtual void OnRequestScaleFactorDialog(object sender, EventArgs e)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is partial class of DynamoViewModel. Let's obsolete instead of fully removal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@QilongTang I re-added the events and obsolete them in the commit: 10e7dfb

@QilongTang
Copy link
Contributor

@RobertGlobant20 Please address the conflicts and I will make a final review

Fixing issue that was producing when merging the updated master branch into my feature branch.
Based on Aaron comments instead of removing the event and the method I added the Obsolete decorator.
@QilongTang
Copy link
Contributor

Hi @RobertGlobant20 There is a regression DynamoPythonTests.PythonTestsWithLogging.DynamoPrintLogsToConsole, can you address that?

@RobertGlobant20
Copy link
Contributor Author

Hi @RobertGlobant20 There is a regression DynamoPythonTests.PythonTestsWithLogging.DynamoPrintLogsToConsole, can you address that?

@QilongTang now the DynamoSelfServe job is passing, I just updated the master branch and merged into my feature branch (I think the issue was related to other changes done after this pull request).

Thanks

@QilongTang QilongTang merged commit 661413a into DynamoDS:master May 6, 2021
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.

2 participants