gristlabs_grist-core/sandbox/grist/imports
Dmitry S 26356fe588 (core) Fix bug with "maximum recursion depth exceeded" in imports.
Summary:
Our date-guessing logic analyzes text in full looking for date parts.
This diff skip all that work when text is so long that we don't need to
consider it to be a valid date.

This is a quick fix. There are probably many other cases when we don't
need to try hard to parse arbitrary text as dates.

Test Plan: Added a fixture and test case that would trigger the error without the fix.

Reviewers: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D2992
2021-08-20 17:44:48 -04:00
..
fixtures (core) Fix bug with "maximum recursion depth exceeded" in imports. 2021-08-20 17:44:48 -04:00
__init__.py (core) move data engine code to core 2020-07-29 08:57:25 -04:00
dateguess.py (core) Fix bug with "maximum recursion depth exceeded" in imports. 2021-08-20 17:44:48 -04:00
import_csv.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
import_json.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
import_utils.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
import_xls.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
register.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
test_dateguess.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
test_import_csv.py (core) Fix bug with "maximum recursion depth exceeded" in imports. 2021-08-20 17:44:48 -04:00
test_import_json.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
test_import_xls.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
test_messytables.py (core) Simple Python 3 compatibility changes 2021-06-22 17:13:17 +02:00