Add fields to better capture Service and Service Provider status

Aperta
#2,134 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?
Lingua principale
JavaScript
Stelle
73
Fork
38
Merge medio
14h 53m
PR unite (30g)
12

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GSA/touchpoints

Tutte le issue di GSA/touchpoints

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.