Cannot set `timestamp` fields to null in Keystone admin panel
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- nodejs, typescript
- Domain
- frontend
Research direction
Start by reproducing the issue in the Keystone admin panel with a timestamp field, then compare clearing the value there with the GraphQL behavior. Check whether the same behavior occurs for calendarDay. Done means an existing item can be updated with the timestamp set to null while required timestamp validation remains unchanged.
Written by the indexing model from the issue text.
Description
Repro Steps
- create a model with a
timestampfield (no options passed) - go to admin panel and navigate to that model
- create one item and set some value for
timestampfield - remove the timestamp value
- hit the update button but throws an error saying that "[field x] requires a date to be selected"
Should be able to update and set null value for timestamp fields.
Also need to mention that this happens only on keystone panel and not the GraphQL.
I've tried { validation: { isRequired: false } } but didn't work neither.
We might have the same issue for calendarDay field as well.
Google Chrome: Version 118.0.5993.117 (Official Build) (64-bit)
Nodejs: v18.18.2
Package.json deps:
{
"dependencies": {
"@apollo/server-plugin-landing-page-graphql-playground": "^4.0.1",
"@k6-contrib/list-plugins": "^5.1.0",
"@keystone-6/auth": "^7.0.2",
"@keystone-6/core": "^5.7.0",
"@keystone-6/fields-document": "^8.0.2",
"compression": "^1.7.4",
"fast-jwt": "^3.3.1",
"http-errors": "^2.0.0",
"typescript": "^5.2.2"
},
"engines": {
"node": "^18.18 || ^20.9"
}
}
- Dominant language
- TypeScript
- Stars
- 10k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 38
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from keystonejs/keystone
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
keystonejs/keystone#10143 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
keystonejs/keystone#10141 ·
Maintainers usually reply within 1 day
-
[bug] List view search field becomes disabled when search returns no results, interrupting IME inputPossibly taken @ltxhhz claimed this 17 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
keystonejs/keystone#10097 ·
Maintainers usually reply within 1 day
-
Document Fields Demo page of docs refers to form that doesn't existMay be free again @Mthize claimed this 189 days ago, and no pull request is open. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
keystonejs/keystone#9766 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
keystonejs/keystone#10142 ·
Maintainers usually reply within 1 day
All issues in keystonejs/keystone
Similar issues
-
🔨 tool 🧰 library
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DISIC/teleservice-conformite#230 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rothgar/rabble.radio#410 ·
Maintainers usually reply within 1 day
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistentlyPossibly taken @BitPluto claimed this today. Openneeds-triage🔍
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Dokploy/dokploy#6203 · 1 comment ·
Maintainers usually reply within 1 day
-
area/webapp comp/desktop P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#163341 · 2 comments ·
Maintainers usually reply within 1 day