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

fix(data-loader): ignore unsupported fields from CSV export #954

Merged
merged 4 commits into from
Jun 29, 2021

Conversation

tasshi-me
Copy link
Member

@tasshi-me tasshi-me commented Jun 15, 2021

Why

Because exported CSV contains unsupported fields as blank value.

What

  • ignore unsupported fields from CSV export
  • add tests

How to test

$ yarn build
$ yarn test

Checklist

  • Read CONTRIBUTING.md
  • Updated documentation if it is required.
  • Added tests if it is required.
  • Passed yarn lint and yarn test on the root directory.

@tasshi-me tasshi-me added the pkg: data-loader @kintone/data-loader label Jun 15, 2021
@tasshi-me tasshi-me self-assigned this Jun 15, 2021
@tasshi-me tasshi-me force-pushed the fix/csv-export-ignore-unsupported-fields branch from 172c6e7 to ed20a89 Compare June 15, 2021 10:08
@tasshi-me tasshi-me force-pushed the fix/csv-export-ignore-unsupported-fields branch from 5ea6fbf to 19f897e Compare June 15, 2021 10:43
@tasshi-me tasshi-me force-pushed the fix/csv-export-ignore-unsupported-fields branch from 19f897e to 01467f5 Compare June 15, 2021 10:53
Comment on lines -1 to +236
"unit": "",
"unitPosition": "BEFORE"
},
"radioButton": {
"type": "RADIO_BUTTON",
"code": "radioButton",
"label": "radioButton",
"noLabel": false,
"required": true,
"options": {
"sample1": {
"label": "sample1",
"index": "0"
},
"sample2": {
"label": "sample2",
"index": "1"
}
},
"defaultValue": "sample1",
"align": "HORIZONTAL"
},
"multiLineText": {
"type": "MULTI_LINE_TEXT",
"code": "multiLineText",
"label": "multiLineText",
"noLabel": false,
"required": false,
"defaultValue": ""
},
"createdTime": {
"type": "CREATED_TIME",
"code": "createdTime",
"label": "createdTime",
"noLabel": false
},
"checkBox": {
"type": "CHECK_BOX",
"code": "checkBox",
"label": "checkBox",
"noLabel": false,
"required": false,
"options": {
"\"sample1\"": {
"label": "\"sample1\"",
"index": "0"
},
"\"sample2\"": {
"label": "\"sample2\"",
"index": "1"
}
},
"defaultValue": [],
"align": "HORIZONTAL"
},
"calc": {
"type": "CALC",
"code": "calc",
"label": "calc",
"noLabel": false,
"required": false,
"expression": "number + number",
"format": "NUMBER",
"displayScale": "",
"hideExpression": false,
"unit": "",
"unitPosition": "BEFORE"
},
"multiSelect": {
"type": "MULTI_SELECT",
"code": "multiSelect",
"label": "multiSelect",
"noLabel": false,
"required": false,
"options": {
"sample1": {
"label": "sample1",
"index": "0"
},
"tab\ttab": {
"label": "tab\ttab",
"index": "4"
},
"\"sample2\"": {
"label": "\"sample2\"",
"index": "1"
},
"sample4,sample5": {
"label": "sample4,sample5",
"index": "3"
},
"\"sample3\"": {
"label": "\"sample3\"",
"index": "2"
}
},
"defaultValue": []
}
}
}
Copy link
Member Author

@tasshi-me tasshi-me Jun 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor: change line break (CRLF -> LF)

@tasshi-me tasshi-me marked this pull request as ready for review June 15, 2021 10:57
@tasshi-me tasshi-me requested review from a team, zaki-yama and b4h0-c4t and removed request for a team June 15, 2021 10:57
@zaki-yama zaki-yama merged commit 073a977 into master Jun 29, 2021
@zaki-yama zaki-yama deleted the fix/csv-export-ignore-unsupported-fields branch June 29, 2021 01:15
tasshi-me added a commit that referenced this pull request Jul 4, 2022
* fix(data-loader): ignore unsupported fields from CSV export

* test(data-loader): add tests of ignoring unsupported fields

* test(data-loader): fix line break of fixture file CRLF -> LF

* chore(test): fix descriptions

Co-authored-by: Shingo Yamazaki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: data-loader @kintone/data-loader
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants