Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

labels should not be allowed to be blank #176

Open
stefanprobst opened this issue Nov 28, 2022 · 0 comments
Open

labels should not be allowed to be blank #176

stefanprobst opened this issue Nov 28, 2022 · 0 comments

Comments

@stefanprobst
Copy link
Contributor

currently, the main label fields in a model are required, but allowed to be blank.

i think those are the main label fields:

this is not a huge issue, but could help avoid having entries with empty labels (currently 2 places, 1 keyword)

  • curl -s https://mmp.acdh-dev.oeaw.ac.at/api/ort/ | jq '.results[] | select(.name | . == null or . == "")' 2 hits (obvious dummy data)
  • curl -s https://mmp.acdh-dev.oeaw.ac.at/api/keyword/ | jq '.results[] | select(.stichwort | . == null or . == "")' 1 hit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant