-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installer: Download-Anzahl, sortieren nach Download-Anzahl #5696
Conversation
Oh, ich muss mich hier wohl noch um ein paar psalm Probleme kümmern |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich denke, meist wenn man nach Veröffentlichung oder Downloads sortiert, möchte man jeweils absteigend sortieren. Daher würde ich bei erstem Klick entsprechend jeweils eher absteigend sortieren.
phpstan/psalm kann ich mir sonst auch am Ende anschauen (evtl nehme ich manchen Stellen auch einfach in die Baseline erstmal auf)
<th>' . $package->i18n('shortdescription') . '</th> | ||
<th class="rex-table-action">' . $package->i18n('header_function') . '</th> | ||
</tr> | ||
</thead> | ||
<tbody>'; | ||
|
||
foreach ($addons as $key => $addon) { | ||
$downloads = array_sum(array_column($addon['files'], 'counter')) ?: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die Gesamtzahl müsste auch direkt in der API verfügbar sein, auf Addon-Ebene.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die habe ich total übersehen, danke für den Hinweis. Das passe ich an. Bei Psalm habe ich ein paar Stellen gefunden, an denen ich die Kommentare verändern muss, aber dann muss ich die Baseline vermutlich neu erstellen.
Ich weiß nur nicht genau was ich mit psalm machen soll. |
Erweitert den Installer um die Anzahl der gesamten Downloads eines Addons und der jeweiligen Version. Zusätzlich kann nach Downloads sortiert werden.
Ein Hinweis, dass die gesamten Downloads keine Aussage über die Qualität oder so etwas in der Art sind, habe ich nicht hinzugefügt, ich wüsste aktuell nicht wohin dieser sollte.