Project

General

Profile

Actions

Task #67986

closed

Adjust DependencyOrderService to set elements without dependencies last

Added by Markus Klein over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
Start date:
2015-07-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

In case you have a long list of items, where only a few have a dependency definition, those items may currently be far apart in the final ordered list.
While this is not a problem in general, it seems useful to have items, which have a relation, close to each other in the list.
A usecase is ordering of UI elements. See #65550.

Moreover the service generally uses an alphabetical order of items for building the dependency matrix and for working on the initial set of "root nodes" when creating the final list.
We now slightly adjust the algorithm to preserve the alphabetical order for items with the same "level" in the dependency graph. (Those are items, which can be put in any order, since their order does not matter according to dependency specification.)

This change of course also affects the PackageStates.php file, which holds the extension loading order. While the content of this file might change, the functionality does of course not change.


Related issues 1 (0 open1 closed)

Precedes TYPO3 Core - Feature #65550: Create configuration possibility to define sorting order of tables listed in List moduleClosedMarkus Klein2015-07-092015-07-09

Actions
Actions #1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41000

Actions #2

Updated by Markus Klein over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF