Skip to content

Revert "Minimizing JArrayHelper by using Joomla\Utilities\ArrayHelper internally"#8455

Merged
roland-d merged 1 commit intostagingfrom
revert-7782-arrayhelper-3
Nov 18, 2015
Merged

Revert "Minimizing JArrayHelper by using Joomla\Utilities\ArrayHelper internally"#8455
roland-d merged 1 commit intostagingfrom
revert-7782-arrayhelper-3

Conversation

@rdeutz
Copy link
Copy Markdown
Contributor

@rdeutz rdeutz commented Nov 16, 2015

Reverts #7782

We have to revert the change because a protected function _fromObject and _sortObject are removed by the change.

Here is why. Someone could have extend the class and use one of the removed functions. It is a bad idea but someone could and this change isn't B/C.

@wilsonge
Copy link
Copy Markdown
Contributor

At least keep the changes in toInteger and arrayUnique they are fine and have no b/c implications

@rdeutz
Copy link
Copy Markdown
Contributor Author

rdeutz commented Nov 17, 2015

@wilsonge Let us merge this one and then re-think what we can change

@wilsonge
Copy link
Copy Markdown
Contributor

Why? there a 4 function changes. 2 of them are b/c 2 aren't. so just revert the stuff that is not b/c.

@izharaazmi
Copy link
Copy Markdown
Contributor

@wilsonge @rdeutz Should I PR again to revert just those methods with B/C issues?

I mean to revert only fromObject , _fromObject , sortObjects , _sortObjects. And leave toInteger , pivot, arrayUnique methods as it is now.

If we can update ArrayHelper form the https://github.com/joomla-framework/utilities, then it would still be possible to minimize the methods fromObject , _fromObject. Otherwise it is important to revert these two.

@wilsonge
Copy link
Copy Markdown
Contributor

We're not going to change the framework. We'll just need to override those methods at the CMS levels. But yes - we'll need to keep the _fromObject and _sortObjects methods

@izharaazmi
Copy link
Copy Markdown
Contributor

@wilsonge I didn't mean to change the framework.
I just notices that in the 3.5 beta release the Joomla\Utilities\ArrayHelper is not up to date with the framework repository. Therefore it was just a humble reminder. :-)

@rdeutz
Copy link
Copy Markdown
Contributor Author

rdeutz commented Nov 17, 2015

I would prefer to revert this one and have a new PR for the changes that are not a B/C break, could you do a PR @izharaazmi ?

@izharaazmi
Copy link
Copy Markdown
Contributor

@rdeutz Sure! But its over for today's work now. I'll do that tomorrow positively.

@izharaazmi
Copy link
Copy Markdown
Contributor

@rdeutz I am ready to send the PR let me know if you are merging this reverse or I should just include this all in my new PR.

izharaazmi added a commit to izharaazmi/joomla-cms that referenced this pull request Nov 18, 2015
…using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from joomla#7782) other four methods as is for b/c reasons as mentioned in joomla#8455.
roland-d added a commit that referenced this pull request Nov 18, 2015
Revert "Minimizing JArrayHelper by using Joomla\Utilities\ArrayHelper internally"
@roland-d roland-d merged commit e122e3f into staging Nov 18, 2015
@rdeutz rdeutz deleted the revert-7782-arrayhelper-3 branch November 18, 2015 19:08
@zero-24 zero-24 added this to the Joomla! 3.5.0 milestone Nov 18, 2015
izharaazmi added a commit to izharaazmi/joomla-cms that referenced this pull request Aug 15, 2016
…using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from joomla#7782) other four methods as is for b/c reasons as mentioned in joomla#8455.
izharaazmi added a commit to izharaazmi/joomla-cms that referenced this pull request Aug 15, 2016
* re-arrayhelper-min: (2467 commits)
  Minimize JArrayHelper methods `toInteger`, `pivot`, `arrayUnique` by using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from joomla#7782) other four methods as is for b/c reasons as mentioned in joomla#8455.
  remove platform include (joomla#11615)
  [GitHub Templates] Make headings bigger (joomla#11607)
  [com_contact] Make ACL core.edit.own work (PR for 11466) (joomla#11503)
  Small review on docs & code structure in JModelLegacy library classes (joomla#11057)
  Obviously, this should be an array. (joomla#11610)
  Don't manually import JPlatform anymore (joomla#10841)
  Parse preprocess rules from component routers (joomla#8986)
  Add the correct exception after 11593 merge (was waiting for that merrge) (joomla#11606)
  Add missing clean line after joomla#9277 (joomla#11605)
  Deprecate the _PROFILER global var (joomla#10845)
  Spelling errors (joomla#11604)
  Moved travis javascript bash file to build/travis like joomla#11600 (joomla#11603)
  Regression: Fix edit check in backend articles manager, always denying edit after soft deny (joomla#11511)
  [com_plugins] User not allowed to core.manage? Use 403 php custom exception (instead of a 404 JError) (joomla#11593)
  [com_newsfeeds] Make ACL core.edit.own work (PR for 11466) (joomla#11502)
  $result-variable-undefined-given-default-value (joomla#9277)
  com_banners use exceptions. and not allowed is a 403 (joomla#11418)
  Frontend & plugins using the autoloader (joomla#10882)
  New version of PR 6788 (JText::_() Optimizations) (joomla#11235)
  ...
rdeutz pushed a commit that referenced this pull request Aug 22, 2016
)

* Minimize JArrayHelper methods `toInteger`, `pivot`, `arrayUnique` by using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from #7782) other four methods as is for b/c reasons as mentioned in #8455.

* Minimize JArrayHelper methods `toInteger`, `pivot`, `arrayUnique` by using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from #7782) other four methods as is for b/c reasons as mentioned in #8455.
roland-d pushed a commit to roland-d/joomla-cms that referenced this pull request Sep 11, 2016
…omla#8479)

* Minimize JArrayHelper methods `toInteger`, `pivot`, `arrayUnique` by using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from joomla#7782) other four methods as is for b/c reasons as mentioned in joomla#8455.

* Minimize JArrayHelper methods `toInteger`, `pivot`, `arrayUnique` by using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from joomla#7782) other four methods as is for b/c reasons as mentioned in joomla#8455.
roland-d pushed a commit to roland-d/joomla-cms that referenced this pull request Sep 11, 2016
…omla#8479)

* Minimize JArrayHelper methods `toInteger`, `pivot`, `arrayUnique` by using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from joomla#7782) other four methods as is for b/c reasons as mentioned in joomla#8455.

* Minimize JArrayHelper methods `toInteger`, `pivot`, `arrayUnique` by using Joomla\Utilities\ArrayHelper internally. Leaving (reverting from joomla#7782) other four methods as is for b/c reasons as mentioned in joomla#8455.
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.

6 participants