feat(admin): add addresses + geocoding to organizations

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
html
領域
full-stack

調査の方向性

Start by comparing the organizations schema and admin flow with the existing profiles fields, then trace the admin PATCH and the Identity tab. Review the apps/web directory map surface and decide between Nominatim and Mapbox for geocoding. Done means organizations support persisted addresses and coordinates, admin re-geocoding, opt-in map visibility, and organization pins alongside member pins.

索引モデルが issue の本文から書いたものです。

説明

Summary

Organizations need addresses so they can be placed on the community map alongside members. Addresses must be geocoded to lat/long so the map can render them without per-request lookups, mirroring the existing pattern on profiles (latitude/longitude + showOnMap).

Requirements

  • Add address columns to organizations (street/city/region/country/postalCode + latitude numeric(9,6) + longitude numeric(9,6) + showOnMap boolean)
  • Migration: backfill latitude/longitude as nullable; existing rows stay null until geocoded
  • Geocoding pipeline (Nominatim or Mapbox — pick one and document) triggered on address change in admin PATCH
  • Admin UI: address fields on the org detail page Identity tab + a read-only "Geocoded to: ${lat}, ${lng}" preview with a re-geocode button
  • Public map (apps/web map surface used by the directory) picks up org pins gated on showOnMap
  • showOnMap toggle defaults to false for legacy imports; orgs explicitly approved via admin can flip on

Context

The profiles table already has latitude, longitude, showOnMap, and publicLocation — the org-side schema should mirror those names so map rendering can stay type-uniform across actor kinds.

Implementation Notes

Geocoding is async and the admin shouldn't block on it: store address fields synchronously on PATCH, then enqueue a geocode job. For the v1 a single inline fetch to Nominatim on save is probably acceptable given org volume; we can move to a queued worker later if rate limits bite.

主要言語
HTML
スター
33
フォーク
107
平均マージ
14時間 6分
マージ済み PR(30日)
19

環境構築

はじめの一歩

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

USRSE/usrse.github.io のほかの issue

USRSE/usrse.github.io の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

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

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