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

[MIG] auth_saml: Migrate to 13.0 #251

Closed
wants to merge 15 commits into from

Conversation

luisg123v
Copy link
Contributor

No description provided.

@luisg123v luisg123v mentioned this pull request Feb 27, 2021
17 tasks
@luisg123v luisg123v force-pushed the 13.0-mig_auth_saml-luisg branch 4 times, most recently from 4c2211f to 396f904 Compare February 27, 2021 04:28
max3903 and others added 14 commits March 1, 2021 19:48
The following line of code for 11.0:
 - https://github.com/odoo/odoo/blob/52d6f0e3ee90874fc93fec9cdff74ec71d3b991f/addons/auth_oauth/controllers/main.py#L69

is assigning the key "auth_link" for "list_providers" method.

The following template is expecting this key:
 - https://github.com/odoo/odoo/blob/52d6f0e3ee90874fc93fec9cdff74ec71d3b991f/addons/auth_oauth/views/auth_oauth_templates.xml#L5

So, it raise a KeyError compiling "template_auth_oauth_providers_N"

This change is fixing adding that expected key in order to avoid this KeyError
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-auth-11.0/server-auth-11.0-auth_saml
Translate-URL: https://translation.odoo-community.org/projects/server-auth-11-0/server-auth-11-0-auth_saml/
[FIX] dependencies
add requirement on lasso
- Default behavior is now to allow password and SAML together.
  Otherwise, users could keep getting their passwords removed without warning.
- General cleanup.
- Remove relations to field `password_crypt` because in v12 the
  `password` field is always encrypted instead.

Co-Authored-By: Alexandre Díaz <alexandre.diaz@tecnativa.com>
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-auth-12.0/server-auth-12.0-auth_saml
Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-auth_saml/

auth_saml 12.0.1.0.1
@luisg123v luisg123v marked this pull request as draft March 2, 2021 02:35
@ygol ygol mentioned this pull request Mar 3, 2021
@theangryangel
Copy link
Member

Whats the difference between this and #214 Luis? Have you included new fixes? Should I try and do a diff? I see you've at least used some of the code from #214?

@luisg123v
Copy link
Contributor Author

Hi @theangryangel,

They do pretty much the same. I wasn't aware of that PR, it was not announced on #136.

Please whenever migrating a module, firstly announce it in the migration issue to don't duplicate work like here.

Are the PR in active development? If so, I'd say you finish it up, since you started it first. You may copy tests I've started and I may give you technical review.

I'd also recommend scuashing all new commits and give authorship using Co-Authored-By. That way, all migration/refactor is left on a single commit and the history is cleaner.

Regards,

@luisg123v
Copy link
Contributor Author

Superseded by #214

@luisg123v luisg123v closed this Mar 3, 2021
@luisg123v luisg123v deleted the 13.0-mig_auth_saml-luisg branch March 3, 2021 19:20
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.

10 participants