AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

GET `/api/regions/active`

Đang mở
#229 1 bình luận 0 reaction 1 người được giao Được @a-v25 nhận Xem trên GitHub
Critical/Blocking enhancement
Ngôn ngữ chính
DataWeave
Star
2
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description**

Some regions in the enrollment flows are not active or valid and should not appear in any selector. We need a new endpoint to return only active regions.

~~**Possible strategy**~~

~~1) Retrieve all `TeamSeasons`~~
~~2) Filter `TeamSeasons` based on their start date (to determine whether they are active or not)~~
~~3) Get `regions` through the following relation `Team_Season__r.Team__r.School_Site__r.Region__c`~~

**Endpoint**: `GET /api/regions/active`

**Response**:
```json

{
["Region 1", "Region 2", "Region 3"]
}

```
~~

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.