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

Set updated when creating #28

Closed
StaffanMelin opened this issue Aug 14, 2024 · 7 comments
Closed

Set updated when creating #28

StaffanMelin opened this issue Aug 14, 2024 · 7 comments
Assignees

Comments

@StaffanMelin
Copy link
Member

Always set updated to same date as created when creating a metadata resource.

@anne17
Copy link
Member

anne17 commented Sep 2, 2024

Do you mean that the API should do this on the fly if the field "updated" is missing in the metadata?

@StaffanMelin
Copy link
Member Author

Yeah, as a favor to the website.

But this is also a reminder to Sparv/Martin, for when he is creating YAML-files.

Does it make sense?

@anne17
Copy link
Member

anne17 commented Sep 2, 2024

Yes, I just wanted to make sure I understood. [Sparv reminders don't live here though, I'm not even sure Martin reads these issues ;) ]

@StaffanMelin
Copy link
Member Author

It is good that you ask (vet inte varför vi skriver på engelska :) ), I sent an e-mail to Martin and asked him.

We will (hopefuly) go through all of these issues on Wednesday. I have sometimes just jotted them down as a reminder for when you are coming back. :)

@StaffanMelin
Copy link
Member Author

Validated through schema.

@MartinHammarstedt
Copy link
Member

Sparv will automatically set the updated field.
For manually created metadata files, the schema validation (#12) will take care of the problem by rejecting files without an updated date.

@MartinHammarstedt
Copy link
Member

Update: We decided to not require the updated field, as there are several resources for which we don't know the date.

Sparv will still automatically add the field though, so most resources will have it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants