ezpublish-legacy icon indicating copy to clipboard operation
ezpublish-legacy copied to clipboard

EZP-21146 remove includes

Open tharkun opened this issue 11 years ago • 13 comments

There are still a lot of include that should be triggered by php autoload.

This PR is meant to remove some of them.

tharkun avatar Jun 28 '13 11:06 tharkun

These seems to be breaking changes, legacy is supposed to stay (very) stable.

andrerom avatar Jun 29 '13 19:06 andrerom

Why BC ? The code only uses php autoload where php4 needed include pattern (made with settings here).

With that PR, we would finally be able to override some code without hacking the kernel...

tharkun avatar Jun 29 '13 19:06 tharkun

kernel override is in essence a clean way to hack the kernel, but maybe I'm wrong regarding the BC. @patrickallaert you see any possible BC breaks here?

andrerom avatar Jun 29 '13 19:06 andrerom

@patrickallaert you see any possible BC breaks here?

I haven't seen any BC break.

+1 from me, especially since we are at the beginning of the cycle of next release.

I would however commit this as a single commit by rebasing the PR or by merging manually.

patrickallaert avatar Jul 02 '13 15:07 patrickallaert

@patrickallaert you're right this is better with all commits rebased. There is no need to have so much commit for the same purpose.

tharkun avatar Jul 02 '13 20:07 tharkun

Ok, only remaining issue seems that the ini change seems to indicate the settings are deprecated, while they are remove right? If so they need to be mentioned in doc/bc as removed and why. If not so a note in doc/bc about deprecation is still needed.

andrerom avatar Jul 03 '13 06:07 andrerom

@crevillo Well you were right about that one.

tharkun avatar Jul 03 '13 16:07 tharkun

@patrickallaert @andrerom ; see any more BC ?

tharkun avatar Jul 11 '13 18:07 tharkun

Just one remark from me: this PR is mixing code change and CS fixes. If I'm all for fixing CS issues, I rather prefer keeping things separated as it makes reviewing and browsing the code history much simpler.

patrickallaert avatar Aug 07 '13 11:08 patrickallaert

@patrickallaert I removed as you said the code i previously commented.

I also reverted the file ezdatatype.php which didn't have any use in this PR.

tharkun avatar Aug 07 '13 17:08 tharkun

I think you should remove any cosmetic changes, because a good practice is to not mix functional and cosmetic changes in the same commit.

guillaumelecerf avatar Jan 23 '14 14:01 guillaumelecerf

What do you mean ?

tharkun avatar Jan 23 '14 14:01 tharkun

I mean that your commit https://github.com/tharkun/ezpublish-legacy/commit/ef0b68b0c1b5f7c6c23832b693c94ddeabb9cd67 contains cosmetic changes, i.e. space removal, mixed with functional changes.

These should be separated.

guillaumelecerf avatar Jan 23 '14 16:01 guillaumelecerf