-
Notifications
You must be signed in to change notification settings - Fork 635
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
Simplify Dynamo Model initialization about HostName #12869
Conversation
@@ -628,18 +628,11 @@ protected DynamoModel(IStartConfiguration config) | |||
|
|||
UpdateManager = config.UpdateManager ?? new DefaultUpdateManager(null); | |||
|
|||
var hostUpdateManager = config.UpdateManager; | |||
|
|||
if (hostUpdateManager != null) |
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.
UpdateManager will exist either way from above code so we can just check it and set the value directly, no need to consider else case
@@ -628,18 +628,11 @@ protected DynamoModel(IStartConfiguration config) | |||
|
|||
UpdateManager = config.UpdateManager ?? new DefaultUpdateManager(null); |
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.
any reason to still even construct this object?
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.
@mjkkirschner I think just a chain of code depending on this object to exist but currently it is not guaranteed. e,g, Dynamo for C3D does not initialize it and that is causing some bugs
@pinzart90 What do you think of this change? The reported regression is not real |
Please Note:
DynamoRevit
repo will need to be cherry-picked into all the DynamoRevit Release branches that Dynamo supports. Contributors will be responsible for cherry-picking their reviewed commits to the other branches after aLGTM
label is added to the PR.Purpose
As pointed by Starlee, we have a bug during DynamoModel initialization that as long as
UpdateManager
fromstartupConfig
is null,HostName
will not be set byHostAnalyticsInfo
objectDeclarations
Check these if you believe they are true
*.resx
filesRelease Notes
Bug fixing
Reviewers
@DynamoDS/dynamo
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of