Skip to content

Helix upgrade PR to merge the changes from the master branch #10388

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

Merged
merged 22 commits into from
Feb 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3a0b3e3
LibG Binaries Update (#10295)
DynamoEngOps Jan 14, 2020
767577c
Change mechanism to retreive the certificate from assembly (#10301)
saintentropy Jan 16, 2020
df489c8
DYN-2225 - Marshaling Performance optimization - Heap Cleanup (#10026)
saintentropy Jan 18, 2020
f7b71d6
DYN-2289: Fix crash with NodeToCode (#10305)
aparajit-pratap Jan 21, 2020
186499f
Geometry Color Tests More (#10291)
QilongTang Jan 21, 2020
c1a5342
update newly added test (#10313)
QilongTang Jan 22, 2020
6ea9c03
DYN-2286: fix for crash upon unresolved node undo (#10315)
aparajit-pratap Jan 23, 2020
6329c53
DYN-2328 Add test for geometry labeling (#10311)
reddyashish Jan 24, 2020
2ebaf72
First Github Action (#10131)
QilongTang Jan 24, 2020
a2d29ed
Removal of PR trigger for now (#10323)
QilongTang Jan 27, 2020
f04dbb0
Analytics Agreement Workflow Update (#10314)
QilongTang Jan 27, 2020
97cecfd
Add missing resource string (#10329)
QilongTang Jan 28, 2020
01c1ab2
LibG Binaries Update (#10331)
DynamoEngOps Jan 29, 2020
333f55c
Fix the library view display issues introduced by MS WebBrowser (#10316)
CoolStarLee Jan 29, 2020
3430655
[DYN-2382] LibraryViewExtensionMSWebBrowser does not scale correctly …
reddyashish Jan 29, 2020
b673edc
Skip GA Client Tear Down Process if NOT Necessary (#10340)
QilongTang Jan 31, 2020
bcc8d47
[Analytics] Update Tracking Conditions (#10345)
QilongTang Jan 31, 2020
91ffc19
PR comment (#10347)
QilongTang Feb 3, 2020
eef2c52
Code improvements: (#10348)
CoolStarLee Feb 3, 2020
036be9c
Merge remote-tracking branch 'upstream/master' into helix-upgrade
reddyashish Feb 4, 2020
82e7a3e
Update HelixWatch3DViewModelTests.cs
reddyashish Feb 13, 2020
e870f67
Updating Watch3D_Disconnect_Reconnect_CorrectRenderings test
reddyashish Feb 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Greetings

on: [issues]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Thank you for submitting the issue to us. We are sorry if you get stuck on your workflow. While waiting for our team member to respond, please feel free to browse our forum at https://forum.dynamobim.com/ for more Dynamo related information.'
pr-message: 'Thank you for contributing to Dynamo. We are thrilled to see you take a step forward and please allow up to 30 days for us to review your PR. While waiting for our team member to respond, please feel free to browse our forum at https://forum.dynamobim.com/ for more Dynamo related information.'
Binary file modified extern/LibG_224_0_1/LibG.AsmPreloader.Managed.dll
Binary file not shown.
Binary file modified extern/LibG_224_0_1/LibG.AsmPreloader.Unmanaged.dll
Binary file not shown.
Binary file modified extern/LibG_224_0_1/LibG.Managed.dll
Binary file not shown.
Binary file modified extern/LibG_224_0_1/LibG.ProtoInterface.dll
Binary file not shown.
Binary file modified extern/LibG_224_0_1/LibG.dll
Binary file not shown.
Binary file modified extern/LibG_224_0_1/LibGCore.dll
Binary file not shown.
Binary file modified extern/LibG_224_4_0/LibG.AsmPreloader.Managed.dll
Binary file not shown.
Binary file modified extern/LibG_224_4_0/LibG.AsmPreloader.Unmanaged.dll
Binary file not shown.
Binary file modified extern/LibG_224_4_0/LibG.Managed.dll
Binary file not shown.
Binary file modified extern/LibG_224_4_0/LibG.ProtoInterface.dll
Binary file not shown.
Binary file modified extern/LibG_224_4_0/LibG.dll
Binary file not shown.
Binary file modified extern/LibG_224_4_0/LibGCore.dll
Binary file not shown.
Binary file modified extern/LibG_225_0_0/LibG.AsmPreloader.Managed.dll
Binary file not shown.
Binary file modified extern/LibG_225_0_0/LibG.AsmPreloader.Unmanaged.dll
Binary file not shown.
Binary file modified extern/LibG_225_0_0/LibG.Managed.dll
Binary file not shown.
Binary file modified extern/LibG_225_0_0/LibG.ProtoInterface.dll
Binary file not shown.
Binary file modified extern/LibG_225_0_0/LibG.dll
Binary file not shown.
Binary file modified extern/LibG_225_0_0/LibGCore.dll
Binary file not shown.
Binary file modified extern/LibG_226_0_0/LibG.AsmPreloader.Managed.dll
Binary file not shown.
Binary file modified extern/LibG_226_0_0/LibG.AsmPreloader.Unmanaged.dll
Binary file not shown.
Binary file modified extern/LibG_226_0_0/LibG.Managed.dll
Binary file not shown.
Binary file modified extern/LibG_226_0_0/LibG.ProtoInterface.dll
Binary file not shown.
Binary file modified extern/LibG_226_0_0/LibG.dll
Binary file not shown.
Binary file modified extern/LibG_226_0_0/LibGCore.dll
Binary file not shown.
Binary file modified extern/ProtoGeometry/LibG.Interface.dll
Binary file not shown.
Binary file modified extern/ProtoGeometry/ProtoGeometry.dll
Binary file not shown.
Binary file modified extern/ProtoGeometry/en-US/ProtoGeometry.resources.dll
Binary file not shown.
14 changes: 10 additions & 4 deletions src/DynamoCore/Graph/Nodes/CodeBlockNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ public override ProtoCore.Type GetTypeHintForOutput(int index)
if (statement == null)
return type;

BinaryExpressionNode expr = statement.AstNode as BinaryExpressionNode;
var expr = statement.AstNode as BinaryExpressionNode;
if (expr == null || expr.Optr != Operator.assign)
return type;

Expand All @@ -554,15 +554,21 @@ public override ProtoCore.Type GetTypeHintForOutput(int index)
return type;

var classIndex = core.ClassTable.IndexOf(fullyQualifiedName);
if (classIndex == ProtoCore.DSASM.Constants.kInvalidIndex)
if (classIndex == Constants.kInvalidIndex)
return type;

var targetClass = core.ClassTable.ClassNodes[classIndex];
var func = targetClass.GetFirstMemberFunctionBy(funcNode.Function.Name);
var funcName = funcNode.Function.Name;
var func = targetClass.GetFirstMemberFunctionBy(funcName);
if (func == null)
{
func = targetClass.ProcTable.GetPropertyGetterByName(funcName);
}
type = func.ReturnType;
return type;
}
else if (expr.RightNode is FunctionCallNode)

if (expr.RightNode is FunctionCallNode)
{
var functionCallNode = expr.RightNode as FunctionCallNode;
ProtoCore.FunctionGroup funcGroup;
Expand Down
28 changes: 20 additions & 8 deletions src/DynamoCore/Graph/Nodes/DummyNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Xml;

namespace Dynamo.Graph.Nodes
Expand Down Expand Up @@ -250,11 +251,10 @@ private void LoadNode(XmlNode nodeElement)
OutputCount = Int32.Parse(outputCount.Value);
LegacyNodeName = legacyName.Value;

if (nodeElement.ChildNodes != null)
foreach (XmlNode childNode in nodeElement.ChildNodes)
{
foreach (XmlNode childNode in nodeElement.ChildNodes)
if (childNode.Name.Equals("OriginalNodeContent"))
OriginalNodeContent = (XmlElement)nodeElement.FirstChild.FirstChild;
if (childNode.Name.Equals("OriginalNodeContent"))
OriginalNodeContent = (XmlElement) nodeElement.FirstChild.FirstChild;
}

if (originalElement != null)
Expand Down Expand Up @@ -292,18 +292,30 @@ private void LoadNode(XmlNode nodeElement)

private void UpdatePorts()
{
var guids = InPorts.Select(x => x.GUID).ToArray();
InPorts.Clear();
for (int input = 0; input < InputCount; input++)
{
var name = string.Format("Port {0}", input + 1);
InPorts.Add(new PortModel(PortType.Input, this, new PortData(name, "")));
var name = $"Port {input + 1}";
var pm = new PortModel(PortType.Input, this, new PortData(name, ""));
InPorts.Add(pm);
if (guids.Length == InputCount)
{
pm.GUID = guids[input];
}
}

guids = OutPorts.Select(x => x.GUID).ToArray();
OutPorts.Clear();
for (int output = 0; output < OutputCount; output++)
{
var name = string.Format("Port {0}", output + 1);
OutPorts.Add(new PortModel(PortType.Output, this, new PortData(name, "")));
var name = $"Port {output + 1}";
var pm = new PortModel(PortType.Output, this, new PortData(name, ""));
OutPorts.Add(pm);
if (guids.Length == OutputCount)
{
pm.GUID = guids[output];
}
}

RegisterAllPorts();
Expand Down
19 changes: 18 additions & 1 deletion src/DynamoCore/Graph/Nodes/PortModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public enum PortType { Input, Output };
/// <summary>
/// PortModel represents Dynamo ports.
/// </summary>
public class PortModel : ModelBase
public class PortModel : ModelBase, IEquatable<PortModel>
{
#region private fields
ObservableCollection<ConnectorModel> connectors = new ObservableCollection<ConnectorModel>();
Expand Down Expand Up @@ -369,6 +369,23 @@ protected override void DeserializeCore(XmlElement nodeElement, SaveContext cont
}

#endregion

public bool Equals(PortModel other)
{
if (other == null) return false;

if (this == other) return true;

if (GUID == other.GUID) return true;

return false;
}

public override int GetHashCode()
{
return GUID.GetHashCode();
}

}

/// <summary>
Expand Down
44 changes: 32 additions & 12 deletions src/DynamoCore/Logging/DynamoAnalyticsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ public void Dispose()
else
StabilityCookie.WriteCleanShutdown();

Service.ShutDown();
//Unregister the GATrackerFactory only after shutdown is recorded.
//Unregister is required, so that the host app can re-start Analytics service.
Service.Instance.Unregister(GATrackerFactory.Name);
// If the Analytics Client was initialized, shut it down.
// Otherwise skip this step because it would cause an exception.
if (Service.IsInitialized)
{
Service.ShutDown();
// Unregister the GATrackerFactory only after shutdown is recorded.
// Unregister is required, so that the host app can re-start Analytics service.
Service.Instance.Unregister(GATrackerFactory.Name);
}

if (null != heartbeat)
Heartbeat.DestroyInstance();
Expand Down Expand Up @@ -123,14 +128,27 @@ public void Dispose() { }

public virtual IAnalyticsSession Session { get; private set; }

/// <summary>
/// Return if Analytics Client is allowed to send analytics info
/// </summary>
public bool ReportingAnalytics
{
get { return preferences != null && preferences.IsAnalyticsReportingApproved; }
get
{
return preferences != null
&& Service.IsInitialized
&& preferences.IsAnalyticsReportingApproved;
}
}

/// <summary>
/// Return if Analytics Client is allowed to send instrumentation info
/// </summary>
public bool ReportingUsage
{
get { return preferences != null && preferences.IsUsageReportingApproved; }
get { return preferences != null
&& Service.IsInitialized
&& preferences.IsUsageReportingApproved; }
}

/// <summary>
Expand Down Expand Up @@ -160,12 +178,14 @@ public DynamoAnalyticsClient(DynamoModel dynamoModel)
/// </summary>
public void Start()
{
//If not ReportingAnalytics, then set the idle time as infinite so idle state is not recorded.
Service.StartUp(product,
new UserInfo(Session.UserId), ReportingAnalytics ? TimeSpan.FromMinutes(30) : TimeSpan.MaxValue);

TrackPreferenceInternal("ReportingAnalytics", "", ReportingAnalytics ? 1 : 0);
TrackPreferenceInternal("ReportingUsage", "", ReportingUsage ? 1 : 0);
if (preferences!= null && preferences.IsAnalyticsReportingApproved)
{
//If not ReportingAnalytics, then set the idle time as infinite so idle state is not recorded.
Service.StartUp(product,
new UserInfo(Session.UserId), preferences.IsAnalyticsReportingApproved ? TimeSpan.FromMinutes(30) : TimeSpan.MaxValue);
TrackPreferenceInternal("ReportingAnalytics", "", ReportingAnalytics ? 1 : 0);
TrackPreferenceInternal("ReportingUsage", "", ReportingUsage ? 1 : 0);
}
}

public void ShutDown()
Expand Down
58 changes: 18 additions & 40 deletions src/DynamoCoreWpf/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 9 additions & 19 deletions src/DynamoCoreWpf/Properties/Resources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -757,25 +757,9 @@ You will get a chance to save your work.</value>
<value>Decimal Inch</value>
<comment>Setting menu | Decimal inch</comment>
</data>
<data name="DynamoViewSettingMenuEnableDataReporting" xml:space="preserve">
<value>Enable detailed usability data reporting (Instrumentation)</value>
<comment>Setting menu | Enable data reporting during usage</comment>
</data>
<data name="DynamoViewSettingMenuEnableDataReportingTooltip" xml:space="preserve">
<value>Detailed reporting sends behaviour data that we use for improving {0}.

It includes the graph being created as well as errors and warnings</value>
<comment>Setting menu | Tooltip for enable data reporting during usage menu item</comment>
</data>
<data name="DynamoViewSettingMenuEnableSummaryReporting" xml:space="preserve">
<value>Enable anonymous summary reporting (Google Analytics)</value>
<comment>Setting menu | Enable summary reporting</comment>
</data>
<data name="DynamoViewSettingMenuEnableSummaryReportingTooltip" xml:space="preserve">
<value>Anonymous summary reporting sends a minimal set of data for computing user counts, stability and performance metrics.

It does not contain your graph or any personal data</value>
<comment>Setting menu | Tooltip for enable summary reporting during usage menu item</comment>
<data name="DynamoViewSettingMenuShowDataReportingDialog" xml:space="preserve">
<value>Agreement to Collect Usability Data</value>
<comment>Setting menu | Show user agreement dialog about data collecting</comment>
</data>
<data name="DynamoViewSettingMenuFractionalFoot" xml:space="preserve">
<value>Fractional Foot</value>
Expand Down Expand Up @@ -2231,4 +2215,10 @@ Uninstall the following packages: {0}?</value>
<data name="PackageSearchViewFilterByButton" xml:space="preserve">
<value>Filter by</value>
</data>
<data name="DynamoViewSettingMenuShowDataReportingDialogTooltip" xml:space="preserve">
<value>Display the dialog for user to pick agreement on data collecting.</value>
</data>
<data name="CrashPromptGithubNewIssueTitle" xml:space="preserve">
<value>Crash report from Dynamo {0}</value>
</data>
</root>
25 changes: 6 additions & 19 deletions src/DynamoCoreWpf/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -482,25 +482,9 @@
<value>Decimal Inch</value>
<comment>Setting menu | Decimal inch</comment>
</data>
<data name="DynamoViewSettingMenuEnableDataReporting" xml:space="preserve">
<value>Enable detailed usability data reporting (Instrumentation)</value>
<comment>Setting menu | Enable data reporting during usage</comment>
</data>
<data name="DynamoViewSettingMenuEnableDataReportingTooltip" xml:space="preserve">
<value>Detailed reporting sends behaviour data that we use for improving {0}.

It includes the graph being created as well as errors and warnings</value>
<comment>Setting menu | Tooltip for enable data reporting during usage menu item</comment>
</data>
<data name="DynamoViewSettingMenuEnableSummaryReporting" xml:space="preserve">
<value>Enable anonymous summary reporting (Google Analytics)</value>
<comment>Setting menu | Enable summary reporting</comment>
</data>
<data name="DynamoViewSettingMenuEnableSummaryReportingTooltip" xml:space="preserve">
<value>Anonymous summary reporting sends a minimal set of data for computing user counts, stability and performance metrics.

It does not contain your graph or any personal data</value>
<comment>Setting menu | Tooltip for enable summary reporting during usage menu item</comment>
<data name="DynamoViewSettingMenuShowDataReportingDialog" xml:space="preserve">
<value>Agreement to Collect Usability Data</value>
<comment>Setting menu | Show user agreement dialog about data collecting</comment>
</data>
<data name="DynamoViewSettingShowRunPreview" xml:space="preserve">
<value>Show Run Preview</value>
Expand Down Expand Up @@ -2234,4 +2218,7 @@ Uninstall the following packages: {0}?</value>
<data name="PackageSearchViewFilterByButton" xml:space="preserve">
<value>Filter by</value>
</data>
<data name="DynamoViewSettingMenuShowDataReportingDialogTooltip" xml:space="preserve">
<value>Display the dialog for user to pick agreement on data collecting.</value>
</data>
</root>
Loading