Add fields to better capture Service and Service Provider status

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

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

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

評価

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

調査の方向性

The issue does not identify files, tests, or entry points. First locate the Service and Service Provider models and how their status fields are stored and used; the open question about assigning dates to existing records needs resolution before implementation. Done means the new dates and computed status are defined for both entities, deprecated fields are addressed, and existing records have a migration plan.

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

説明

Requested by @BinFZheng.

Add fields to Service and Service Provider
  • date_start_designation, type date
  • date_end_designation, type date, default NULL
  • auto_status, one of [Current, New, Retired]

auto_status is computed as:

Current (if date_end_designation == NULL)
New (if date_end_designation == NULL and if YYYY of date_start_designation is current FY)
Retired (if date_end_designation has a value for MM/DD/YYYY older than current date)
Deprecate fields

Deprecated fields will be removed from the UI and tagged as deprecated in the API documentation. To avoid breaking changes, they will still be returned in v1 of the API.

Fields to deprecate in Service Provider

All of these fields can be computed from the new fields.

  • new_hisp, equivalent to auto_status == New
  • inactive, equivalent to auto_status == Retired
  • year_designated
Fields to deprecate in Service

All of these fields can be computed from the new fields.

  • previously_reported, equivalent to auto_status != New
  • year_designated
Open Questions
  • How to set date_start_designation and date_end_designation for existing services and service providers?
主要言語
JavaScript
スター
73
フォーク
38
平均マージ
14時間 53分
マージ済み PR(30日)
12

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

GSA/touchpoints のほかの issue

GSA/touchpoints の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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