Improve related object selectors in conditions.

Review Request #12987 — Created April 25, 2023 and submitted

Information

Review Board
release-6.x

Reviewers

The object selectors in the conditions UI leave a fair bit to be
desired. They end up rendering as <select multiple>, which isn't a
particularly great UI, and the results were displaying in whatever order
the database was giving us.

I'm continuing to investigate whether we have better options for the
widgets, but for now this change fixes up the ordering for repositories,
repository types, and groups to sort alphabetically instead of randomly.

Verified that related object selectors in conditions had better
ordering.

Summary ID
Improve related object selectors in conditions.
The object selectors in the conditions UI leave a fair bit to be desired. They end up rendering as `<select multiple>`, which isn't a particularly great UI, and the results were displaying in whatever order the database was giving us. I'm continuing to investigate whether we have better options for the widgets, but for now this change fixes up the ordering for repositories, repository types, and groups to sort alphabetically instead of randomly. Testing Done: Verified that related object selectors in conditions had better ordering.
1e946334b73bea4e48c71fb2cf579c5240bd67a8
chipx86
  1. Given the simplicity of the change, can we backport to 5.x?

    1. Yep, should cherry-pick easily. Will land it there.

  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.0.x (4a43ed9)