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

"Optional System Fields" values are not saved into schema #13562

Closed
joselcvarela opened this issue May 26, 2022 · 2 comments
Closed

"Optional System Fields" values are not saved into schema #13562

joselcvarela opened this issue May 26, 2022 · 2 comments
Assignees
Labels

Comments

@joselcvarela
Copy link
Member

Describe the Bug

When creating a collection you can choose "Optional System Fields", like user_created or date_updated.
Although, when creating a snapshot, those fields loose user or date track.
This means that after applying this snapshot it will not save user or date for new items.

To Reproduce

  • Create a collection
  • Add all "Optional System Fields"
  • Make a schema snapshot
  • Run Directus from scratch
  • Apply the schema
  • Create a new item on that collection
  • user_created or date_created are not populated

Errors Shown

No response

What version of Directus are you using?

9.11.1 (main)

What version of Node.js are you using?

v16.14.2

What database are you using?

postgis/postgis:13-3.1-alpine

What browser are you using?

Chrome

How are you deploying Directus?

running locally

@br41nslug
Copy link
Member

I've been trying to reproduce this issue but have not been able to in either v9.11.1, v9.12.2 or v9.13.0. The optional fields are persisted in the snapshot as expected and applied correctly after the cache has been cleared
image
image

@joselcvarela
Copy link
Member Author

Yes, it seems to be working.
Not sure if I was using MariaDB for snapshot and Postgres for apply, but I cannot also reproduce it.
Closing.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants