ubccr / coldfront

HPC Resource Allocation System
https://coldfront.readthedocs.io
GNU General Public License v3.0
96 stars 76 forks source link

Lists sorted case insensitive throughout front end #445

Closed rg663 closed 1 year ago

rg663 commented 1 year ago

Resolves #393 — lists are now sorted CI (alphabetically regardless of case) throughout ColdFront's front end. No changes were made to models or any part of the admin site, so no migrations need to be made.

Instances that were fixed:

  1. When adding users to projects, previously, the allocation list for the project was sorted out of order. Now, it is sorted case insensitive.
  2. When requesting a resource allocation, the resource list was sorted alphabetically, but not CI. Now, it is sorted case insensitive.
  3. When adding a grant to a project, the grant funding agencies were not sorted alphabetically. Now, they are sorted alphabetically (CI doesn't apply since all agencies are in title case).
  4. When filtering allocations on the list page, the resource names and allocation attribute names were sorted alphabetically case sensitive. Now, they are sorted case insensitive.
  5. When adding an allocation attribute, the attribute names were not sorted CI, but now they are sorted case insensitive.
  6. When sorting by resource name on the resource list page, resources are now sorted case insensitive as opposed to just alphabetically.
  7. When adding a resource attribute to a resource, previously, the list of attributes was not sorted case insensitive. Now, it is sorted case insensitive.