Bug 43933 - Item order on portals cannot be configured
Item order on portals cannot be configured
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Portal
UCS 4.2
Other Linux
: P5 enhancement (vote)
: UCS 4.2
Assigned To: Alexander Kläser
Stefan Gohmann
: interim-4
Depends on:
Blocks: 44161
  Show dependency treegraph
 
Reported: 2017-03-17 15:29 CET by Erik Damrose
Modified: 2017-04-04 18:28 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2017-03-17 15:29:24 CET
With previous UCS versions it was possible to sort entries on ucs-overview/ by giving a priority. This is not possible with the current Portal implementation. I think in environments with many entries on a portal, the feature will be requested.
Comment 1 Florian Best univentionstaff 2017-03-17 15:31:51 CET
They currently depend on the order of the LDAP entry.
Comment 2 Stefan Gohmann univentionstaff 2017-03-17 15:37:57 CET
(In reply to Florian Best from comment #1)
> They currently depend on the order of the LDAP entry.

Hm, I thought it depended on the alphabetical order?

The possibility to sort entries with a priorities is not part of the 4.2 concept.
Comment 3 Florian Best univentionstaff 2017-03-17 15:40:11 CET
(In reply to Stefan Gohmann from comment #2)
> (In reply to Florian Best from comment #1)
> > They currently depend on the order of the LDAP entry.
> 
> Hm, I thought it depended on the alphabetical order?
No, if you remove one entry from the LDAP and readd it then it is the last one.
Comment 4 Alexander Kläser univentionstaff 2017-03-20 11:31:29 CET
AFAIS the order should be alphabetically, as in the App Center.
Comment 5 Erik Damrose univentionstaff 2017-03-20 11:44:03 CET
This bug was originally about another issue ;)

But the portal_entry listener currently does not order the entries before writing the file portal.json, but appends new items. I do not know if the javascript orders the items before displaying them
Comment 6 Alexander Kläser univentionstaff 2017-03-20 12:02:49 CET
(In reply to Erik Damrose from comment #5)
> This bug was originally about another issue ;)
> 
> But the portal_entry listener currently does not order the entries before
> writing the file portal.json, but appends new items. I do not know if the
> javascript orders the items before displaying them

Yes, the sorting should be done via JavaScript. AFAIS, it is currently simply not activated.
Comment 7 Alexander Kläser univentionstaff 2017-03-20 12:22:49 CET
Fixed. Sorting w.r.t. the display name is done now for the service category.

Changelog entry not necessary as this bug refers to an intermediate version.

univention-portal (1.0.9-3):
r77967 | Bug #43933: make sure that service entries are ordered
Comment 8 Stefan Gohmann univentionstaff 2017-03-21 14:15:58 CET
OK, looks good.

r78047:
 Adding Bug #43933 to existing changelog entry"
Comment 9 Stefan Gohmann univentionstaff 2017-04-04 18:28:56 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".