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

Apply dictionary date formats on csv downloads when in reference mode #4202

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

janette
Copy link
Member

@janette janette commented Jun 26, 2024

ref: 21261

QA Steps

  • Set the data dictionary mode to 'reference' https://dkan.ddev.site/admin/dkan/data-dictionary/settings
  • Create a data dictionary with a field of type date, set the format to %m/%d/%Y
  • Create a dataset with a data file containing a date column that you used in your data dictionary, dates should be in mm/dd/YYYY format
  • Use your data dictionary endpoint in the distribution describedBy field
  • Save and run import queues
  • Visit your dataset, adjust the url to call the streamed download, or use the link below replacing the uuid with your dataset uuid

https://dkan.ddev.site/api/1/datastore/query/505a1f80-7a95-4d9e-8eda-c57efdbf5c19/0/download?&format=csv

  • Confirm the resulting csv has the dates in the DD format, not ISO

@dafeder dafeder merged commit db9ceb6 into 2.x Jun 27, 2024
11 checks passed
@dafeder dafeder deleted the apply-dictionary-in-reference-mode branch June 27, 2024 14:22
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

Successfully merging this pull request may close these issues.

2 participants