AACraiu / AACraiu/golfr_frontend
Number of holes
- Linguagem predominante
- JavaScript
- Estrelas
- 1
- Forks
- 64
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
### Feature background
We would like to add support for a golf concept named **9/18-holes**.
Every golfer plays on a golf field named "course". These courses can be smaller or larger and we can divide them by their total number of holes supported: courses with **9 holes** and with **18 holes**.
9-hole | 18-hole
:-------------------------:|:-------------------------:
| 
When a user posts a score, we would like to know if it was played on a 9-holes or 18-holes course. Based on the number of holes, the score should be included in a range
- 9-hole - score should be >= 27 and < 90
- 18-hole - score should be >= 54 and < 180
### Technical process
- Create a database migration on backend to add a new field `number_of_holes` to the `scores` table.
- Include validation to allow only `9` and `18` as values.
- Include validation to allow score value based on the above intervals.
- Display `number_of_holes` value in frontend in places where we already show `total_score`
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Encontre a migration e o model da tabela scores no backend para adicionar a coluna number_of_holes com validação. Atualize os componentes do frontend que exibem total_score para que também exibam number_of_holes. Execute os testes existentes para garantir que as validações funcionem para os intervalos de score baseados no número de buracos.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Domínio
- backend, database, frontend
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 65/100