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

PP-598 Removed the google analytics provider #1469

Merged
merged 4 commits into from
Oct 19, 2023

Conversation

RishiDiwanTT
Copy link
Contributor

Description

Removed the provider along with its test cases

Changed the analytics service test cases to use the s3 provider instead

Motivation and Context

The code didn't work anymore and was deprecated.

How Has This Been Tested?

All unit tests run post removal.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@RishiDiwanTT RishiDiwanTT requested a review from a team October 18, 2023 12:24
@RishiDiwanTT RishiDiwanTT self-assigned this Oct 18, 2023
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e22dade) 90.38% compared to head (3af2cf2) 90.38%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1469   +/-   ##
=======================================
  Coverage   90.38%   90.38%           
=======================================
  Files         233      232    -1     
  Lines       29713    29663   -50     
  Branches     6794     6786    -8     
=======================================
- Hits        26857    26812   -45     
+ Misses       1823     1817    -6     
- Partials     1033     1034    +1     
Flag Coverage Δ
Api 74.02% <ø> (-0.05%) ⬇️
Core 61.05% <ø> (+0.10%) ⬆️
migration 28.95% <ø> (+0.04%) ⬆️

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

Files Coverage Δ
api/admin/controller/analytics_services.py 94.73% <ø> (-1.37%) ⬇️

... and 1 file with indirect coverage changes

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

Copy link
Member

@jonathangreen jonathangreen left a comment

Choose a reason for hiding this comment

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

This looks good.

The only question / concern I have is: what happens when this code runs against a DB that already has a GA analytics provider configured? Will those settings still show in the admin UI? Will analytics fail to load since the class doesn't exist?

@RishiDiwanTT
Copy link
Contributor Author

This looks good.

The only question / concern I have is: what happens when this code runs against a DB that already has a GA analytics provider configured? Will those settings still show in the admin UI? Will analytics fail to load since the class doesn't exist?

@jonathangreen It would not hinder the running of the CM as the configuration would have been ignored. I'm not sure about the Admin UI bit. However, I realise leaving the data in the DB as almost no value since this can be reconfigured in case of a rollback.
I've added a migration to remove the google analytics settings.

@jonathangreen jonathangreen added the DB migration This PR contains a DB migration label Oct 19, 2023
Copy link
Member

@jonathangreen jonathangreen left a comment

Choose a reason for hiding this comment

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

Looks good

@RishiDiwanTT RishiDiwanTT merged commit 54fa9ef into main Oct 19, 2023
@RishiDiwanTT RishiDiwanTT deleted the feature/remove-google-analytics branch October 19, 2023 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DB migration This PR contains a DB migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants