Add fields to better capture Service and Service Provider status

未关闭
#2,134 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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 分钟
30 天内合并 PR
12

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GSA/touchpoints 的其他 Issue

查看 GSA/touchpoints 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。