Skip to content

Import update rework (#1412) - #3029

Merged
objecttothis merged 5 commits into
masterfrom
squash-import-update
Apr 4, 2021
Merged

objecttothis merged 5 commits into
masterfrom
squash-import-update

Conversation

@jekkos

@jekkos jekkos commented Nov 23, 2020 •

Copy link
Copy Markdown
Member

@objecttothis I'm opening this PR to show you where the squashed version of your branch is. Up to you to check out, amend the commit and remove me as an author (so we keep correct copyrights). Then create a new PR with your name on this commit.

I know that in some OSS projects the --signoff is required in git, so that even after rebase, it remains clear who actually owns the authorship. Might be worth our consideration here.

@jekkos

jekkos commented Nov 26, 2020 •

Copy link
Copy Markdown
Member Author

@objecttothis now we have three commits while there should have been only one.

Could you try to remove the branch locally and force push the branch back

  • Pull the branch from here again to your local (git checkout -b origin/squash-import-update)
  • git commit --amend
  • git push -f origin squash-import-update

@jekkos

jekkos commented Nov 26, 2020

Copy link
Copy Markdown
Member Author

@objecttothis I'llt try to clean it up otherwise, it seems you have the changeset under your name as well here (don't understand directly why I see two commits now one with your name and one with mine)

@jekkos jekkos self-assigned this Nov 28, 2020
@jekkos
jekkos force-pushed the squash-import-update branch from 909018e to a68c63e Compare November 28, 2020 22:01

@jekkos jekkos left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@objecttothis The pull request is huge.. I think we should not mix general cleanup with functional changes in this case, it makes review very hard.
It seems that you replaced most of the double quotes in html with single quotes
but some quite some parts suffer from some weird indendation issues.

Also it's good that you got rid of the _ in the private methods. The fact that they are private is normally sufficient.

Comment thread application/controllers/Config.php Resolved
Comment thread application/controllers/Config.php Resolved
Comment thread application/controllers/Reports.php Resolved
Comment thread application/helpers/locale_helper.php Resolved
Comment thread application/helpers/tabular_helper.php Resolved
Comment thread application/models/Attribute.php Resolved
Comment thread application/models/Attribute.php Resolved
Comment thread application/models/Attribute.php Resolved
Comment thread application/models/Receiving.php Resolved
Comment thread application/models/Sale.php Resolved
@jekkos
jekkos force-pushed the squash-import-update branch from a68c63e to a9e6597 Compare November 28, 2020 23:05
@objecttothis

objecttothis commented Nov 28, 2020 •

Copy link
Copy Markdown
Member

@objecttothis The pull request is huge.. I think we should not mix general cleanup with functional changes in this case, it makes review very hard.
It seems that you replaced most of the double quotes in html with single quotes
but some quite some parts suffer from some weird indendation issues.

Also it's good that you got rid of the _ in the private methods. The fact that they are private is normally sufficient.

The code cleanup got mixed in the pr because in many places it was part of the optimisation of the code. For example in the PHP replacing " with ' and array() with [] were all optimisation changes. Yes, the " for ' in the HTML was for consistency rather than optimisation. I can check out and fix the indentation issues on Tuesday when I'm back in the office.

@objecttothis

Copy link
Copy Markdown
Member

@jekkos I've addressed or commented on all the sections that you pointed out. Let me know what else needs to be corrected or changed.

@jekkos
jekkos force-pushed the squash-import-update branch from f9208f9 to 7e6286d Compare December 1, 2020 22:21
@jekkos

jekkos commented Dec 1, 2020 •

Copy link
Copy Markdown
Member Author

@objecttothis Beside those indentation issues I think it looks fine. Maybe @daN4cat was double checking some stuff (as I saw one commment) so I would wait for more feedback (if any).

I think a next step would be to deploy the branch and do some exploratory testing on it. First we need to get 3.3.3 out.

@jekkos
jekkos force-pushed the squash-import-update branch from 7e6286d to 1126b16 Compare December 1, 2020 22:35
@objecttothis

objecttothis commented Dec 2, 2020 •

Copy link
Copy Markdown
Member

@objecttothis Beside those indentation issues I think it looks fine. Maybe @daN4cat was double checking some stuff (as I saw one commment) so I would wait for more feedback (if any).

Yes, he commented on an indentation issue and I got that fixed. I'll stand by for any other issues that others report.

I think a next step would be to deploy the branch and do some exploratory testing on it. First we need to get 3.3.3 out.

Agreed. I've been running this in production for the last four months, but having people deploy and give it a run for it's money will be invaluable. One feature in this PR that really needs people kicking the tires is the Update Import. Several have asked for the ability to do importing to update items and this PR has that. It's been working great for me, but the more people trying to break it, the better.

I'm also getting more versed with PhpStorm, so my next step is to figure out how to get PhpUnit running and write a few unit tests.

