Harvest source 'Add' page: Organization dropdown sort is inconsistent (U.S. vs US)

Aperta
#6,437 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

The payload names no files. Start by finding where the /harvest_source/add form builds its Organization choices and where that list gets sorted. Done when "U.S." and "US" entries group together, but the issue leaves open whether to sort by slug or normalize the prefixes, so confirm the approach with a maintainer before writing code.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

On the "Add Harvest Source" page (e.g. https://harvest-stage.data.gov/harvest_source/add), the Organization dropdown lists every organization as <Name> - <uuid>, sorted alphabetically by name. This sort is inconsistent because some organization names start with "U.S." (with periods) and others with "US" (no periods), so logically related federal entries end up scattered rather than grouped together.

Requested change

Either of these would fix it:

  • Show the organization slug at the front of each dropdown entry and sort by slug instead of display name, or
  • Sort the dropdown in a more logical/normalized way (e.g. normalize "U.S."/"US" prefixes before sorting) so related entries group together.

Screenshot

Image

How to reproduce

  1. Go to https://harvest-stage.data.gov/harvest_source/add
  2. Open the Organization dropdown
  3. Note "U.S. Census Bureau...", "U.S. Department of..." entries are separated from "US Agency for International Development", "US Consumer Product Safety Commission", etc. due to the period difference.
Lingua principale
Python
Stelle
1.2k
Fork
207
Merge medio
3g 16h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GSA/data.gov

Tutte le issue di GSA/data.gov

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.