OCA / account-closing

Odoo Accountant closing tools
GNU Affero General Public License v3.0
65 stars 245 forks source link

Migration to version 12.0 #85

Closed OCA-git-bot closed 2 years ago

OCA-git-bot commented 6 years ago

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-12.0

Modules to migrate

hbto commented 5 years ago

Hello OCA community:

I am beginning the migration of the account_multicurrency_revaluation module I am trying to adhere to migration policies following each step as stated in them in the following branch:

https://github.com/vauxoo-dev/account-closing/tree/12.0-account_multicurrency_revaluation-hbto (branch naming to be fixed)

While doing so I have hit a question:

Keeping history of the module being migrated

I have tried to use the command suggested in the policies git format-patch --keep-subject --stdout origin/12.0..origin/11.0 -- <module path> | git am -3 --keep

but it results in errors during the process which could lead to a daunting task in case of modules with large histories, because of the merge conflicts caused by the git am -3 keep part of the command

account-financial-tools_ _hbto_marvin___workspace_account-financial-tools_ _-bash_ _170x48

I have come to use this another approach:

git clone <git repository A url>
cd <git repository A directory>
git remote rm origin
git filter-branch --subdirectory-filter <directory 1> -- --all
mkdir <directory 1>
# Move your files with `git mv`
git mv (each file / folder) <directory 1> 
git add .
git commit -m 'commit message'

And later applying cherry-pick with the resulting commits on the target branh.

Courtesy of this link

Which is the result that you can see in these branches: https://github.com/vauxoo-dev/account-closing/tree/12.0-account_multicurrency_revaluation-hbto https://github.com/vauxoo-dev/account-financial-tools/tree/12.0-account_reversal-hbto

commits_ _vauxoo-dev_account-closing

Will this suffice the policies?

I would to have your thoughts regards.

hbto commented 5 years ago

@pedrobaeza https://github.com/OCA/account-closing/issues/85#issuecomment-441413020 could you check this comment

cc/ @moylop260

Regards

pedrobaeza commented 5 years ago

@hbto the previous method was very similar to what you have put now, and it has several drawbacks as files that are left in incorrect places if I don't remember bad, so @sbidoul came with this new method, which is shorter and work in almost all places. The only problem comes with merge operations when there are conflicts that messes up commit history, so when the commit order is unscrambled, the conflicts arise again. I also remember that with the --subdirectory-filter some of this conflicts also happen.

@sbidoul do you have any comment about this?

sbidoul commented 5 years ago

Sorry I don't remember the details. That method with filter-branch did loose some commits but I don't remember the exact circumstances, so be careful.

hbto commented 5 years ago

@sbidoul & @pedrobaeza

While the history is kept then is ok to use either one or the other way?

Thanks in advance for your comments.

Regards.

pedrobaeza commented 5 years ago

Yes, I think so...

hbto commented 5 years ago

Regarding Translation, during migration .po files are to be erased or are they to be kept alongside .pot file.

Regards.

pedrobaeza commented 5 years ago

They should all be kept.

hbto commented 5 years ago

@pedrobaeza

What is to be done regarding:

It looks like some users haven't signed our Contributor License Agreement, yet. You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla Here is a list of the users:

Stefan Rijnhart stefan@therp.nl (no github login found) Sandy Carter sandy.carter@savoirfairelinux.com (no github login found) @ <@> (no github login found) Launchpad Translations on behalf of account-core-editors (no github login found) Appreciation of efforts, OCA CLAbot

So far we are migrating an old module.

How do we address this kind of issue?

pedrobaeza commented 5 years ago

@hbto answered in the thread. Better to not add noise in this general issue.

jimhoefnagels commented 5 years ago

Migrated account_cutoff_prepaid https://github.com/OCA/account-closing/pull/93

emagdalenaC2i commented 5 years ago

Migrated account_cutoff_prepaid #93 Please, add to the list Modules to migrate

rven commented 5 years ago

Migrated account_cutoff_accrual_base https://github.com/OCA/account-closing/pull/99

Change2improve commented 5 years ago

account_multicurrency_revaluation is already merged in #88

sbidoul commented 5 years ago

See also #112

jeroenev commented 5 years ago

account_cutoff_base was merged #90

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue in the past 6 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 issue to never become stale, please ask a PSC member to apply the "no stale" label.