-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Migration 13.0 -> 14.0: Substitute act_window
and report
with proper record
tags
#38
Migration 13.0 -> 14.0: Substitute act_window
and report
with proper record
tags
#38
Conversation
905d9fb
to
763ff10
Compare
3823f51
to
3586a0e
Compare
3586a0e
to
872c53c
Compare
@legalsylvain can this be merged? |
5ec5747
to
d6d3b31
Compare
Rebased due to conflicts with |
07aaf75
to
e1143d5
Compare
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.
You did a great work!
Commits history could be merged to make this PR perfect.
Thanks for your efforts
if match: | ||
indent = match.group('indent') | ||
tag_match = match.group('tag') | ||
et.indent(tag, space=indent, level=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.
You even keep original indent. Perfect 👍
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.
@yelizariev Why do we have to be so careful to only format the modified piece of code, if we then have to pass the "black" tool to format all the files?
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-14.0#howto
pre-commit run -a # to run black, isort and prettier (ignore pylint errors at this stage)
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.
Because it's easier to check migration changes.
Also, you may want don't run black formating to avoid changes in git history (remember, that this tool can be used outside of OCA)
7bef232
to
35a4b64
Compare
Yes this wasn't easy but there was something that I had to learn :) I reorganized the commit history:
The only other configuration I can see is to squash the first 3 commits but then you'd lose authorship, let me know if that's ok |
@Daemo00 I'm ok with squashing first 3 commits and losing authorship 😉 |
@Daemo00 you can still keep the authorship by adding @yelizariev as a co-author to the commit when rebasing: https://github.blog/2018-01-29-commit-together-with-co-authors/ |
…per `record` tags
…t reset at the following instantiation. For instance in migration_13_14, the _migration_steps were still 8.0..13.0
35a4b64
to
e11d78e
Compare
@yelizariev then here you have the 3 commits nice and clean |
@legalsylvain this adds new script and fix the tool in general |
Can this be merged? |
@ivantodorovich could you review? |
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.
Review, ok.
This PR has the |
@legalsylvain Can you merge this PR, please?. |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at f0a3e30. Thanks a lot for contributing to OCA. ❤️ |
Adding a bit of Python automation for said part of 14.0 migration