General CSV importer (reloaded) #92

Merged
hansegucker merged 82 commits from feature/general-csv-importer-v2 into master 2020-11-08 17:26:22 +01:00
Owner

Close #12

Close #11

Close #12 Close #11
Author
Owner

added 1 commit

  • d53454e3 - Update copyright and project URL

Compare with previous version

added 1 commit <ul><li>d53454e3 - Update copyright and project URL</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3618&start_sha=3b7fd530866cd339fab1de504a223de640d5f142)
Owner

This naming will break things. Use another module name (or none at all — it should really be either a data migration (preferrably) or a method on the respective model. In both cases, the ideal way is to define the templates in data files and load these.

This naming will break things. Use another module name (or none at all — it should really be either a data migration (preferrably) or a method on the respective model. In both cases, the ideal way is to define the templates in data files and load these.
Owner

Why are there choices forthis instead of a text field?

Also, why is there an option for a single tab, but not for a single space, or a single whitespace character, or multiple tabs, or multiple spaces ;)?

Why are there choices forthis instead of a text field? Also, why is there an option for a single tab, but not for a single space, or a single whitespace character, or multiple tabs, or multiple spaces ;)?
Owner
        default=True, verbose_name=_("Has the CSV file an own header row?")
```suggestion:-0+0 default=True, verbose_name=_("Has the CSV file an own header row?") ```
Owner

Choices constants should reside inside the model class, by the way.

Choices constants should reside inside the model class, by the way.
Owner

What is a "department group"?

What is a "department group"?
Owner

Maybe this should be a MultipleChoicePreference then?

Maybe this should be a `MultipleChoicePreference` then?
Owner

Huh?

Huh?
Owner

