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

[13.0][MIG] website_form_recaptcha: Migration to 13.0 #709

Merged
merged 40 commits into from Apr 1, 2020

Conversation

Tardo
Copy link
Member

@Tardo Tardo commented Mar 30, 2020

Superseded #684

cc @Tecnativa TT21698

lasley and others added 30 commits March 30, 2020 21:41
* Update website_form_recaptcha to v10
[FIX] remove en.po that was erroneously created by transbot
- Remove groups on ir_config_paramater records (gone in 11.0)
- Move error mapping to private function to allow translation
The test was passing a list while the method is expecting a string
Files don't need to have the execute flag on
flake8 was complaining about E501 line too long
Currently translated at 100,0% (12 of 12 strings)

Translation: website-11.0/website-11.0-website_form_recaptcha
Translate-URL: https://translation.odoo-community.org/projects/website-11-0/website-11-0-website_form_recaptcha/pt_BR/
Currently translated at 100,0% (12 of 12 strings)

Translation: website-11.0/website-11.0-website_form_recaptcha
Translate-URL: https://translation.odoo-community.org/projects/website-11-0/website-11-0-website_form_recaptcha/de/
Currently translated at 100.0% (12 of 12 strings)

Translation: website-11.0/website-11.0-website_form_recaptcha
Translate-URL: https://translation.odoo-community.org/projects/website-11-0/website-11-0-website_form_recaptcha/de/
Currently translated at 100,0% (12 of 12 strings)

Translation: website-11.0/website-11.0-website_form_recaptcha
Translate-URL: https://translation.odoo-community.org/projects/website-11-0/website-11-0-website_form_recaptcha/es/
- When website_crm_phone_validation is installed, the captcha validation
is called twice so the form allways fail as with a
'timeout-or-duplicate' error.
* API keys can now be configured via website settings
  which in turn allow to customize the values per website
  in a multi-website instance;

* move all internal APIs to the model `website.form.recaptcha`
  so that we do not depend anymore on the controller
  if we need to integrate it into other pieces of code.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
- Fix tests.
- Remove outdated tests.
- Remove unneeded data file.
- Add migration script.
oca-transbot and others added 6 commits March 30, 2020 21:41
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: website-12.0/website-12.0-website_form_recaptcha
Translate-URL: https://translation.odoo-community.org/projects/website-12-0/website-12-0-website_form_recaptcha/
Added a dependency. Without it, you get:

    form_builder_send is undefined
Currently translated at 100.0% (23 of 23 strings)

Translation: website-12.0/website-12.0-website_form_recaptcha
Translate-URL: https://translation.odoo-community.org/projects/website-12-0/website-12-0-website_form_recaptcha/pt_BR/
@Tardo Tardo force-pushed the 13.0-mig-website_form_recaptcha branch from 06fe1d2 to 225d366 Compare March 30, 2020 19:53
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Looks like you mixed up black formatting with your migration commit. A little bit hard to follow changes 😅

@pedrobaeza pedrobaeza added this to the 13.0 milestone Mar 31, 2020
@Tardo
Copy link
Member Author

Tardo commented Mar 31, 2020

@chienandalu if prefer i can revert the changes and use the original commit history:
commits

@pedrobaeza
Copy link
Member

I think you have to redo commit history, pass "black, isort and prettier", and then copy what was in the other PR, committing with that author, and then add your changes to complete the migration.

@Tardo Tardo force-pushed the 13.0-mig-website_form_recaptcha branch from 225d366 to ac7cfea Compare March 31, 2020 18:06
@Tardo Tardo force-pushed the 13.0-mig-website_form_recaptcha branch from ac7cfea to 28fac13 Compare March 31, 2020 18:24
@Tardo
Copy link
Member Author

Tardo commented Mar 31, 2020

Changes done!

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

LGTM

@pedrobaeza
Copy link
Member

/ocabot merge

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 13.0-ocabot-merge-pr-709-by-pedrobaeza-bump-no, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request Apr 1, 2020
22 tasks
@OCA-git-bot OCA-git-bot merged commit 1332ec0 into OCA:13.0 Apr 1, 2020
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 01e851f. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 13.0-mig-website_form_recaptcha branch April 2, 2020 08:32
matteoopenf pushed a commit to matteoopenf/website that referenced this pull request Feb 17, 2023
Signed-off-by pedrobaeza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet