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

eliminate React warnings re: api deprecation and increase test coverage #234

Merged
merged 3 commits into from
Jun 24, 2015

Conversation

dotMR
Copy link
Contributor

@dotMR dotMR commented Jun 8, 2015

Hi,
When I was checking out your app I noticed some warnings in the console and here is a patch to fix them. Do let me know if there is a better option than targeting this branch - I don't know the codebase well so I wanted to include test coverage to validate that my changes weren't breaking anything, and the best place to accomplish that at the moment was in this branch (as I wasn't able to run tests effectively in master).

Commit Message
  • removed usage of 'transferPropsTo'
  • changed React.PropTypes.renderable -> React.PropTypes.node
  • removed unused property 'patientsComponent'
  • added test coverage for the changes

Issue: #228

dotMR added 2 commits June 8, 2015 21:00
- removed usage of 'transferPropsTo'
- changed React.PropTypes.component -> React.PropTypes.element
- changed React.PropTypes.renderable -> React.PropTypes.node
- removed unused property 'patientsComponent'
- added test coverage for the changes

Issue: tidepool-org#228
@jebeck
Copy link
Contributor

jebeck commented Jun 8, 2015

Before we can look at this, we need you to agree to our Volunteer/Contributer License Agreement, discussed here and available here. Please follow the instructions from the latter to add the appropriate comment to this pull request if you agree to the terms in the agreement. Thanks!

@dotMR
Copy link
Contributor Author

dotMR commented Jun 9, 2015

Thanks. I did see the contributor guidelines and included my agreement disclaimer in the pull request body above, but I'm happy to move it to a separate comment if that is the official place for it.

@dotMR
Copy link
Contributor Author

dotMR commented Jun 9, 2015

I agree to the terms of Tidepool Project’s Volunteer/Contributor License Agreement v1.0
as it exists at http://tidepool-org.github.io/TidepoolVCLA.pdf on Jun 8, 2015.

@jebeck
Copy link
Contributor

jebeck commented Jun 9, 2015

Weirdly, I can't see the VCLA agreement in the body of the PR here on GitHub, only in my e-mail?? Did you edit it? In any case, thanks for the agreement by way of comment.

Will be reviewing this likely later this week. Currently have other priorities and need to wait for some recent changes on master to go through QA. After that will be trying to pull in new-testing branch hopefully along with this. Will let you know if I have any questions/comments.

Thanks again!

@dotMR
Copy link
Contributor Author

dotMR commented Jun 9, 2015

No black magic going on, I updated the PR body to remove the disclaimer and added as a comment instead :)

Thanks for the update - no rush on my end.

@jebeck jebeck mentioned this pull request Jun 12, 2015
@@ -22,7 +22,6 @@ var personUtils = require('../../core/personutils');
var Invitation = React.createClass({
propTypes: {
invitation: React.PropTypes.object,
patientsComponent: React.PropTypes.component,
Copy link
Contributor

Choose a reason for hiding this comment

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

So I guess it looks like we're just not actually using this in the Invitation component. Can we remove where this prop is passed in too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, of course. I had intended to do that. Good catch!

- replaced manual prop transfer with JSX spread in Patient
- required theNote prop on Message, added test case
- removed passing of unused patientsComponent prop to Invitation
@jebeck
Copy link
Contributor

jebeck commented Jun 24, 2015

Thanks again for this! Merging :)

jebeck added a commit that referenced this pull request Jun 24, 2015
eliminate React warnings re: api deprecation and increase test coverage
@jebeck jebeck merged commit 0dd5cac into tidepool-org:new-testing Jun 24, 2015
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.

2 participants