It seems like this is one of the rare occasions where the use of an asterisk import (and accompanying __all__ magic constant in .field_types is appropriate.

It seems like this is one of the rare occasions where the use of an asterisk import (and accompanying `__all__` magic constant in `.field_types` is appropriate.
Owner

As stated above, the default templates should not reside in the code.

I will take care of a DDL for that.

As stated above, the default templates should not reside in the code. I will take care of a DDL for that.
Owner

Please add test cases for American date formats (i.e. the case where '2020-12-11' != '2020-12-12'). It should test with changing language settings.

Please add test cases for American date formats (i.e. the case where `'2020-12-11' != '2020-12-12'`). It should test with changing language settings.
Owner

We should not have "Pedasos helpers" anymore after this transition.

We should not have "Pedasos helpers" anymore after this transition.
Owner

Please merge the migrations.

Please merge the migrations.
Author
Owner

added 1 commit

  • 36554fb0 - Improve preferences and settings by choices and extra values

Compare with previous version

added 1 commit <ul><li>36554fb0 - Improve preferences and settings by choices and extra values</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3625&start_sha=d53454e3e7f3536115f1f5961f37d981795821f9)
Author
Owner

changed this line in version 4 of the diff

changed this line in [version 4 of the diff](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3626&start_sha=36554fb0f5f6ecb92c4f81fe6af5faabac4a784a#28efd6e53b5d3111abe7bd20c76fe5ff341582e3_26_26)
Author
Owner

changed this line in version 4 of the diff

changed this line in [version 4 of the diff](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3626&start_sha=36554fb0f5f6ecb92c4f81fe6af5faabac4a784a#ffcc96a6a1027d894ecbdf7a1b40816c1cfbb674_39_39)
Author
Owner

changed this line in version 4 of the diff

changed this line in [version 4 of the diff](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3626&start_sha=36554fb0f5f6ecb92c4f81fe6af5faabac4a784a#4fbeb1e0f02b7e3e1437c4fbe36f48ce4bf9b07c_26_0)
Author
Owner

changed this line in version 4 of the diff

changed this line in [version 4 of the diff](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3626&start_sha=36554fb0f5f6ecb92c4f81fe6af5faabac4a784a#4fbeb1e0f02b7e3e1437c4fbe36f48ce4bf9b07c_54_0)
Author
Owner

added 1 commit

  • b3cfb41b - Rename templates to default_templates.py and fix typo

Compare with previous version

added 1 commit <ul><li>b3cfb41b - Rename templates to default_templates.py and fix typo</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3626&start_sha=36554fb0f5f6ecb92c4f81fe6af5faabac4a784a)
Author
Owner

As the count of languages is very large, it slows down the UI massively, so I decided not to use a choice field.

As the count of languages is very large, it slows down the UI massively, so I decided not to use a choice field.
Author
Owner

added 1 commit

  • a2660c09 - Use asterisk import in default_templates.py

Compare with previous version

added 1 commit <ul><li>a2660c09 - Use asterisk import in default_templates.py</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3628&start_sha=b3cfb41b8a7df428c2c7d7767af479347f8d9011)
Author
Owner

added 1 commit

  • 7a19acc6 - Remove all occurences of Pedasos

Compare with previous version

added 1 commit <ul><li>7a19acc6 - Remove all occurences of Pedasos</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3629&start_sha=a2660c09a8e8012bb8e38c45193abc98ed6a9af3)
Author
Owner

changed this line in version 7 of the diff

changed this line in [version 7 of the diff](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3630&start_sha=7a19acc6f5774a22ebe476aa5938e398b51d3763#ffcc96a6a1027d894ecbdf7a1b40816c1cfbb674_15_12)
Author
Owner

changed this line in version 7 of the diff

changed this line in [version 7 of the diff](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3630&start_sha=7a19acc6f5774a22ebe476aa5938e398b51d3763#ffcc96a6a1027d894ecbdf7a1b40816c1cfbb674_43_38)
Author
Owner

added 1 commit

  • 1b310a3f - Let users set own separators (independent of choices)

Compare with previous version

added 1 commit <ul><li>1b310a3f - Let users set own separators (independent of choices)</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3630&start_sha=7a19acc6f5774a22ebe476aa5938e398b51d3763)
Owner

added 2 commits

  • 84327d68 - Move default templates to data file
  • 226afe8c - Merge branch 'feature/general-csv-importer-v2' of...

Compare with previous version

added 2 commits <ul><li>84327d68 - Move default templates to data file</li><li>226afe8c - Merge branch &#39;feature/general-csv-importer-v2&#39; of...</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3631&start_sha=1b310a3f9303b8700e5d9f3cef77410c6d044b8c)
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>67d2865d - Update copyright</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3632&start_sha=226afe8c65e0550e0faf8c2ed87dbd90a20816c7)
Author
Owner

resolved all threads

resolved all threads
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>663a0dcc - Rename template</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3633&start_sha=67d2865dbed7a2741450885cbcc043dc0f652eea)
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>334e9306 - Fix use of os</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3634&start_sha=663a0dcce54d57c1e1fa1c33e014f891ada2f7be)
Author
Owner

changed this line in version 12 of the diff

changed this line in [version 12 of the diff](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3635&start_sha=334e93063fcfa04da6238bfad8eaf87afed49af3#78b44eae98b14155fe83a7f3fea829a828185011_3_0)
Author
Owner

added 3 commits

  • 1d9de49a - Advance and fix tests
  • c66daf25 - Reformat
  • db222948 - Merge remote-tracking branch 'origin/feature/general-csv-importer-v2' into...

Compare with previous version

added 3 commits <ul><li>1d9de49a - Advance and fix tests</li><li>c66daf25 - Reformat</li><li>db222948 - Merge remote-tracking branch &#39;origin/feature/general-csv-importer-v2&#39; into...</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3635&start_sha=334e93063fcfa04da6238bfad8eaf87afed49af3)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>80e9d7ee - Fix some typos and reformat</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3637&start_sha=db222948d57a86bec90627d90e57d9480727e5de)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>dfcaceba - Merge migrations</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-CSVImport/-/merge_requests/17/diffs?diff_id=3639&start_sha=80e9d7ee101555579e38b68aa7ecf3fbcfdb5c2c)
nik scheduled this pull request to auto merge when all checks succeed 2020-11-08 17:17:49 +01:00
nik canceled auto merging this pull request when all checks succeed 2020-11-08 17:26:10 +01:00
Owner

mentioned in commit 16c1e14e66

mentioned in commit 16c1e14e663232f099730ecb7825f4bcb032b8ab
nik merged commit 16c1e14e66 into master 2020-11-08 17:26:22 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-CSVImport!92
No description provided.