Add fields to better capture Service and Service Provider status

Đang mở
#2,134 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?
Ngôn ngữ chính
JavaScript
Star
73
Fork
38
Merge trung bình
14 giờ 53 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GSA/touchpoints

Tất cả issue của GSA/touchpoints

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.