Bug #87390
closed
View Upgrade Documentation: ordering mixed (wrong sorting)
Added by Josef Glatz almost 6 years ago.
Updated over 4 years ago.
Description
Problem/Description¶
In TYPO3 9.5 LTS, the ordering is mixed. Seems to be an regression, because it was ordered by severity in TYPO3 8.5 LTS.
ToDo(s)¶
- Order list of RsT's by severity to make consuming easier for system maintainers
- Status changed from Accepted to Needs Feedback
can you pls recheck if still valid in 10, imo fixed
- Related to Bug #88883: Wrong sorting in documentation changelog added
- Subject changed from View Upgrade Documentation: ordering mixed to View Upgrade Documentation: ordering mixed (wrong sorting)
Nope, not fixed in 9.5 or master as of today¶
Affected TYPO3 versions: 9.5 and master (10)
until TYPO3 8.7 the rST's itself where sorted by "severity". Beginning with Breaking
, ... and so on
By looking into the code I think the right position is in \TYPO3\CMS\Install\UpgradeAnalysis\DocumentationFile::getDocumentationFilesForVersion
¶
/**
* Handle a single directory
*
* @param string $docDirectory
* @return array
*/
protected function getDocumentationFilesForVersion(string $docDirectory): array
{
$documentationFiles = [[]];
$absolutePath = str_replace('\\', '/', $docDirectory);
$finder = $this->getDocumentFinder()->in($absolutePath);
foreach ($finder->files() as $file) {
/** @var SplFileInfo $file */
$documentationFiles[] = $this->getListEntry($file->getPathname());
}
return array_merge(...$documentationFiles);
}
Maybe it's the right area to sort by class
subarray value. The "class
" subarray value holds values like feature
.
- Status changed from Needs Feedback to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF