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

[18.0][MIG] auth_user_case_insensitive: Migration to 18.0 #756

Open
wants to merge 24 commits into
base: 18.0
Choose a base branch
from

Conversation

El-khamisi
Copy link

No description provided.

@El-khamisi El-khamisi mentioned this pull request Jan 23, 2025
14 tasks
Copy link

@amh-mw amh-mw left a comment

Choose a reason for hiding this comment

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

Unfortunately, it looks like you've squashed all the prior commits together. Please take a look at some of the other 18.0 migration pull requests to see what the expected output looks like.

@El-khamisi El-khamisi closed this Jan 23, 2025
@El-khamisi El-khamisi force-pushed the 18.0-mig-auth_user_case_insensitive branch from 501fad0 to ad9d922 Compare January 23, 2025 15:26
Ted Salmon and others added 20 commits January 23, 2025 17:28
…f `_login`

* Update code and tests to override `_login` method
Currently translated at 100.0% (2 of 2 strings)

Translation: server-auth-12.0/server-auth-12.0-auth_user_case_insensitive
Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-auth_user_case_insensitive/pt_BR/
Currently translated at 100.0% (4 of 4 strings)

Translation: server-auth-16.0/server-auth-16.0-auth_user_case_insensitive
Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_user_case_insensitive/es/
Currently translated at 100.0% (4 of 4 strings)

Translation: server-auth-16.0/server-auth-16.0-auth_user_case_insensitive
Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_user_case_insensitive/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-auth-17.0/server-auth-17.0-auth_user_case_insensitive
Translate-URL: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-auth_user_case_insensitive/
@El-khamisi El-khamisi reopened this Jan 23, 2025
@El-khamisi
Copy link
Author

@amh-mw Oh, my bad! Can you review this now?

Copy link

@amh-mw amh-mw left a comment

Choose a reason for hiding this comment

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

Per Migration to version 18.0, I would expect two commits at the very end:

  • [IMP] auth_user_case_insensitive: pre-commit auto fixes
  • [MIG] auth_user_case_insensitive: Migration to 18.0

@El-khamisi El-khamisi force-pushed the 18.0-mig-auth_user_case_insensitive branch from 0dfa869 to 13f74eb Compare January 23, 2025 18:17
@El-khamisi
Copy link
Author

@amh-mw I updated the commit history you can recheck now

auth_user_case_insensitive/__init__.py Outdated Show resolved Hide resolved
if credential.get("type") and credential["type"] == "password":
credential["login"] = credential["login"].lower()

return super()._login(db, credential, user_agent_env)
Copy link

Choose a reason for hiding this comment

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

Changes track with core Odoo implementation of auth_passkey 1:

Footnotes

  1. https://github.com/odoo/odoo/commit/8b9bd6f88eb313dd29b05fc2decff77e6aff8bb8

Copy link
Author

Choose a reason for hiding this comment

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

I don't get what you mean, can you explain more, please?

@El-khamisi El-khamisi requested a review from amh-mw January 23, 2025 23:44
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.