-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
[17.0][MIG] auth_saml #634
base: 17.0
Are you sure you want to change the base?
Conversation
/ocabot migration auth_saml |
Sorry @vincent-hatakeyama you are not allowed to mark the addon tobe migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’’ve tested the module successfully with a local keycloak.
/ocabot merge nobump |
Sorry @vincent-hatakeyama you are not allowed to merge. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
No idea what the issue is as I am the maintainer of the module. |
@pedrobaeza Sorry to bother you but I have no idea who to contact about the bot not recognizing me as the module maintainer anymore. I thought of contacting oca/server-auth-maintainers but there’s no such group apparently. |
IIRC, @legalsylvain was the one developing the feature of looking into the previous branch to allow maintainers to merge. Anyway, you should respect the OCA rules, requiring 2 reviews for the merge, unless this gets blocked: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#review |
You can find the info here : https://github.com/OCA/repo-maintainer-conf/blob/master/conf/repo/server.yml#L1
Indeed... https://github.com/OCA/server-auth/blob/16.0/auth_saml/__manifest__.py#L10
@sbidoul what is the value of MAINTAINER_CHECK_ODOO_RELEASES in production ? (Should be a list from 8.0 to 17.0) https://github.com/OCA/oca-github-bot/blob/master/environment.sample#L86 |
Investigated. You propose a change in a file you dont maintain. (Requirements.txt at repo foot) |
I believe that change is from previous commits kept by the migration process. The file is automatically generated, I suppose the changes should be removed in the migration commit so that the file is regenerated by a bot with the content? |
I think |
This makes sense. |
@@ -0,0 +1,6 @@ | |||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | |||
access_auth_saml_provider,auth_saml_provider,model_auth_saml_provider,base.group_system,1,1,1,1 | |||
access_auth_res_users_saml,auth_res_users_saml,model_res_users_saml,base.group_system,1,1,1,1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to point this out in the previous versions but shouldn't we set this to base.group_erp_manager?
Setting up the the saml provider is definitely for base.group_system but managing the user entries should be done by "Access Rights" group imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, #652 need to ported to 17.0.
/ocabot merge nobump |
This PR looks fantastic, let's merge it! |
This PR has the |
@gurneyalex your merge command was aborted due to failed check(s), which you can inspect on this commit of 17.0-ocabot-merge-pr-634-by-gurneyalex-bump-nobump. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
[IMP] Cleanup
c521d02
to
3f73842
Compare
@vincent-hatakeyama thank you! Would you check if it's all good now? |
IMO Commits The code LGTM. |
The tests now pass so that part is fine. I think the lower test cover can be ignored. I can’t merge the changes as I do not have the enough rights, but to me it’s ready to be merged in 17.0. |
Will this be merged anytime soon ? |
Hello, the migration looks good. Usually we are also requested to squash administrative/translation commits |
Translated using Weblate (Spanish) Currently translated at 100.0% (90 of 90 strings) Translation: server-auth-16.0/server-auth-16.0-auth_saml Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_saml/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-auth-16.0/server-auth-16.0-auth_saml Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_saml/
Translated using Weblate (Italian) Currently translated at 85.5% (77 of 90 strings) Translation: server-auth-16.0/server-auth-16.0-auth_saml Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_saml/it/ Translated using Weblate (Italian) Currently translated at 100.0% (90 of 90 strings) Translation: server-auth-16.0/server-auth-16.0-auth_saml Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_saml/it/
Updated the signin method to reflect changes in similar method signin from auth_oauth. Without the changes, the ORM crashes with psycopg2.errors.InvalidSavepointSpecification when trying to signin. Fixes OCA#664
As user in that group can already edit users, so it make sense to allow them to see and edit that information rather than restrict it to admin/system.
3f73842
to
440b787
Compare
Commits squashed. Thanks! |
@gurneyalex could you please help us once again with a merge command? |
I would like to push this merge request above the finish line... It seems that just more test coverage is required at the moment. I am not familiar with Odoo testing. How do you suggest I contribute? Where should I start? |
Hello @astirpe. Any help I can provide? |
Can this one be merged? @oussjarrousse thank you for asking, feel free to contribute in whatever you like! |
Alright, It's the first time I write test code for Odoo, so I am still setting up the dev environment and figuring out where things are. If you have a good guide on that. I would appreciate it. I will keep you updated. |
FYI, I managed to I setup the Dev Environment. I also managed to run all tests and test coverage locally 💪. |
No description provided.