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

[FEATURE] update slack renderer to new design #9919

Merged
merged 10 commits into from
May 14, 2024

Conversation

jshaikGX
Copy link
Contributor

@jshaikGX jshaikGX commented May 13, 2024

Screenshot 2024-05-14 at 10 25 31 AM Screenshot 2024-05-14 at 1 08 33 PM Screenshot 2024-05-14 at 2 46 38 PM Screenshot 2024-05-14 at 1 11 09 PM
  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses ruff format + ruff check)
  • Appropriate tests and docs have been updated

For more information about contributing, see Contribute.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

Copy link

netlify bot commented May 13, 2024

Deploy Preview for niobium-lead-7998 ready!

Name Link
🔨 Latest commit 4bdc23a
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/6643b22cceb09f00087f2d21
😎 Deploy Preview https://deploy-preview-9919.docs.greatexpectations.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jshaikGX jshaikGX force-pushed the f/PH-1240/slack_renderer_update branch from 50fab50 to 882c442 Compare May 13, 2024 16:19
@jshaikGX jshaikGX force-pushed the f/PH-1240/slack_renderer_update branch from 026d002 to e1d0f33 Compare May 13, 2024 19:53
@jshaikGX jshaikGX force-pushed the f/PH-1240/slack_renderer_update branch from 321a16e to b59c95c Compare May 13, 2024 21:02
@jshaikGX jshaikGX requested a review from cdkini May 14, 2024 01:52
Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 69.38776% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 77.37%. Comparing base (8011451) to head (4bdc23a).

Files Patch % Lines
...eat_expectations/render/renderer/slack_renderer.py 69.38% 15 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9919      +/-   ##
===========================================
+ Coverage    77.33%   77.37%   +0.03%     
===========================================
  Files          490      490              
  Lines        41659    41635      -24     
===========================================
- Hits         32218    32213       -5     
+ Misses        9441     9422      -19     
Flag Coverage Δ
3.10 63.59% <69.38%> (+0.02%) ⬆️
3.10 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds ?
3.10 aws_deps ?
3.10 big ?
3.10 databricks ?
3.10 filesystem ?
3.10 mssql ?
3.10 mysql ?
3.10 postgresql ?
3.10 snowflake ?
3.10 spark ?
3.10 trino ?
3.11 63.59% <69.38%> (+0.02%) ⬆️
3.11 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.71% <14.28%> (+0.02%) ⬆️
3.11 aws_deps 44.74% <14.28%> (+0.02%) ⬆️
3.11 big 54.28% <14.28%> (+0.02%) ⬆️
3.11 databricks 45.92% <14.28%> (+0.02%) ⬆️
3.11 filesystem 59.09% <14.28%> (+0.02%) ⬆️
3.11 mssql 48.80% <14.28%> (+0.02%) ⬆️
3.11 mysql 48.86% <14.28%> (+0.02%) ⬆️
3.11 postgresql 52.74% <14.28%> (+0.02%) ⬆️
3.11 snowflake 46.56% <14.28%> (+0.02%) ⬆️
3.11 spark 56.35% <14.28%> (+0.02%) ⬆️
3.11 trino 50.79% <14.28%> (+0.02%) ⬆️
3.8 63.61% <69.38%> (+0.02%) ⬆️
3.8 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.72% <14.28%> (+0.02%) ⬆️
3.8 aws_deps 44.75% <14.28%> (+0.02%) ⬆️
3.8 big 54.29% <14.28%> (+0.02%) ⬆️
3.8 databricks 45.94% <14.28%> (+0.02%) ⬆️
3.8 filesystem 59.10% <14.28%> (+0.02%) ⬆️
3.8 mssql 48.78% <14.28%> (+0.02%) ⬆️
3.8 mysql 48.84% <14.28%> (+0.02%) ⬆️
3.8 postgresql 52.72% <14.28%> (+0.02%) ⬆️
3.8 snowflake 46.58% <14.28%> (+0.01%) ⬆️
3.8 spark 56.31% <14.28%> (+0.02%) ⬆️
3.8 trino 50.78% <14.28%> (+0.02%) ⬆️
3.9 63.61% <69.38%> (+0.02%) ⬆️
3.9 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds ?
3.9 aws_deps ?
3.9 big ?
3.9 databricks ?
3.9 filesystem ?
3.9 mssql ?
3.9 mysql ?
3.9 postgresql ?
3.9 snowflake ?
3.9 spark ?
3.9 trino ?
cloud 0.00% <0.00%> (ø)
docs-basic 47.45% <14.28%> (+0.02%) ⬆️
docs-creds-needed 48.52% <14.28%> (+0.02%) ⬆️
docs-spark 47.18% <14.28%> (+0.02%) ⬆️

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

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

"""

expectation_suite_name = validation_result.suite_name
data_asset_name = validation_result.asset_name or "__no_data_asset_name__"
Copy link
Member

Choose a reason for hiding this comment

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

I think we should always have an asset_name - we may want to remove the property we have at the top level of the ExpectationSuiteValidationResult, add it as a param to the constructor, and make sure that whoever is creating the object is providing the necessary data

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will address this as a separate thing because editing the ExpectationSuiteValidationResult which will result in many TFs and code changes that I'd rather not make as part of this effort

Comment on lines +570 to +571
"type": "section",
"text": {"type": "plain_text", "text": "Runtime: 2024/04/01 08:51 PM"},
Copy link
Member

Choose a reason for hiding this comment

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

Could we get a test with multiple assets? Additionally, could you add a screenshot of what that renders like?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added another test in test_core_actions.py to cover this scenario

@jshaikGX jshaikGX requested a review from cdkini May 14, 2024 17:10
return {"blocks": all_blocks}

def _build_header(self, name: str, success: bool, checkpoint_name: str) -> dict:
status = "Success :white_check_mark:" if success else "Failure :no_entry:"
Copy link
Member

Choose a reason for hiding this comment

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

Nit - could we move these Slack emojis to class vars? They're currently magic strings (I know I left it like this before)

@jshaikGX jshaikGX added this pull request to the merge queue May 14, 2024
Merged via the queue into develop with commit 436f652 May 14, 2024
68 checks passed
@jshaikGX jshaikGX deleted the f/PH-1240/slack_renderer_update branch May 14, 2024 19:28
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.

None yet

2 participants