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

fix: remove Optimizely and surrounding components #386

Merged
merged 6 commits into from
Jul 30, 2024

Conversation

MaxFrank13
Copy link
Member

@MaxFrank13 MaxFrank13 commented Jul 16, 2024

This PR accomplishes a few tasks that help to clean up some of the code around initializing Optimizely. This code is left over from an old experiment that should now be done using the frontend-plugin-framework, instead of embedding code directly in the MFE.

What's covered in this PR

  • Remove @optmizely/react-sdk dependency and references to SDK keys in .env files
  • Removed the entire ProductRecommendations directory — the main component from the old experiment
  • Remove the ExperimentProvider component
  • Remove the optimizelyScript that is injected into the <Head>
  • Remove WidgetFooter — used to render the ProductRecommendations component if the user was in the assigned experiment variant
  • Refactor the LoadedSidebar and NoCoursesSidebar widgets into a single WidgetSidebar component — there was some code duplication here that seemed unnecessary

@MaxFrank13 MaxFrank13 requested a review from a team as a code owner July 16, 2024 13:47
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.70%. Comparing base (e3b4e09) to head (3b9e492).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #386      +/-   ##
==========================================
- Coverage   96.23%   95.70%   -0.53%     
==========================================
  Files         184      166      -18     
  Lines        1751     1491     -260     
  Branches      307      267      -40     
==========================================
- Hits         1685     1427     -258     
+ Misses         62       60       -2     
  Partials        4        4              

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

@MaxFrank13 MaxFrank13 mentioned this pull request Jul 16, 2024
1 task
Copy link
Contributor

@justinhynes justinhynes left a comment

Choose a reason for hiding this comment

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

LGTM!

@MaxFrank13 MaxFrank13 merged commit a5d1cb3 into master Jul 30, 2024
6 of 7 checks passed
@MaxFrank13 MaxFrank13 deleted the mfrank/remove-optimizely branch July 30, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants