Skip to content

[2.3.1] Wishlist module shouldn't have a hard dependency on Captcha module #22084

Open
@hostep

Description

@hostep

Preconditions (*)

  1. Magento 2.3.1
  2. PHP 7.2.15

Steps to reproduce (*)

  1. Install Magento 2.3.1 using composer
  2. Look at the file vendor/magento/module-wishlist/composer.json

Expected result (*)

  1. Not seeing magento/module-captcha in there
  2. The Wishlist module should be able to work when the captcha module isn't installed

Actual result (*)

  1. Seeing magento/module-captcha in there
  2. Not sure the wishlist module works without captcha installed, not tested yet.

Discussion

This dependency got introduced in Magento 2.3.1 in d8eacad#diff-649e244f0c6d1bd88471ebeee385eb6e

We don't want this hard dependency, because we don't want to install the default Captcha module of Magento, we have our own module for that and we don't need two modules providing similar functionality.

Until now, it looks like only the sendfriend module had a hard dependency on the captcha module (this is probably incorrect as well). We don't need the sendfriend module either, so we also don't install that, which allowed us to remove the captcha module as well.
But we do need the wishlist module so we can no longer remove the captcha module.

I'm not sure if this hard dependency can be removed somehow, it probably won't be that easy?
Maybe the coupling between captcha & wishlist should have been done in a new module instead of adding it to the existing wishlist module?

Metadata

Metadata

Labels

Area: FrameworkComponent: WishlistIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Reported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions