-
-
Notifications
You must be signed in to change notification settings - Fork 438
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
[16.0][MIG] auth_oauth_multi_token: Migration to 16.0 #584
[16.0][MIG] auth_oauth_multi_token: Migration to 16.0 #584
Conversation
Allow multiple oauth login at the same time.
* cleanup, improve, docstrings * add tests
Nothing special. Just making linters happy and splitting the readme. @Tecnativa TT25619
Otherwise lookup is slow when there are many users.
Otherwise you can't delete a user.
This is cosmetic only, because this field is not used when auth_oauth_multi_token is installed.
594b6e1
to
da5f99d
Compare
@ChrisOForgeFlow |
There's a surprising eagerness to enforce a rule that doesn't seem exist in the OCA guidelines. |
It's simply being practical, if whoever can do the merge tells me to change it, I change it so as not to delay it. On the other hand, from a personal point of view, I consider that there is no reason in a migration to make changes that in no way affect its operation, simply because I like it more one way or another, but rather to do the minimum. possible changes, so that future fixes are easier to apply across different versions. And getting into unnecessary discussions, the only thing that usually results in is delaying the availability of the module, meaning that practically after 1 year this module is still in process. I prefer to migrate the module as it is and in any case make another pull request afterwards to apply those changes, in which case if it is delayed we can use the module normally. |
@mlaitinen @ramiadavid the principles to ask for my change are:
Do you still see my comment as irrelevant? |
Having reviewed plenty of PRs, I generally agree on minimizing the diff, but mostly when the changes don't have any effect at all (e.g., unnecessary code style changes), or when the commit gets bloated to the point where it actually makes the review unnecessarily difficult. My commit had 11 changes directly attributable to the corrections in capitalization, which I don't think is too much to make the review difficult, and I also don't think the changes were unnecessary. You have a good point about isolating these kind of changes to a separate commit, but I wasn't sure if migration PRs with more than one
I realize now I should have explained my change as "making the capitalization consistent with Odoo's other titles", rather than following English capitalization rules. If all other field names and captions in Odoo wouldn't follow the capitalization rules, of course I would adapt to that, to maintain the consistency of the user interface. In the screenshot below, I marked all of the captions of this module in red, and all Odoo captions with blue: Odoo, by default, capitalizes the words in the titles in cases where the explicit field string is omitted.
While it's a valid argument in general, it would only apply to this particular case if any translations existed when I submitted the PR. There were none in May 2023.
Absolutely not, and never did. We can all see your valuable work that you do for OCA and Odoo. Thank you for that, and for addressing this question. |
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.
OK, thanks for the extra explanations, Miku. I don't think we should follow all the Odoo decisions (look at the OCA guidelines that are better than the Odoo guidelines), and this subject (capitals in all places) personally annoys me (the same as accountant people writing all in uppercase), but it's not a big deal for this case, and as you have said, there are no translations of the module for now, so let's continue and unblock the thing.
/ocabot migration auth_oauth_multi_token
/ocabot merge nobump
but I wasn't sure if migration PRs with more than one [MIG] commit would've been accepted, let alone a separate commit before or after merging the PR, since it's unlikely that anyone would use their precious time to review a PR with format changes only.
The commit should be [IMP]
for this case (or [REF]
when there are code refactors).
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at efac732. Thanks a lot for contributing to OCA. ❤️ |
Reopen from #513
@ForgeFlow