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

feat(short-text):add new field type #18

Merged
merged 4 commits into from
Nov 26, 2019

Conversation

arszh
Copy link
Contributor

@arszh arszh commented Nov 25, 2019

Description

Added short-text type of question. It is open-ended question.

Updated fetchFormResponses and added this type in whitelist in form.js
added short-text in adapters
updated snapshot to this update

Fixed formResponsesResult.json before adding short-text because there was inaccuracy and it made conflict with short-text in testing. Question 4 doesn't has 'option 1' and 'option 2 in list allowed answers and can't has other choice other than expected.

Also update Readme. Moved short_text from unsupported to supported.

It works with typeform-export-excel

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Related Issue

#8

Motivation and Context

Extends the number of types of questions

How Has This Been Tested?

Data from typeform and snapshot

Screenshots (if appropriate):

Checklist:

  • I have updated the documentation (if required).
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I added a picture of a cute animal cause it's fun

there aren't 'option 1' and 'option 2 in list allowed answers and question 4 can't allowed other choice
remove conditional construct from fetchformresponses(form.js) because when script get correct json it doesn't go there
short-text is open-ended question

update fetchformresponses and add this type in whitelist in form.js
add short-text in adapter
update tests to this update

close lirantal#8
@codecov-io
Copy link

codecov-io commented Nov 25, 2019

Codecov Report

Merging #18 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   96.42%   96.52%   +0.09%     
==========================================
  Files           6        6              
  Lines         140      144       +4     
  Branches       24       24              
==========================================
+ Hits          135      139       +4     
  Misses          5        5
Impacted Files Coverage Δ
src/Form/Adapters/formFieldsAdapters.js 100% <100%> (ø) ⬆️
src/Form/Adapters/formResponsesAnswersAdapters.js 100% <100%> (ø) ⬆️
src/Form/Form.js 93.24% <100%> (-0.1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02853c5...5f4cde3. Read the comment docs.

@lirantal lirantal self-requested a review November 26, 2019 21:03
@lirantal lirantal added the enhancement New feature or request label Nov 26, 2019
@lirantal
Copy link
Owner

awesome work @arszh ❤️✨

@lirantal lirantal merged commit 628b7fd into lirantal:master Nov 26, 2019
@lirantal
Copy link
Owner

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants