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

chore: Testing types for table input #699

Merged
merged 10 commits into from
Oct 2, 2020
Merged

chore: Testing types for table input #699

merged 10 commits into from
Oct 2, 2020

Conversation

Golodhros
Copy link
Member

Signed-off-by: Marcos Iglesias miglesiasvalle@lyft.com

Summary of Changes

Trying to type the table entry properly, relating the data with the columns

CheckList

Make sure you have checked all steps below to ensure a timely review.

  • PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"
  • PR includes a summary of changes, including screenshots of any UI changes.
  • PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public python functions and the classes in the PR contain docstrings that explain what it does
  • PR passes all tests documented in the developer guide

@ttannis
Copy link
Contributor

ttannis commented Sep 30, 2020

Might need some more context on this one since I'm unsure what current use cases we are trying to support/make stronger typing for.

@Golodhros
Copy link
Member Author

Might need some more context on this one since I'm unsure what current use cases we are trying to support/make stronger typing for.

Basically, I am aiming for the example on the storybook to break, so if a user passes a column which key is not on the data, it should break!

Marcos Iglesias added 4 commits September 30, 2020 21:21
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Marcos Iglesias added 2 commits September 30, 2020 21:45
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Marcos Iglesias added 3 commits September 30, 2020 22:12
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
…pec.tsx


Signed-off-by: Marcos Iglesias Valle <golodhros@gmail.com>

Co-authored-by: Gago <xeroice@gmail.com>
Copy link
Contributor

@allisonsuarez allisonsuarez left a comment

Choose a reason for hiding this comment

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

LGTM, I like that we are getting more informative errors

@Golodhros Golodhros merged commit c632102 into master Oct 2, 2020
@ttannis ttannis deleted the mi-ts-table branch October 5, 2020 17:11
@ttannis
Copy link
Contributor

ttannis commented Oct 5, 2020

Thanks for this PR, learned some helpful patterns.

dikshathakur3119 pushed a commit that referenced this pull request Oct 15, 2020
Signed-off-by: Marcos Iglesias Valle <golodhros@gmail.com>
Signed-off-by: dikshathakur3119 <dikshathakur3119@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants