Skip to content

Conversation

antoinerousseau
Copy link
Contributor

@antoinerousseau antoinerousseau commented Jun 7, 2016

This PR updates #6851 from @srikanthkh, fixing coding conventions and javadoc, and adding a test plan.

Test plan

Added testing functions into the WebSocketExample page of the UIExplorer, including a tiny http server to set a cookie on demand. Just open the app page and read the instructions :)

@ghost
Copy link

ghost commented Jun 7, 2016

By analyzing the blame information on this pull request, we identified @AndrewJack and @philikon to be potential reviewers.

@ghost ghost added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jun 7, 2016
@ghost
Copy link

ghost commented Jun 7, 2016

@antoinerousseau updated the pull request.

@antoinerousseau
Copy link
Contributor Author

antoinerousseau commented Jun 7, 2016

Also, I am not sure if I should squash since there are two different authors. Let me know.

@ghost
Copy link

ghost commented Jun 7, 2016

@antoinerousseau updated the pull request.

@zxcpoiu
Copy link
Contributor

zxcpoiu commented Jun 8, 2016

Wow, nice.
About test plan, I think you can refers to dcd922b
#6889 and #6961 created by @philikon

He provides WebSocket UIExample, so you may just add a function like sendWithCookies() as a test case

@zxcpoiu
Copy link
Contributor

zxcpoiu commented Jun 8, 2016

About rebase,
You can squash all merge commits into the main one along with authors.
So you would have 3 commits finally.

  1. Original author's commit
  2. Your coding style fixing
  3. Test case function

autoCorrect={false}
placeholder="HTTP URL..."
onChangeText={(httpUrl) => this.setState({httpUrl})}
value={this.state.httpUrl}

Choose a reason for hiding this comment

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

property httpUrl Property not found in object type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

resolved

@antoinerousseau
Copy link
Contributor Author

@zxcpoiu should be all good now, tested OK :)

@zxcpoiu
Copy link
Contributor

zxcpoiu commented Jun 9, 2016

Great job 👍
LGTM
Now we may wait for others to review and see if it enough to pass.

remember to squash merging commit finally.

@antoinerousseau
Copy link
Contributor Author

the merge commits are squashed. i guess i'll have to merge again and squash again just before the PR gets shipped?

@zxcpoiu
Copy link
Contributor

zxcpoiu commented Jun 10, 2016

Why I'm still seeing additional merge commit (Merge branch 'master' into android-websocket-cookie) ?

I'm not 100% sure, but as my understanding, it should be have three commits finally in this case. (I have the same confuse before 😕 )

And of course you may be asked to update your PR and rebase again.

Just follow the instructions once reviewers told you.

cc @mkonicek

@antoinerousseau
Copy link
Contributor Author

antoinerousseau commented Jun 10, 2016

@zxcpoiu I'm asking because I'm usually used to rebase my PR instead of merging master into it (for cleaner git history), but I've seen other PRs doing it, and I see an automatic Github button saying Update branch that merges the latest changes from master into this branch. ⬇️

CONTRIBUTING.md doesn't say anything about this...

@zxcpoiu
Copy link
Contributor

zxcpoiu commented Jun 10, 2016

I have exactly same confusion like you.

I did a little bit observe before, looking at some PR which being accepted, found out that some PR get shipped without rebased on top of the latest master commits (it's really hard to always follows the latest commits in such a highly active repo.)

That's why I am assuming that it is not necessary to rebase on top of the latest unless there are explicit reasons or conflicts need us to do so.

I guess the principle behind it are simply to keep the commit history clean, mean that each commit corresponds to one intent, one functionality or one fix rather than several commits map to one action. It makes PR easier to review by others.

Hmm, it needs someone who are familiar with that to clarify it a bit then we can help to improve instructions at Contributing.md

@satya164
Copy link
Contributor

It doesn't matter how you merge master to your branch. The bot ultimately squashes all commits to a single one before merging.

@zxcpoiu
Copy link
Contributor

zxcpoiu commented Jun 12, 2016

Thank you @satya164
So

Squash your commits (git rebase -i).

is basically to provide a clear code commits for people to review, right?

And it is not necessary to keep click Merge master to your branch unless there are conflicts or be asked to do so.

is that correct?

@satya164
Copy link
Contributor

@zxcpoiu Yes. You would want to merge master if there are conflicts or tests are failing.

@antoinerousseau
Copy link
Contributor Author

these explanations should be added to CONTRIBUTING.md

@antoinerousseau
Copy link
Contributor Author

antoinerousseau commented Jun 12, 2016

I don't understand the failed CircleCI tests... any clue?

It says npm test failed, but each test failed for the same reason:

TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.dirname (path.js:1324:5)

@mkonicek
Copy link
Contributor

@antoinerousseau The CirleCI failure looks unrelated. I restarted the build.

@antoinerousseau
Copy link
Contributor Author

antoinerousseau commented Jun 20, 2016

@mkonicek it keeps failing :/

@antoinerousseau
Copy link
Contributor Author

Could anyone please review this? 😳 😇 :octocat:

@antoinerousseau
Copy link
Contributor Author

why does CircleCI keeps failing? O.o

@zxcpoiu
Copy link
Contributor

zxcpoiu commented Jul 3, 2016

I'm not sure :{
maybe do a rebase and force push again?

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 12, 2016
@antoinerousseau
Copy link
Contributor Author

It's sad that this PR got ignored 😢

@antoinerousseau
Copy link
Contributor Author

antoinerousseau commented Jul 30, 2016

Fyi I reopened a clean PR: #9114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants