Skip to content

Diagnostics: Track google query methods#807

Merged
tonidero merged 5 commits into
diagnosticsfrom
diagnostics-track-google-query-methods
Feb 22, 2023
Merged

Diagnostics: Track google query methods#807
tonidero merged 5 commits into
diagnosticsfrom
diagnostics-track-google-query-methods

Conversation

@tonidero

Copy link
Copy Markdown
Contributor

Description

This PR adds 3 new diagnostics events:

  • GOOGLE_QUERY_SKU_DETAILS_REQUEST
  • GOOGLE_QUERY_PURCHASES_REQUEST
  • GOOGLE_QUERY_PURCHASE_HISTORY_REQUEST

These events will be tracked when hitting the corresponding Google query methods.

@tonidero tonidero added the pr:feat A new feature label Feb 17, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I foresee a complicated merge conflict with BC5 once we support it... So I decided to just add the functionality to the BC4 version for now. My plan is to create a ticket to just do this again in the BC5 integration branch after it's been merged to main and to that branch. Lmk if you have any concerns over that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We were not cleaning mocks for all these tests afaik, which is surprising... I'm not sure if mockk is clearing mocks automatically on its own on each test... But in any case, I thought clearing mocks manually was safer. I would actually prefer to recreate all the mocks on each test, but this should also work.

@codecov

codecov Bot commented Feb 17, 2023

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (diagnostics@54d50b9). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head a7b2e69 differs from pull request most recent head 4e9d41d. Consider uploading reports for the commit 4e9d41d to get more accurate results

@@              Coverage Diff               @@
##             diagnostics     #807   +/-   ##
==============================================
  Coverage               ?   82.41%           
==============================================
  Files                  ?      130           
  Lines                  ?     4323           
  Branches               ?      548           
==============================================
  Hits                   ?     3563           
  Misses                 ?      543           
  Partials               ?      217           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just added some milliseconds difference to test response times.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not tracking amazon requests yet.

@tonidero tonidero marked this pull request as ready for review February 17, 2023 13:30
@tonidero tonidero requested a review from a team February 17, 2023 13:30

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love this API 👍🏻

@tonidero tonidero force-pushed the diagnostics-rename-entries-events branch from 72d72e2 to 8ef8322 Compare February 22, 2023 11:22
Base automatically changed from diagnostics-rename-entries-events to diagnostics February 22, 2023 11:25
@tonidero tonidero force-pushed the diagnostics-track-google-query-methods branch from a7b2e69 to 75e3d5e Compare February 22, 2023 11:43
@tonidero

Copy link
Copy Markdown
Contributor Author

Tests are failing due to Sdkman but they are passing locally and since this is being merged to a non-main branch, will merge it for now. Will deal with those issues in that branch.

@tonidero tonidero merged this pull request into diagnostics Feb 22, 2023
@tonidero tonidero deleted the diagnostics-track-google-query-methods branch February 22, 2023 17:34
tonidero added a commit that referenced this pull request Feb 28, 2023
tonidero added a commit that referenced this pull request Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:feat A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants