Skip to content

[ticket/15069] Refactor template class#4688

Closed
javiexin wants to merge 9 commits intophpbb:masterfrom
javiexin:ticket/15069
Closed

[ticket/15069] Refactor template class#4688
javiexin wants to merge 9 commits intophpbb:masterfrom
javiexin:ticket/15069

Conversation

@javiexin
Copy link
Contributor

@javiexin javiexin commented Feb 6, 2017

PHPBB3-15069

For reference and details, see https://area51.phpbb.com/phpBB/viewtopic.php?f=81&t=50881

Checklist:

  • Correct branch: master for new features; 3.2.x, 3.1.x for fixes
  • Tests pass
  • Code follows coding guidelines: master / 3.2.x, 3.1.x
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB3-15069

Eliminate check for empty loop insertion, keep for backward compatibility

PHPBB3-15069
@javiexin javiexin changed the base branch from master to 3.2.x February 6, 2017 22:24
@javiexin javiexin closed this Feb 6, 2017
@javiexin javiexin reopened this Feb 6, 2017
Do not leave block if empty insertion

PHPBB3-15069
Do not traverse empty loops

PHPBB3-15069
@javiexin javiexin changed the base branch from 3.2.x to master February 7, 2017 19:10
Do not traverse empty loops.  Do not leave empty blocks.
General code improvements.

PHPBB3-15069
Copy link
Member

@hanakin hanakin left a comment

Choose a reason for hiding this comment

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

This is probably to verbose and will most likely need broken up into smaller chunks

@javiexin
Copy link
Contributor Author

javiexin commented Mar 7, 2017

Ok, I am all for improving the code, but @hanakin what exactly are you suggesting to break, and what is too verbose? Sorry I don't understand your comment precisely. Please, elaborate.

@hanakin
Copy link
Member

hanakin commented Mar 7, 2017

Ill let the dev team comment, but you rewrote the entire files and there is a lot of docblock making it hard to make sense of whats getting changed on here for me, its just not a very clean diff is all

@javiexin
Copy link
Contributor Author

javiexin commented Mar 8, 2017

Of course, it is a major rewrite, and it adds significant functionality. The diff does not give you enough information. Maybe looking at the new file alone makes more sense. That is for context, template and base are much clearer.

javiexin added 4 commits March 9, 2017 15:10
Add the possibility to retrieve complete blocks.

PHPBB3-15069
Fix wrong merge conflict resolution.

PHPBB3-15069
Fix wrong merge conflict resolution in base.php.

PHPBB3-15069
@javiexin javiexin closed this Mar 9, 2017
@javiexin javiexin reopened this Mar 9, 2017
@javiexin
Copy link
Contributor Author

javiexin commented Mar 9, 2017

The failure seems a totally different problem, unrelated to this PR.

@javiexin
Copy link
Contributor Author

javiexin commented Mar 9, 2017

Confirmed, the test failure is coming from here bdc3126#diff-80a55b47f049e3e27edb4d6bfd8e7a1dR93

And uncovered by #4622

@javiexin
Copy link
Contributor Author

Fix proposed: #4731

@javiexin javiexin closed this Mar 11, 2017
@javiexin javiexin reopened this Mar 11, 2017
@javiexin
Copy link
Contributor Author

The latest error seems to be coming from the "Merge commit" not having the comment correctly formatted.
Could anyone please squash all commits between 7ad31c9 and c9c49a2? If needed, keep message from first commit.
I cannot do it in my local git and then push it here, and I do not want to play with this repository, as I may break more things than what I would fix.
Thanks a lot.

@hanakin
Copy link
Member

hanakin commented Mar 11, 2017

@javiexin just hard rest with keep changes, stash all, change branches, then re-apply stash and re-commit

@javiexin
Copy link
Contributor Author

@hanakin thanks a lot, but I am not confident with this, and I do not want to mess around with the phpbb repository. Maybe close this request and reopen a new one?
Otherwise, be a bit more explicit, with command that I should type. Sorry but my Git knowledge is very limited :(

@hanakin
Copy link
Member

hanakin commented Mar 11, 2017

First I recommend using a tool like git Tower, makes working with git alot simpler

To not have to use git you could

  1. Save backups of the changed files somewhere.
  2. git branch -D ticket/15069
  3. git checkout master
  4. git branch ticket/15069
  5. git checkout ticket/15069
  6. open files and manually compare with backups and commit changes
  7. git push origin ticket/15069 --force https://www.atlassian.com/git/tutorials/syncing#git-push
  8. Close pull request
  9. Open new pull request against master

@javiexin javiexin closed this Mar 11, 2017
@javiexin
Copy link
Contributor Author

Ok, I have now created the new PR against master, following your detailed guide (thanks a lot!!).

But I now still get merge conflicts, that I must resolve, that will result in a commit with an incorrect commit message...

What do I do??

The new PR: #4735

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants