Skip to content

Removes AddThis feature from News#101

Merged
JPrevost merged 1 commit into
masterfrom
addthis
May 5, 2023
Merged

Removes AddThis feature from News#101
JPrevost merged 1 commit into
masterfrom
addthis

Conversation

@JPrevost

@JPrevost JPrevost commented May 3, 2023

Copy link
Copy Markdown
Member

How to see the changes:

There is a multidev (addthis) that this is deployed to. Looking at an individual news item will not display the addthis buttons on that multidev. The same news item viewed in our live tier will have the addthis buttons.

Why are these changes being introduced:

  • AddThis was not frequently used
  • The plugin we used was under review and hadn't been updated in a long time and was likely not actually supported

Relevant ticket(s):

How does this address that need:

  • Removes the plugin via composer
  • Removes the manual javascript inclusion that loaded AddThis from an external site
  • Removes some styles and custom logic on when to apply them

Developer

Secrets

  • All new secrets have been added to Pantheon tiers
  • Relevant secrets have been updated in Github Actions
  • All new secrets documented in README

Documentation

  • Project documentation has been updated
  • No documentation changes are needed

Accessibility

  • ANDI or Wave has been run in accordance to
    our guide and
    all issues introduced by these changes have been resolved or opened as new
    issues (link to those issues in the Pull Request details above)

Stakeholder approval

  • Stakeholder approval has been confirmed
  • Stakeholder approval is not needed

Dependencies

YES dependencies are updated

Code Reviewer

  • The commit message is clear and follows our guidelines
    (not just this pull request message)
  • The changes have been verified
  • The documentation has been updated or is unnecessary
  • New dependencies are appropriate or there were no changes

Why are these changes being introduced:

* AddThis was not frequently used
* The plugin we used was under review and hadn't been updated in a long
  time and was likely not actually supported

Relevant ticket(s):

* https://mitlibraries.atlassian.net/browse/LM-361

How does this address that need:

* Removes the plugin via composer
* Removes the manual javascript inclusion that loaded AddThis from
  an external site
* Removes some styles and custom logic on when to apply them
@JPrevost JPrevost requested a review from matt-bernhardt May 4, 2023 13:14

@matt-bernhardt matt-bernhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This all looks good to me - I've confirmed that addthis isn't being loaded in the review app, and appreciate the thoroughness of removing things like the hide-addthis.css stylesheet, not just getting rid of the plugin and inline call.

:shipit:

@JPrevost JPrevost merged commit 184cfd4 into master May 5, 2023
@JPrevost JPrevost deleted the addthis branch May 5, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants