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

Skip default values when collecting feature usages for Analytics #145

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

christianhelle
Copy link
Owner

The changes here improved the code readability and maintainability in the Analytics class by extracting the conditions used for determining if a feature can be logged from the iteration over Settings properties into a separate CanLogFeature() method. This change was necessary to clean up complex conditionals and also prepare the code for any future conditions that might be added for validating a loggable feature.

Improved the code readability and maintainability in the Analytics.cs by extracting the conditions used for determining if a feature can be logged from the iteration over Settings properties into a separate CanLogFeature method. This change was necessary to clean up complex conditionals and also prepare the code for any future conditions that might be added for validating a loggable feature.
@christianhelle christianhelle added the enhancement New feature, bug fix, or request label Sep 10, 2023
@christianhelle christianhelle self-assigned this Sep 10, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Sep 10, 2023

Codecov Report

Merging #145 (7da8d11) into main (798d693) will not change coverage.
Report is 4 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #145   +/-   ##
=======================================
  Coverage   98.47%   98.47%           
=======================================
  Files          37       37           
  Lines        1178     1178           
=======================================
  Hits         1160     1160           
  Misses          6        6           
  Partials       12       12           
Flag Coverage Δ
unittests 98.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@christianhelle christianhelle merged commit 17ebcb5 into main Sep 10, 2023
@christianhelle christianhelle deleted the ignore-default-values-for-feature-logging branch September 10, 2023 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, bug fix, or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant