[Bug]: CLI does not validate that sort field is populated in `new-entry`

Aberta
#8 3 comentários 1 reação 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
cli

Direção de pesquisa

Start at the CLI’s new-entry command and trace how it receives the collection entry data and uses the sort key. Add validation for a missing sort key before the entry is added; done means the command reports the missing field clearly instead of raising an exception. The issue gives no test file, so first locate the command’s existing tests and run the relevant ones.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug Djangonauts
Summary Of Actions

Adding an entry to a collection will cause an exception if the sort key isn’t present. The CLI needs to validate that the sort key is included in the data passed to new-entry.

Operating System

Windows

What Python Version are you using?

Python 3.9

Have you installed Plugins/Themes/Custom Parsers?

No response

What did you enter to get the output that you received?

Output

Linguagem predominante
Python
Estrelas
4
Forks
8
Merge médio
21h 34min
PRs com merge (30d)
10

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de render-engine/render-engine-cli

Todas as issues de render-engine/render-engine-cli

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

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