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

Catch TypeError from invalid dates thrown by dateutils #6056

Merged
merged 2 commits into from May 12, 2021

Conversation

kentsanggds
Copy link
Contributor

@kentsanggds kentsanggds commented Apr 29, 2021

Fixes

Problem with catching TypeErrors thrown when an invalid date like 20/062012 and 2014-15 are passed in as date strings.

Proposed fixes:

Catch TypeError and provide an error log so that devs can investigate any issues.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

@kentsanggds kentsanggds marked this pull request as ready for review April 29, 2021 11:14
@kentsanggds kentsanggds changed the title Catch TypeError from invalid thrown by dateutils Catch TypeError from invalid dates thrown by dateutils Apr 29, 2021
@amercader amercader assigned amercader and Zharktas and unassigned amercader Apr 29, 2021
@Zharktas
Copy link
Member

Just to add a note, this due to a bug in dateutil dateutil/dateutil#1108

@Zharktas Zharktas merged commit 9a5e5a8 into ckan:2.9 May 12, 2021
@amercader
Copy link
Member

@Zharktas this was merged to the 2.9 branch by mistake, can you cherry-pick it to master?

@kentsanggds thanks for your patch, all PRs should target master and we then cherry-pick the changes to the release branches

@Zharktas
Copy link
Member

Bah, the one time i didn't check that it was done against master, I'll fix it.

Zharktas added a commit that referenced this pull request May 12, 2021
Catch TypeError from invalid dates thrown by dateutils
@amercader
Copy link
Member

I wonder if we can configure Github in some way to "only accept PRs against master"

@sengi sengi deleted the fix-search-reindex-date branch March 25, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants