Harvest source 'Add' page: Organization dropdown sort is inconsistent (U.S. vs US)
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 1.2k
- フォーク
- 207
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GSA/data.gov のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
Harvester
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
-
blocked form submission shows home page対応中かも @FuhuXia が 2 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
idle-in-transaction for harvest record selection対応中かも @theyottaboy が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
似ている issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンgood first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信