Coder Social home page Coder Social logo

Comments (16)

ljimenezsidoo avatar ljimenezsidoo commented on June 11, 2024 2

@Auneor

Sorry, we stopped doing the migration when we saw the work done by florian.

from connector-prestashop.

florian-dacosta avatar florian-dacosta commented on June 11, 2024 1

Hello @pedrobaeza
I would like to make a PR for the connector in version 12, but I am having problems, I wonder if you could help me.
A want to Make a PR with this branch : https://github.com/florian-dacosta/connector-prestashop/tree/12-mig-connector_prestashop
I thought I used the method proposed in maintainer-tools :

$ git remote update # In case the repo was already cloned before
$ git checkout -b 12.0-mig-<module> origin/12.0
$ git format-patch --keep-subject --stdout origin/12.0..origin/11.0 -- <module path> | git am -3 --keep

But it tells me that the oca:12.0 has noting in common, so I guess I did not at the time...

Anyway, when I try to create a new fresh branch using this method, I have a lot of conflict with git am
I also thought that if my branch comes from the version 10, I could rebase on 12.0 and have a similar result, but I also have conflicts.

I can do a new fresh branch if necessary but I don't succeed into avoiding all conflicts during the process.
Have you an idea why?
Thanks

from connector-prestashop.

ljimenezsidoo avatar ljimenezsidoo commented on June 11, 2024

Hello @florian-dacosta

Im working to migrate the connector_prestashop to version 12, and im having maybe the same issue when try to git format path command.

Im going to create a new branch in the PESOL repo to keep working until fix this error. We can connect to prestashop but we need to keep working on this module. I would like to colaborate with you to go forward fast.

from connector-prestashop.

pedrobaeza avatar pedrobaeza commented on June 11, 2024

Hello to both. Good to see interest by your part. The problem is that there's no 11.0 branch, so you should change the command to:

git format-patch --keep-subject --stdout origin/12.0..origin/10.0 -- ...

from connector-prestashop.

florian-dacosta avatar florian-dacosta commented on June 11, 2024

@pedrobaeza Yes, that is what I did actually. I just copy paste the documentation on the issue, but I had made the change with branch 10.0 when I tried
git format-patch --keep-subject --stdout origin/12.0..origin/10.0 -- connector_prestashop | git am -3 --keep

@acm1pt-colorado Nice to know you are working on it.
I don't know how advanced you are, the branch I propose should be working fine already.

from connector-prestashop.

florian-dacosta avatar florian-dacosta commented on June 11, 2024

@pedrobaeza I tried to do the same but from 10.0 to 11.0 but the problem is the same.
I have started to try to resolve conflict, but there are really a lot of conflicts and I guess I would end making mistakes in the resolution...
I am out of ideas to resolve this.

from connector-prestashop.

pedrobaeza avatar pedrobaeza commented on June 11, 2024

That happens when you mangle the commit history doing merges instead of rebases, which you are very given to it in the past (already happens for v10), so please stop doing that since now. I will try to fix it and put a branch with all the commit history for you to start with.

from connector-prestashop.

florian-dacosta avatar florian-dacosta commented on June 11, 2024

Ok, thank you @pedrobaeza

from connector-prestashop.

rvalyi avatar rvalyi commented on June 11, 2024

eventually git filter-branch would do the job? Like https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-8.0#how ?

from connector-prestashop.

pedrobaeza avatar pedrobaeza commented on June 11, 2024

You have in https://github.com/Tecnativa/connector-prestashop/tree/12.0-mig-connector_prestashop the base branch with the commit history preserved (the best it can be done), and now you can start out of it to include changes for v12.

from connector-prestashop.

florian-dacosta avatar florian-dacosta commented on June 11, 2024

Well, I don't really understand how/why or when the history was all mangled, but thanks a lot for the resolution @pedrobaeza
I made the PR on top of your branch.

from connector-prestashop.

pedrobaeza avatar pedrobaeza commented on June 11, 2024

Remembering a bit the history, it happens when @bguillot and you merge your simultaneous work in a branch, doing merges with not consecutive commits, so basically it was:

  • Branch A:
    • Commit A1
    • Commit A2
    • Commit A3
  • Branch B:
    • Commit B1
    • Commit B2

Merge and resolve conflicts of branch B against branch A, so the "mangled" commit history is:

  • Branch B
    • Commit B1
    • Commit B2
    • Merge of branch A with conflict solving
      • Commit A1
      • Commit A2
      • Commit A3

When bringing commit history, what you get (more or less) is:

  • Commit A1
  • Commit B1
  • Commit A2
  • Commit A3
  • Commit B2

so you can imagine the result...

from connector-prestashop.

florian-dacosta avatar florian-dacosta commented on June 11, 2024

Well, these are my first commits to the OCA connecor prestashop!
And Sebastien did not work on it for years (version 7 I guess), so I don't really get it...
But ok thanks for the explanation.

from connector-prestashop.

pedrobaeza avatar pedrobaeza commented on June 11, 2024

Sorry, it was his colleague @bguillot who work on v9 migration, not @sebastienbeau

from connector-prestashop.

Auneor avatar Auneor commented on June 11, 2024

@acm1pt-colorado how is your migration to 12.0 going? we plan to migrate this module to a newer version, maybe 14.0, but we would like to know if any work has already been done

from connector-prestashop.

github-actions avatar github-actions commented on June 11, 2024

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.

from connector-prestashop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.