AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

GET `/api/regions/active`

Aberta
#229 1 comentário 0 reações 1 responsável Reivindicada por @a-v25 Ver no GitHub
Critical/Blocking enhancement
Linguagem predominante
DataWeave
Estrelas
2
Forks
1
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

```
~~

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.