@jekkos

jekkos commented Dec 2, 2020 •

Copy link
Copy Markdown
Member Author

@objecttothis Ok nice to hear you already have it up and running! Yes I think that adding some unit tests here would certainly make sense.. Let me know how far you get as I'll need to hold back the merge until we release 3.3.3. I think after that we can merge to master to have it available to more users (and let's tackle any other issues after)

@objecttothis objecttothis linked an issue Dec 20, 2020 that may be closed by this pull request
@daN4cat daN4cat mentioned this pull request Jan 1, 2021
@objecttothis objecttothis linked an issue Jan 1, 2021 that may be closed by this pull request
@jekkos

jekkos commented Jan 18, 2021

Copy link
Copy Markdown
Member Author

Quite some merge conflicts now.. I guess we need to rebase again..

@objecttothis

Copy link
Copy Markdown
Member

Quite some merge conflicts now.. I guess we need to rebase again..

Yes. I was waiting until the bugfix release to do that so that I didn't need to keep doing it every time something got merged into the master.

@objecttothis objecttothis mentioned this pull request Mar 5, 2021
@objecttothis

Copy link
Copy Markdown
Member

@jekkos, once I finish this online payment method for our website, I will turn my attention to any fixes that need to be made and merging this. Aside from rebasing on the master and resolving any conflicts, are there any changes to the rework itself that I need to make?

@jekkos

jekkos commented Mar 22, 2021

Copy link
Copy Markdown
Member Author

@objecttothis I think it's just the rebase, this is good to go imo.

- Remove indentation problems
- Replace custom_array_filter with functional call to array_filter
@objecttothis
objecttothis force-pushed the squash-import-update branch from 4c1b2e8 to b18f166 Compare April 4, 2021 15:20
@objecttothis
objecttothis merged commit 616e8e9 into master Apr 4, 2021
@objecttothis

Copy link
Copy Markdown
Member

@jekkos this has been merged with the master. The rebase took awhile but I got it done.

@SteveIreland

Copy link
Copy Markdown
Collaborator

oh my ... not looking forward to rebasing the customer due tracking branch onto this. :-)

@objecttothis

Copy link
Copy Markdown
Member

oh my ... not looking forward to rebasing the customer due tracking branch onto this. :-)

Hehe. It looks big and scary, but much of it is little stuff like replacing the quote operator where not needed in PHP, so that it doesn't invoke the parser. I just looked at a side-by-side comparison with your branch and it doesn't look like there is much in terms of conflicting files. When you do the rebase, depending on which IDE you are using, it should be pretty straight forward to accept all non-conflicting changes and then side-by-side compare the rest.

@jekkos

jekkos commented Apr 5, 2021 •

Copy link
Copy Markdown
Member Author

Thanks for the kick @objecttothis .

Maybe I wasn't very clear with 'good to go', I actually meant ready to merge after 3.3.4.

I've been rather busy so did not have a lot of time to follow up/coordinate. I was planning to do an easter release after the christmas version.

@SteveIreland do you still have something open? I saw you commented on #3138 but I'm not sure what the status is there.

So possible plan of attack

  • We can proceed and release a 3.3.4 from the commit before the last merge (depends on status of Daily Sales overall Cash total changes when switching pages #3138)?
  • If any other issues come up after, we might need to do a release (hotfix) branch to fix those eventually
  • Or a more drastic fix would be to rollback to commit - 1 for now to make sure we merge any hotfixes before.

@objecttothis

Copy link
Copy Markdown
Member

@jekkos so sorry. For some reason I thought we pulled the trigger on 3.3.4 awhile ago so when I read 'good to go' I didn't even think to check the releases to make sure you had indeed already done the release. I don't feel strongly one way or another about which option we choose. I'm available to submit fixes for issues my code inadvertently has caused.

@SteveIreland

SteveIreland commented Apr 5, 2021 •

Copy link
Copy Markdown
Collaborator

@jekkos No worries. I'm working on the Customer Due Tracking changes. So far it has touched close to a dozen files. I was going to catch up with changes last night but after the fetch and merge there were a gazillion differences between what I had and what was now in master. Since @odiea reports that it's not working I'll just waiting to rebase until after the serious issues are resolved. Otherwise I won't be able to test my changes. Good luck!

@chunter2

chunter2 commented Apr 5, 2021

Copy link
Copy Markdown
Contributor

@SteveIreland Any chance your work on the Customer Due Tracking changes affects #3138 ? Just wondering if they're related.
Thanks

@SteveIreland

Copy link
Copy Markdown
Collaborator

@chunter2 It is possible that an earlier effort might have triggered it. I don't understand what triggers the error, but I'm going to take a look at it as part of the customer due tracking effort, but none of the customer due tracking changes have yet been pushed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question: How to re-import CSV item list Import Item csv

4 participants