Harvest source 'Add' page: Organization dropdown sort is inconsistent (U.S. vs US)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
How to reproduce
- Go to https://harvest-stage.data.gov/harvest_source/add
- Open the Organization dropdown
- 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.
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 207
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GSA/data.gov
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Harvester
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
blocked form submission shows home pagePossibly taken @FuhuXia claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
idle-in-transaction for harvest record selectionPossibly taken @theyottaboy claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day