AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

GET `/api/regions/active`

未關閉
#229 1 則留言 0 個 reaction 已指派 1 人 已被 @a-v25 認領 在 GitHub 檢視
Critical/Blocking enhancement
主要語言
DataWeave
星號
2
分支
1
PR 合併指標
30 天內沒有已合併 PR

描述

**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"]
}

```
~~

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。