Skip to content

Conversation

escopecz
Copy link
Member

@escopecz escopecz commented Apr 5, 2025

Q A
Bug fix? (use the a.b branch) ✔️
New feature/enhancement? (use the a.x branch)
Deprecations? ✔️
BC breaks? (use the c.x branch) ✔️
Automated tests included?
Related user documentation PR URL mautic/user-documentation#...
Related developer documentation PR URL mautic/developer-documentation-new#...
Issue(s) addressed Fixes #...

Description

I've tested the new agent mode and asked it to go through the composer dependencies and find unused. It identified 4 libraries and those are being removed in this PR.

After removing it from app/composer.json I also ran composer remove symfony/yaml symfony/templating symfony/security-acl symfony/css-selector which mostly resulted in updates as the libraries are used in the dependencies of dependencies. But that's OK too. The only library that was really removed is the symfony/templating which was used when we were using the PHP templates, but those were refactored to use Twig as Symfony 6 didn't support PHP templates anymore and there is no version of symfony/templating for Symfony 7.

📋 Steps to test this PR:

  1. Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs here)
  2. Let the automated tests run. That should be good enough.

@escopecz escopecz added code-review-needed PR's that require a code review before merging dependencies Pull requests that update a dependency file composer Any bugs or PRs relating to composer labels Apr 5, 2025
@escopecz escopecz added this to the 7.0.0-alpha milestone Apr 5, 2025
@escopecz escopecz added the ready-to-test PR's that are ready to test label Apr 5, 2025
Copy link
Contributor

@matbcvo matbcvo left a comment

Choose a reason for hiding this comment

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

Seems like a useful tool, I wasn't aware it could analyze a large codebase like that. I verified that these Symfony components aren't used. The code changes look good to me. I have tested the PR and found no issues.

@matbcvo matbcvo added pending-test-confirmation PR's that require one test before they can be merged code-review-passed PRs which have passed code review and removed code-review-needed PR's that require a code review before merging ready-to-test PR's that are ready to test labels Apr 5, 2025
Copy link
Contributor

@shinde-rahul shinde-rahul left a comment

Choose a reason for hiding this comment

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

LGTM!!!

@escopecz escopecz added user-testing-passed PRs which have been successfully tested by the required number of people. and removed pending-test-confirmation PR's that require one test before they can be merged labels Apr 7, 2025
@escopecz escopecz merged commit dc2ff3c into mautic:7.x Apr 7, 2025
16 checks passed
@escopecz escopecz added the bug Issues or PR's relating to bugs label Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs code-review-passed PRs which have passed code review composer Any bugs or PRs relating to composer dependencies Pull requests that update a dependency file user-testing-passed PRs which have been successfully tested by the required number of people.
Projects
Status: 🥳 Done
Development

Successfully merging this pull request may close these issues.

3 participants