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

オープン
#6,437 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

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

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.
主要言語
Python
スター
1.2k
フォーク
207
平均マージ
3日 16時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GSA/data.gov のほかの issue

GSA/data.gov の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。