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

Misc fixes for group info in logging #11218

Merged
merged 7 commits into from
Jan 21, 2025
Merged

Misc fixes for group info in logging #11218

merged 7 commits into from
Jan 21, 2025

Conversation

aranke
Copy link
Member

@aranke aranke commented Jan 16, 2025

Solution

Misc. fixes for group info in logging:

  • Add to new messages – LogSnapshotResult, LogSeedResult, SkippingDetails, LogSkipBecauseError
  • Allow multiple emails in a single group
    • These are stringified before being written out

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

@cla-bot cla-bot bot added the cla:yes label Jan 16, 2025
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.19%. Comparing base (3de3b82) to head (64b4d6d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11218      +/-   ##
==========================================
- Coverage   88.92%   86.19%   -2.73%     
==========================================
  Files         187      187              
  Lines       24041    24049       +8     
==========================================
- Hits        21378    20729     -649     
- Misses       2663     3320     +657     
Flag Coverage Δ
integration 86.19% <100.00%> (-0.13%) ⬇️
unit ?

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

Components Coverage Δ
Unit Tests 86.19% <100.00%> (-2.73%) ⬇️
Integration Tests 86.19% <100.00%> (-0.13%) ⬇️

@aranke aranke added the artifact_minor_upgrade To bypass the CI check by confirming that the change is not breaking label Jan 17, 2025
@aranke aranke changed the title wip: group info fixes Misc fixes for group info in logging Jan 17, 2025
@aranke aranke marked this pull request as ready for review January 17, 2025 15:22
@aranke aranke requested a review from a team as a code owner January 17, 2025 15:22
assert group_data["name"] == "my_group_with_multiple_emails"
assert group_data["owner"] == {
"name": "my_name",
"email": "['[email protected]', '[email protected]']",
Copy link
Member Author

Choose a reason for hiding this comment

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

@rviswanathan-dbt Please check this format, thanks!

Choose a reason for hiding this comment

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

This looks good, just want to confirm what this field looks like in different scenarios:

  1. single email - "email": "[email protected]"
  2. multiple emails - email": "['[email protected]', '[email protected]']"

@aranke is my understanding correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, correct.

Copy link
Member

@emmyoop emmyoop left a comment

Choose a reason for hiding this comment

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

Other than the changelog nit, this looks good to me once orc confirms the format.

.changes/unreleased/Under the Hood-20250117-152215.yaml Outdated Show resolved Hide resolved
Copy link

@rviswanathan-dbt rviswanathan-dbt left a comment

Choose a reason for hiding this comment

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

had 1 q. but otherwise looks good!

@aranke aranke merged commit 31881d2 into main Jan 21, 2025
53 of 56 checks passed
@aranke aranke deleted the group_info_fixes branch January 21, 2025 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
artifact_minor_upgrade To bypass the CI check by confirming that the change is not breaking cla:yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants