-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
[18.0][MIG] auth_signup_verify_email: Migration to 18.0 #727
base: 18.0
Are you sure you want to change the base?
Commits on Nov 14, 2024
-
[9.0][MIG][auth_signup_verify_email] Migration. (OCA#436)
* Add module auth_signup_verify_email. * Import module following guidelines. * README typos. * OCA Transbot updated translations from Transifex * Credit creator. * author name correction * [9.0][MIG][auth_signup_verify_email] Migration. Migrate to v9. * [FIX] auth_signup_verify_email: Python library requirement * Add tests, fix xml tags, fix credits. * Fix test.
Configuration menu - View commit details
-
Copy full SHA for e0080c5 - Browse repository at this point
Copy the full SHA e0080c5View commit details -
[MIG][10] auth_signup_verify_email
* Module set to installable * Odoo don't let signup without password
Configuration menu - View commit details
-
Copy full SHA for 201d940 - Browse repository at this point
Copy the full SHA 201d940View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ec7fe9 - Browse repository at this point
Copy the full SHA 8ec7fe9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6cfd3b - Browse repository at this point
Copy the full SHA a6cfd3bView commit details -
[FIX+REF] auth_signup_verify_email: Fix tests + Skip mail send in tes…
…ts and use email_validator (OCA#29) This addon introduced an integration conflict when tested in a database that had `mail_tracking_mass_mailing` installed, producing this failure: Traceback (most recent call last): File "/opt/odoo/auto/addons/auth_signup_verify_email/controllers/main.py", line 44, in passwordless_signup sudo_users.reset_password(values.get("login")) File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ self.gen.next() File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 419, in savepoint self.execute('RELEASE SAVEPOINT "%s"' % name) File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 154, in wrapper return f(self, *args, **kwargs) File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 231, in execute res = self._obj.execute(query, params) InternalError: no such savepoint Which in turn produced the following in the next test: InternalError: current transaction is aborted, commands ignored until end of transaction block The problem comes from the fact that one cannot rollback to a nested savepoint if the parent savepoint was released. It became a problem because that's the strategy that both this addon and upstream's `TestCursor` follow. To avoid that, tests now mock the `send_mail` method. This results also in having a predictable outcome from the test `test_good_email`, so it is more meaningful now. Besides, previously we were using the `validate_email` package, which is currently a dead project that can silently fail under certain environments, as seen in syrusakbary/validate_email#80. There's the `email_validator` package, freely available, supported, and it provides a human-readable error message whenever some format from the email fails. As such, here I'm switching the dependency, while still adding a backwards compatibility layer for preexisting installations.
Configuration menu - View commit details
-
Copy full SHA for 5f66fbf - Browse repository at this point
Copy the full SHA 5f66fbfView commit details -
[FIX] auth_signup_verify_email: Improve signup error messages
* When try to login with a not valid email domain it raised a 500 server error. Now we shwt the proper message "The domain name <domain> does not exist." * If there is any error we do not have catched when we do the email validation then we manage it and show the error message to the user instead of 500 server error. * When we try to register with a already registered email it raise "Something went wrong, please try again later or contact us". Now shows the message as odoo regular signup does: "Another user is already registered using this email address" which is more specific and clear for this case.
Configuration menu - View commit details
-
Copy full SHA for d817ebb - Browse repository at this point
Copy the full SHA d817ebbView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6b9574 - Browse repository at this point
Copy the full SHA b6b9574View commit details -
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-12.0/server-auth-12.0-auth_signup_verify_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-auth_signup_verify_email/pt_BR/
Configuration menu - View commit details
-
Copy full SHA for d01b6fa - Browse repository at this point
Copy the full SHA d01b6faView commit details -
Translated using Weblate (Croatian)
Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-12.0/server-auth-12.0-auth_signup_verify_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-auth_signup_verify_email/hr/
Configuration menu - View commit details
-
Copy full SHA for ab13401 - Browse repository at this point
Copy the full SHA ab13401View commit details -
Configuration menu - View commit details
-
Copy full SHA for afcdac4 - Browse repository at this point
Copy the full SHA afcdac4View commit details -
[FIX] auth_signup_verify_email: make tests compatible with website
This commit fixes 2 problems: 1. `auth_signup.allow_uninvited` ICP is no longer used. The new equivalent is `auth_signup.invitation_scope=b2c`. 2. If running tests in an environment where `website` is installed, the website needs to get public signup enabled or tests here would fail with an error like this: 2020-02-19 12:36:31,686 35 INFO prod odoo.modules.module: odoo.addons.auth_signup_verify_email.tests.test_verify_email running tests. 2020-02-19 12:36:31,686 35 INFO prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: test_bad_email (odoo.addons.auth_signup_verify_email.tests.test_verify_email.UICase) 2020-02-19 12:36:31,686 35 INFO prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` Test rejection of bad emails. 2020-02-19 12:36:31,735 35 INFO ? odoo.http: HTTP Configuring static files 2020-02-19 12:36:31,738 35 INFO prod odoo.addons.base.models.ir_http: Generating routing map 2020-02-19 12:36:34,227 35 INFO prod werkzeug: 127.0.0.1 - - [19/Feb/2020 12:36:34] "GET /web/signup HTTP/1.1" 404 - 763 0.262 2.227 2020-02-19 12:36:34,231 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ERROR 2020-02-19 12:36:34,231 35 INFO prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: test_good_email (odoo.addons.auth_signup_verify_email.tests.test_verify_email.UICase) 2020-02-19 12:36:34,231 35 INFO prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` Test acceptance of good emails. 2020-02-19 12:36:36,293 35 INFO prod werkzeug: 127.0.0.1 - - [19/Feb/2020 12:36:36] "GET /web/signup HTTP/1.1" 404 - 759 0.258 1.797 2020-02-19 12:36:36,296 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ERROR 2020-02-19 12:36:36,297 35 INFO prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ====================================================================== 2020-02-19 12:36:36,297 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ERROR: test_bad_email (odoo.addons.auth_signup_verify_email.tests.test_verify_email.UICase) 2020-02-19 12:36:36,297 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` Test rejection of bad emails. 2020-02-19 12:36:36,297 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: Traceback (most recent call last): 2020-02-19 12:36:36,297 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` File "/opt/odoo/auto/addons/auth_signup_verify_email/tests/test_verify_email.py", line 20, in setUp 2020-02-19 12:36:36,297 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` "csrf_token": self.csrf_token(), 2020-02-19 12:36:36,297 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` File "/opt/odoo/auto/addons/auth_signup_verify_email/tests/test_verify_email.py", line 33, in csrf_token 2020-02-19 12:36:36,297 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` return doc.xpath("//input[@name='csrf_token']")[0].get("value") 2020-02-19 12:36:36,297 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` IndexError: list index out of range 2020-02-19 12:36:36,297 35 INFO prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ====================================================================== 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ERROR: test_good_email (odoo.addons.auth_signup_verify_email.tests.test_verify_email.UICase) 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` Test acceptance of good emails. 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: Traceback (most recent call last): 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` File "/opt/odoo/auto/addons/auth_signup_verify_email/tests/test_verify_email.py", line 20, in setUp 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` "csrf_token": self.csrf_token(), 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` File "/opt/odoo/auto/addons/auth_signup_verify_email/tests/test_verify_email.py", line 33, in csrf_token 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` return doc.xpath("//input[@name='csrf_token']")[0].get("value") 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: ` IndexError: list index out of range 2020-02-19 12:36:36,298 35 INFO prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: Ran 2 tests in 4.611s 2020-02-19 12:36:36,298 35 ERROR prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: FAILED 2020-02-19 12:36:36,298 35 INFO prod odoo.addons.auth_signup_verify_email.tests.test_verify_email: (errors=2) 2020-02-19 12:36:36,298 35 ERROR prod odoo.modules.module: Module auth_signup_verify_email: 0 failures, 2 errors @Tecnativa TT21005
Configuration menu - View commit details
-
Copy full SHA for c59e4c0 - Browse repository at this point
Copy the full SHA c59e4c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c31d3d - Browse repository at this point
Copy the full SHA 8c31d3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c250b7a - Browse repository at this point
Copy the full SHA c250b7aView commit details -
Added translation using Weblate (Arabic)
Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-13.0/server-auth-13.0-auth_signup_verify_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-13-0/server-auth-13-0-auth_signup_verify_email/ar/
Configuration menu - View commit details
-
Copy full SHA for b4d0b0c - Browse repository at this point
Copy the full SHA b4d0b0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b134fc0 - Browse repository at this point
Copy the full SHA b134fc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2741ac9 - Browse repository at this point
Copy the full SHA 2741ac9View commit details -
[FIX] auth_signup_verify_email: Use real email address for tests
In one part of the CI pipeline, the IANA example domains are not accepted, getting this message from `email_validator` library: The domain name example.com does not accept email So we switch to a real domain for avoiding the problem, using our famous main OCA list address, which at the end, it's not secret and won't be disabled in a short future.
Configuration menu - View commit details
-
Copy full SHA for 1982d12 - Browse repository at this point
Copy the full SHA 1982d12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41cce35 - Browse repository at this point
Copy the full SHA 41cce35View commit details -
Configuration menu - View commit details
-
Copy full SHA for de9e8dc - Browse repository at this point
Copy the full SHA de9e8dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for f59ab47 - Browse repository at this point
Copy the full SHA f59ab47View commit details -
Translated using Weblate (Spanish)
Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-16.0/server-auth-16.0-auth_signup_verify_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_signup_verify_email/es/
Configuration menu - View commit details
-
Copy full SHA for d5504f5 - Browse repository at this point
Copy the full SHA d5504f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e4bc4f - Browse repository at this point
Copy the full SHA 3e4bc4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ebf8e5 - Browse repository at this point
Copy the full SHA 0ebf8e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecf60d4 - Browse repository at this point
Copy the full SHA ecf60d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e96072 - Browse repository at this point
Copy the full SHA 6e96072View commit details -
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-auth-17.0/server-auth-17.0-auth_signup_verify_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-auth_signup_verify_email/
Configuration menu - View commit details
-
Copy full SHA for 2e7d991 - Browse repository at this point
Copy the full SHA 2e7d991View commit details -
Translated using Weblate (Italian)
Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-17.0/server-auth-17.0-auth_signup_verify_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-auth_signup_verify_email/it/
Configuration menu - View commit details
-
Copy full SHA for 3073ab3 - Browse repository at this point
Copy the full SHA 3073ab3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d096a78 - Browse repository at this point
Copy the full SHA d096a78View commit details -
Translated using Weblate (Finnish)
Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-17.0/server-auth-17.0-auth_signup_verify_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-auth_signup_verify_email/fi/
Configuration menu - View commit details
-
Copy full SHA for 8edb8ea - Browse repository at this point
Copy the full SHA 8edb8eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bcd39b2 - Browse repository at this point
Copy the full SHA bcd39b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ed992e - Browse repository at this point
Copy the full SHA 3ed992eView commit details