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

Bug 1648441 - Implement string list in C# #1108

Merged
merged 7 commits into from
Aug 4, 2020

Conversation

daoshengmu
Copy link
Contributor

@daoshengmu daoshengmu commented Jul 29, 2020

  • StringListMetricType C# binding.

  • Tests for StringListMetricType C# binding.

Copy link
Contributor

@Dexterp37 Dexterp37 left a comment

Choose a reason for hiding this comment

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

This looks good overall with the comments below addressed. Please kindly also add documentation for this in this page. Just transform the Kotlin example to C# and you should be done :) See, for example, how it's done for counters

I will be away tomorrow, so please ping @travis79 for any further review on this!

glean-core/csharp/Glean/Metrics/StringListMetricType.cs Outdated Show resolved Hide resolved
glean-core/csharp/Glean/Metrics/StringListMetricType.cs Outdated Show resolved Hide resolved
glean-core/csharp/Glean/Metrics/StringListMetricType.cs Outdated Show resolved Hide resolved
glean-core/csharp/Glean/Metrics/StringListMetricType.cs Outdated Show resolved Hide resolved
glean-core/csharp/Glean/Metrics/StringListMetricType.cs Outdated Show resolved Hide resolved
glean-core/csharp/Glean/Metrics/StringListMetricType.cs Outdated Show resolved Hide resolved
glean-core/csharp/Glean/Metrics/StringListMetricType.cs Outdated Show resolved Hide resolved
@Dexterp37 Dexterp37 requested a review from travis79 July 30, 2020 11:25
Copy link
Member

@travis79 travis79 left a comment

Choose a reason for hiding this comment

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

I don't have anything to add to what @Dexterp37 mentioned. There were a handful of comments that needed some corrections.

[Fact]
public void DisabledListMustNotRecordData()
{
// Define a 'stringMetric' string metric, which will be stored in "store1"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Define a 'stringMetric' string metric, which will be stored in "store1"
// Define a 'stringListMetric' string list metric, which will be stored in "store1"

@daoshengmu daoshengmu force-pushed the cSharpStringList branch 2 times, most recently from 6bc0ed3 to dfcdb23 Compare July 30, 2020 18:29
@travis79
Copy link
Member

The broken Swift formatting is due to an update to the linting tool and may be ignored for now. I'll be working to fix it tomorrow.

@Dexterp37 Dexterp37 merged commit 5db6f8e into mozilla:main Aug 4, 2020
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.

3 participants