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

Aperta
#8 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
4
Fork
8
Merge medio
21h 34m
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di render-engine/render-engine-cli

Tutte le issue di render-engine/render-engine-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.