web icon indicating copy to clipboard operation
web copied to clipboard

[17.0][MIG] web_dialog_size: Migration to 17.0

Open jethavadakshal opened this issue 1 year ago • 4 comments

  • Migrated web dialog size module.
  • Removed LegacyComponent as it's deprecated on version 17 and used component instead.
  • Created json controller to get the value of web_dialog_size.default_maximize from system parameters.
  • Removed additional argument from dialog patch.

jethavadakshal avatar Mar 14 '24 12:03 jethavadakshal

/ocabot migration web_dialog_size

Please take car about the PR title for being proper, or it won't appear on searches over the module name.

pedrobaeza avatar Mar 14 '24 13:03 pedrobaeza

Hello @pedrobaeza , Thanks for your quick response on this PR. can you please guide me as to why the last 2 checks failed? Also is there anything missing in this module or is it not properly migrated?

jethavadakshal avatar Mar 14 '24 13:03 jethavadakshal

Don't worry about the codecov thing. It's just a quality measure about the test coverage. It's not mandatory to comply with it.

Now the PR should be reviewed by people, as stated in https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md

pedrobaeza avatar Mar 14 '24 14:03 pedrobaeza

Thanks, @pedrobaeza The document you provided is really helpful. From now onward I will take care of the things which are written in documentation while contributing to OCA.

jethavadakshal avatar Mar 14 '24 14:03 jethavadakshal

Hello @CarlosRoca13, i have checked the doc shared by you. and I tried my best to perform the steps. can you please check and if it's incorrect please guide me on this. Thanks

jethavadakshal avatar Jul 31 '24 09:07 jethavadakshal

The steps are:

$ git clone https://github.com/OCA/$repo -b 17.0
$ cd $repo
$ git checkout -b 17.0-mig-$module origin/17.0
$ git format-patch --keep-subject --stdout origin/17.0..origin/16.0 -- $module | git am -3 --keep
$ pre-commit run -a  # to run pre-commit linters and formatters (please ignore pylint errors at this stage)
$ git add -A
$ git commit -m "[IMP] $module: pre-commit auto fixes"  --no-verify  # it is important to do all the formatting in one commit the first time

Then apply your changes and finally commit your changes to force push to this branch. :smile: The importance of doing this is to ensure that the work done by other contributors is not forgotten.

CarlosRoca13 avatar Jul 31 '24 10:07 CarlosRoca13

And please avoid multiples commits for the migration process to avoid noice, your commits on the migration should be 2:

  • [IMP] $module: pre-commit auto fixes
  • [MIG] $module: Migration to 17.0

CarlosRoca13 avatar Jul 31 '24 10:07 CarlosRoca13

Superseded by #2919

pedrobaeza avatar Aug 16 '24 11:08 pedrobaeza