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

Offen
#8 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
4
Forks
8
Ø Merge
21 Std. 34 Min.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus render-engine/render-engine-cli

Alle Issues in render-engine/render-engine-cli

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.