AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

GET `/api/regions/active`

Open
#229 1 comment 0 reactions 1 assignee Claimed by @a-v25 View on GitHub
Critical/Blocking enhancement
Dominant language
DataWeave
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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

```
~~

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.