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

Add DataValidity property #486

Merged

Conversation

R-Palazzo
Copy link
Contributor

@R-Palazzo R-Palazzo commented Oct 26, 2023

CU-86ayg9qx7
Resolve #467

The visualization is:
Screenshot 2023-10-31 at 08 28 07

@frances-h, @npatki

@R-Palazzo R-Palazzo requested a review from a team as a code owner October 26, 2023 21:06
@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (960e4a8) 77.83% compared to head (58cb42b) 78.23%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                      Coverage Diff                      @@
##           diagnostic_report_updates     #486      +/-   ##
=============================================================
+ Coverage                      77.83%   78.23%   +0.39%     
=============================================================
  Files                            100      102       +2     
  Lines                           3574     3625      +51     
=============================================================
+ Hits                            2782     2836      +54     
+ Misses                           792      789       -3     
Files Coverage Δ
...etrics/reports/multi_table/_properties/__init__.py 100.00% <100.00%> (ø)
...s/reports/multi_table/_properties/data_validity.py 100.00% <100.00%> (ø)
...trics/reports/single_table/_properties/__init__.py 100.00% <100.00%> (ø)
.../reports/single_table/_properties/column_shapes.py 94.87% <ø> (+12.82%) ⬆️
.../reports/single_table/_properties/data_validity.py 95.45% <95.45%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@R-Palazzo R-Palazzo removed the request for review from a team October 26, 2023 21:12

},
pattern_shape='Metric',
pattern_shape_sequence=['', '/'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a 3rd pattern shape to further distinguish the 3rd metric in the visualizations? @npatki

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, done in fe4d1f4

Comment on lines 46 to 47
primary_key_match = column_name == metadata.get('primary_key')
alternate_key_match = column_name in metadata.get('alternate_keys', [])
Copy link
Contributor

Choose a reason for hiding this comment

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

we could get the primary and alternate keys outside of the loop and store as variables

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, done in fe4d1f4

@R-Palazzo R-Palazzo force-pushed the issue-467-data-validity-property branch from fe4d1f4 to 5776ad8 Compare October 31, 2023 15:01
@R-Palazzo R-Palazzo requested review from rwedge and frances-h October 31, 2023 22:10
@R-Palazzo R-Palazzo force-pushed the issue-467-data-validity-property branch from 5776ad8 to 58cb42b Compare October 31, 2023 22:19
Copy link
Contributor

@npatki npatki left a comment

Choose a reason for hiding this comment

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

LGTM

@R-Palazzo R-Palazzo merged commit 6ffc773 into diagnostic_report_updates Nov 2, 2023
45 checks passed
@R-Palazzo R-Palazzo deleted the issue-467-data-validity-property branch November 2, 2023 15:23
R-Palazzo added a commit that referenced this pull request Nov 2, 2023
R-Palazzo added a commit that referenced this pull request Nov 6, 2023
R-Palazzo added a commit that referenced this pull request Nov 14, 2023
R-Palazzo added a commit that referenced this pull request Nov 27, 2023
R-Palazzo added a commit that referenced this pull request Nov 27, 2023
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.

5 participants