-
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
Add Analytics Coverage for Python Operations #11208
Conversation
Is this attached to a specific jira task? |
@@ -147,6 +147,10 @@ | |||
<Name>PythonNodeModels</Name> | |||
<Private>False</Private> | |||
</ProjectReference> | |||
<ProjectReference Include="..\NodeServices\DynamoServices.csproj"> |
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.
whats added from this project?
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.
Analytics is only available from logging, so in the future, everytime we want to track on extension layer (at least the OOTB ones developed by us), this will be a dependency in that case seems. We could expose APIs but unless we expose dashboards as well, APIs wont be useful I think
@@ -209,14 +218,24 @@ private void OnMoreInfoClicked(object sender, RoutedEventArgs e) | |||
|
|||
private void OnEngineChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) | |||
{ | |||
if (CachedEngine != nodeModel.Engine || originalScript != editText.Text) { nodeWasModified = true; } | |||
if (CachedEngine != nodeModel.Engine || originalScript != editText.Text) | |||
{ |
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.
👍
|
Seems https://github.com/DynamoDS/Dynamo/blob/master/test/DynamoCoreTests/AnalyticsTests.cs#L76 already covers regular event tracking on analytics side so new analytics code can be added without adding unit test unless a new type of type introduced. @pinzart What do you think? |
@@ -8,7 +8,7 @@ public class SideBySideViewModel : IDiffViewViewModel | |||
public SideBySideDiffModel DiffModel { get; set; } | |||
public DiffPaneModel AfterPane { get { return DiffModel.NewText; } } | |||
public DiffPaneModel BeforePane { get { return DiffModel.OldText; } } | |||
private bool HasChanges { get { return DiffModel.NewText.HasDifferences | DiffModel.OldText.HasDifferences; } } | |||
public bool HasChanges { get { return DiffModel.NewText.HasDifferences | DiffModel.OldText.HasDifferences; } } |
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.
@mmisol @aparajit-pratap @mjkkirschner I dont recall why we specifically made this property private, but I would like to expose it on interface level and add analytics coverage so we know not only user clicked accept or Reject but also if there are any real code changes.
Existing unit tests should be good enough |
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.
LGTM
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.
LGTM
Merging. @mjkkirschner I am thinking to actually cherry-picking this into RC2.9.0 so we have Python3 feature adoption baseline earlier. Any concerns? |
* Initial Commit * Analytics For Migration Assistant * More changes * Update Code Sequence * Add Analytics for Python Evaluation * Clean Up * More comments * Updates * Updates
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
Adding anaytics coverage for Python operations, way points added as part of https://git.autodesk.com/Dynamo/Analytics.NET/pull/22.
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@DynamoDS/dynamo
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of