Add fields to better capture Service and Service Provider status

Abierto
#2,134 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?
Lenguaje dominante
JavaScript
Estrellas
73
Forks
38
Merge medio
14 h 53 min
PR fusionados (30 d)
12

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de GSA/touchpoints

Todos los issues de GSA/touchpoints

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.