Skip to content

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

Closed
El-khamisi wants to merge 22 commits intoOCA:18.0from
El-khamisi:18.0-mig-auth_user_case_insensitive
Closed

[18.0][MIG] auth_user_case_insensitive: Migration to 18.0#756
El-khamisi wants to merge 22 commits intoOCA:18.0from
El-khamisi:18.0-mig-auth_user_case_insensitive

Conversation

@El-khamisi
Copy link

No description provided.

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

@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
Member

@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

if credential.get("type") and credential["type"] == "password":
credential["login"] = credential["login"].lower()

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

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?

Copy link
Member

Choose a reason for hiding this comment

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

I'm not requesting a change here. I'm just recording that I did a little research into the new signature of the _login method.

Copy link
Author

@El-khamisi El-khamisi Jan 24, 2025

Choose a reason for hiding this comment

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

oh, let me get the credential type check back so

@El-khamisi El-khamisi requested a review from amh-mw January 23, 2025 23:44
Copy link
Member

@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.

Need to squash last three commits into one [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 f27240d to 734548b Compare January 24, 2025 13:29
@El-khamisi
Copy link
Author

@amh-mw get done

Copy link
Member

@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.

Code review only. LGTM

@El-khamisi El-khamisi force-pushed the 18.0-mig-auth_user_case_insensitive branch from 734548b to 2c59d4a Compare January 24, 2025 13:50
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label May 25, 2025
@github-actions github-actions bot closed this Jun 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.