-
Notifications
You must be signed in to change notification settings - Fork 172
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
DKAN-4291 add mysql empty row removal option #4292
Conversation
5e7ec8f
to
01f1300
Compare
modules/datastore/modules/datastore_mysql_import/src/Service/MysqlImport.php
Outdated
Show resolved
Hide resolved
modules/datastore/modules/datastore_mysql_import/src/Service/MysqlImport.php
Outdated
Show resolved
Hide resolved
Thanks for working on this @swirtSJW please include tests for the new code. |
@swirtSJW check out the tests |
99f0f61
to
6e4757f
Compare
modules/datastore/modules/datastore_mysql_import/tests/data/multiple_empty_rows.csv
Outdated
Show resolved
Hide resolved
8e9b6a1
to
a501f86
Compare
a501f86
to
c7fc297
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor tweaks please
@@ -7,6 +7,6 @@ To use, simply enable _datastore_mysql_import_ and clear your cache. | |||
|
|||
## Differences in behavior with the default DKAN importer. | |||
|
|||
* Any "blank" rows in your data file, including carriage returns, will be imported into the datastore as empty rows. The default importer will ignore these rows. | |||
* Any "blank" rows in your data file, including carriage returns, will be imported into the datastore as empty rows. The default importer ignores any blank rows. To have the Mysql Importer behave the same as default importer and ignore empty rows, enable the option on this page /admin/dkan/datastore/mysql_import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a "the" before default importer in the second sentence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected.
mapping: | ||
remove_empty_rows: | ||
type: boolean | ||
label: 'Remove empty rows in dataset' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More accurate to say 'Remove empty rows from the datastore table'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -0,0 +1,6 @@ | |||
datastore_mysql_import.settings_form: | |||
title: MySQl Import settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MySQL with capital L
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested changes made.
Fixes #4291
Describe your changes
QA Steps
ddev dkan-phpunit --group datastore_mysql_import
Checklist before requesting review
If any of these are left unchecked, please provide an explanation