Skip to content

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

Open

Description

@brass75

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

Activity

  1. added
    bug
    on May 29, 2025
  2. kjaymiller commented on Jun 20, 2025

    @kjaymiller
    Contributor

    Solution would be to check for the sort key and and add a field for it.

  3. brass75 commented on Jun 20, 2025

    @brass75
    MemberAuthor

    Solution would be to check for the sort key and and add a field for it.

    Should we check to see if that field is date and add an appropriate date field? Otherwise we'll add something like date: date which will cause an error later on when we sort which this is supposed to help get rid of.
    I can see doing that and I can see erroring out at the creation phase saying it's missing the sort key.

  4. kjaymiller commented on Jun 23, 2025

    @kjaymiller
    Contributor

    in my initial toying with the idea... that what I did... I was trying to move things around to make sure that it would still work

  5. added
    Djangonauts
    on Oct 6, 2026
  6. added
    triaged
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Djangonautsbugtriaged

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions