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

Allows Global ReCAPTCHA #288 #289

Closed
wants to merge 4 commits into from
Closed

Conversation

thomas-kl1
Copy link
Member

@thomas-kl1 thomas-kl1 commented Feb 3, 2021

Add the alternative domain https://www.recaptcha.net/recaptcha/api.js

Description (*)

As a merchant I want to select the captcha domain:

https://www.google.com/recaptcha/api.js
https://www.recaptcha.net/recaptcha/api.js
See Google Documentation: https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally

Fixed Issues (if relevant)

  1. Allow use reCAPTCHA globally #288: Allow use reCAPTCHA gloabally

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Beside that the PR aims to fix components dependencies declaration.
This PR also add return type hint when possible to method signatures.

Contribution checklist (*)

  • Author has signed the Adobe CLA
  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@thomas-kl1 thomas-kl1 changed the title start working on #288 [Draft] start working on #288 Feb 3, 2021
@thomas-kl1 thomas-kl1 force-pushed the develop branch 11 times, most recently from f5ff14c to 282463a Compare February 7, 2021 13:38
@thomas-kl1 thomas-kl1 changed the title [Draft] start working on #288 Allows Global ReCAPTCHA #288 Feb 7, 2021
ReCaptchaAdminUi/Model/OptionSource.php Outdated Show resolved Hide resolved
ReCaptchaAdminUi/Model/OptionSource.php Show resolved Hide resolved
ReCaptchaFrontendUi/etc/frontend/di.xml Show resolved Hide resolved
ReCaptchaUi/Model/UiConfigResolver.php Outdated Show resolved Hide resolved
ReCaptchaUi/Model/UiConfigResolver.php Outdated Show resolved Hide resolved
ReCaptchaUi/Model/ValidationConfigResolver.php Outdated Show resolved Hide resolved
ReCaptchaUi/Model/ValidationConfigResolver.php Outdated Show resolved Hide resolved
ReCaptchaUser/view/adminhtml/templates/recaptcha.phtml Outdated Show resolved Hide resolved
@thomas-kl1
Copy link
Member Author

@magento run all tests

@thomas-kl1
Copy link
Member Author

hi @nathanjosiah could you take a look on my comments?

@thomas-kl1
Copy link
Member Author

poke @nathanjosiah

@nathanjosiah
Copy link
Contributor

@thomas-kl1 Apologies for the delay, I am on paternity leave but I left a comment and resolved some existing ones.

@thomas-kl1
Copy link
Member Author

@nathanjosiah ho! Congrats! 🎊 🎊

@thomas-kl1
Copy link
Member Author

@magento run all tests

@thomas-kl1
Copy link
Member Author

The failures in tests does not seems to be related to this PR.

@nathanjosiah
Copy link
Contributor

Connected to #288

@nathanjosiah
Copy link
Contributor

@thomas-kl1 can you merge develop and rerun builds?

@thomas-kl1
Copy link
Member Author

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@nathanjosiah
Copy link
Contributor

@thomas-kl1 Something appears to be broken with MFTF test generation. The error log indicates it is unable to generate at least one of the tests. Can you check that you are able to build locally?

@thomas-kl1
Copy link
Member Author

Hi @nathanjosiah Would be easier for me if you could actually give the result of mftf.log, it's really hard to run test locally with the complete suite..

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@nathanjosiah
Copy link
Contributor

@magento run Functional Tests CE against 2.4.3-develop

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@nathanjosiah
Copy link
Contributor

nathanjosiah commented Jun 1, 2021

@thomas-kl1 Looks like there are some errors in certain scenarios in the latest build (see https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/security-package/pull/289/bf46e4fe54b374d1b9fcff72e9c97fce/Functional/allure-report-ce/index.html#categories/bda2d1d522cd5c6d3b119ea9eba8bd02/6f6a43bc714a93f9/) specifically

Magento_ReCaptchaFrontendUi/js/reCaptcha.js 53:68 Uncaught TypeError: Cannot read property 'api_url' of undefined

@nathanjosiah
Copy link
Contributor

@thomas-kl1 Pinging again for visibility.

@thomas-kl1
Copy link
Member Author

Hi @nathanjosiah I'll rebase and take a look when I'll have some free time, sorry for the delay

@nathanjosiah
Copy link
Contributor

nathanjosiah commented Jun 11, 2021 via email

@nathanjosiah
Copy link
Contributor

Closing due to inactivity.

@thomas-kl1
Copy link
Member Author

Rly? Make it draft but don't close it

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