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/logging #1574

Merged
merged 13 commits into from
Aug 2, 2024
Merged

Add/logging #1574

merged 13 commits into from
Aug 2, 2024

Conversation

leogermani
Copy link
Contributor

@leogermani leogermani commented Jul 16, 2024

All Submissions:

Changes proposed in this Pull Request:

Adds logging to contact syncing

How to test the changes in this Pull Request:

See https://github.com/Automattic/newspack-manager/pull/240

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link

codecov bot commented Jul 16, 2024

Codecov Report

Attention: Patch coverage is 42.01681% with 69 lines in your changes missing coverage. Please review.

Project coverage is 18.54%. Comparing base (da82e1d) to head (234868d).

Files Patch % Lines
includes/class-newspack-newsletters-contacts.php 32.07% 36 Missing ⚠️
...imp/class-newspack-newsletters-mailchimp-notes.php 68.75% 15 Missing ⚠️
...cludes/class-newspack-newsletters-subscription.php 0.00% 11 Missing ⚠️
...rs/class-newspack-newsletters-service-provider.php 0.00% 4 Missing ⚠️
includes/plugins/class-woocommerce-memberships.php 0.00% 3 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                        @@
##             update/update-method-calls    #1574      +/-   ##
================================================================
+ Coverage                         18.21%   18.54%   +0.33%     
- Complexity                         2313     2333      +20     
================================================================
  Files                                44       45       +1     
  Lines                              8760     8852      +92     
================================================================
+ Hits                               1596     1642      +46     
- Misses                             7164     7210      +46     

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

@leogermani leogermani changed the base branch from trunk to epic/consolidate-data-flows July 18, 2024 15:09
@leogermani leogermani changed the base branch from epic/consolidate-data-flows to update/update-method-calls July 19, 2024 19:19
@leogermani leogermani self-assigned this Jul 22, 2024
@leogermani leogermani marked this pull request as ready for review July 22, 2024 19:28
@leogermani leogermani requested a review from a team as a code owner July 22, 2024 19:28
@adekbadek
Copy link
Member

@leogermani – just noting that tests are not passing. Should be fixed before a CR.

Copy link
Contributor

@claudiulodro claudiulodro left a comment

Choose a reason for hiding this comment

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

Looks great! I think it's important to add the site URL to the MC notes, because there have been situations before where multiple sites were syncing to the same MC and causing weird data. This will make it easy to identify that situation.

…s-mailchimp-notes.php

Co-authored-by: Claudiu Lodromanean <[email protected]>
Copy link
Contributor

@dkoo dkoo left a comment

Choose a reason for hiding this comment

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

Only noticed one issue with an undefined variable upon deleting a user.

includes/class-newspack-newsletters-contacts.php Outdated Show resolved Hide resolved
Base automatically changed from update/update-method-calls to epic/consolidate-data-flows August 2, 2024 19:36
@leogermani leogermani requested a review from dkoo August 2, 2024 21:09
@leogermani leogermani merged commit ec0cbe0 into epic/consolidate-data-flows Aug 2, 2024
8 checks passed
@leogermani leogermani deleted the add/logging branch August 2, 2024 21:11
@leogermani leogermani mentioned this pull request Aug 13, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants