[12.0][MIG] auth_signup_verify_email - #108
Conversation
|
What is the PR superseeded? |
|
@pedrobaeza PR updated with the requested info. |
5638970 to
026904a
Compare
|
@ernestotejeda please review this PR |
chienandalu
left a comment
There was a problem hiding this comment.
I'm trying a functional test but I get this error
I'd say the problem comes from this view: https://github.com/OCA/server-auth/pull/108/files#diff-add74761757ad34e815f5cd9f9933f97R9
|
@chienandalu The problem is the SMTP configuration: https://github.com/OCA/server-auth/pull/108/files#diff-b76492f8c47aaeb881c43ddd50c764ccR67 |
ernestotejeda
left a comment
There was a problem hiding this comment.
Work great for me
- Generate README.rst again after make the change i've proposed to include all the changes made in the readme fragment files
- Squash to have a single migration commit
chienandalu
left a comment
There was a problem hiding this comment.
Sorry @Tardo But even with a right smtp config and my email I'm not able to signup on the in the instance.
|
@chienandalu can reproduce it on local? |
|
It worked well for me on the runbot |
martintorresvm
left a comment
There was a problem hiding this comment.
LGTM technical speaking. Waiting for functional approval of @chienandalu
|
it's working fine with me . |
|
/ocabot merge |
|
This PR looks fantastic, let's merge it! |
|
@pedrobaeza Merge command aborted due to a failed check on 12.0-ocabot-merge-pr-108-by-pedrobaeza-bump-no. |
|
@Tardo please check the problem in Travis on the rebased branch. |
|
@pedrobaeza it's a incompatibility with 'auth_oauth' module.. these module doesn't modify the qcontext properly... https://github.com/odoo/odoo/blob/12.0/addons/auth_oauth/controllers/main.py#L116 |
ce8890a to
bfd4ca2
Compare
What's wrong there? 🤔 |
|
@yajo the correct place to modify the qcontext is here: https://github.com/odoo/odoo/blob/11.0/addons/auth_signup/controllers/main.py#L101 |
yajo
left a comment
There was a problem hiding this comment.
I opened odoo/odoo#34690 so please link it in the hacks, and let's see if in the future we can remove the HACK.
b01b8e5 to
749cb9d
Compare
|
conflicts! rebase please |
* 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.
749cb9d to
a148f1e
Compare
|
@mreficent rebased, thanks! |
|
@yajo, please re-review |
|
Please squash the migration-related commits. |
a148f1e to
3738c55
Compare
|
@yajo done! |
* Module set to installable * Odoo don't let signup without password
…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.
* 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.
3738c55 to
64a3827
Compare
|
/ocabot merge |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at df1f6d9. Thanks a lot for contributing to OCA. ❤️ PS: Don't worry if GitHub says there are unmerged commits: it is due to a rebase before merge. All commits of this PR have been merged into |
Syncing from upstream OCA/server-auth (12.0)


PR superseded: #69
cc @Tecnativa