Skip to content

Breaking: Ignore StatusBarManager rejected state #10421

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

Closed
wants to merge 2 commits into from

Conversation

leeight
Copy link
Contributor

@leeight leeight commented Oct 17, 2016

See #10236

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot 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 Oct 17, 2016
@janicduplessis
Copy link
Contributor

Thinking about this more (sorry), we should just get rid of the promise. iOS doesn't have that and it's only used to report the error back to JS, but then we won't event use it.

We could just log it instead in native and do nothing with something like:

FLog.w(ReactConstants.TAG, "StatusBarModule: Ignored status bar change, current activity is null.");

@leeight
Copy link
Contributor Author

leeight commented Oct 17, 2016

@janicduplessis You mean change the method signature and remove final Promise res, so that make it consistent with iOS?

public void setHidden(final boolean hidden, final Promise res) { --> public void setHidden(final boolean hidden) {

@facebook-github-bot facebook-github-bot 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 Oct 17, 2016
@facebook-github-bot
Copy link
Contributor

@leeight updated the pull request - view changes

@facebook-github-bot facebook-github-bot 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 Oct 17, 2016
@janicduplessis
Copy link
Contributor

Yes, it's a breaking change but I doubt anyone was using the promise.

@janicduplessis
Copy link
Contributor

LGTM, let's wait a bit see if someone has something to add. If not I'll shipit.

@leeight
Copy link
Contributor Author

leeight commented Oct 19, 2016

@janicduplessis Could you shipit?

@janicduplessis
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot facebook-github-bot added GH Review: accepted Import Started This pull request has been imported. This does not imply the PR has been approved. and removed GH Review: review-needed labels Oct 19, 2016
@satya164
Copy link
Contributor

Just a reminder, if anyone is merging any breaking change, please change the commit message to include breaking so we can find it when writing the release notes.

@facebook-github-bot
Copy link
Contributor

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

@facebook-github-bot facebook-github-bot added Import Failed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. and removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Oct 20, 2016
@facebook-github-bot
Copy link
Contributor

@leeight updated the pull request - view changes - changes since last import

@leeight
Copy link
Contributor Author

leeight commented Oct 21, 2016

@janicduplessis Is there anything else i can do to fix the merge failed issue?

@janicduplessis janicduplessis changed the title Ignore StatusBarManager rejected state Breaking: Ignore StatusBarManager rejected state Oct 21, 2016
@janicduplessis
Copy link
Contributor

@leeight Not sure why it failed lets just try it again

@facebook-github-bot shipit

@facebook-github-bot facebook-github-bot added Import Started This pull request has been imported. This does not imply the PR has been approved. CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Oct 21, 2016
@facebook-github-bot
Copy link
Contributor

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. and removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Oct 21, 2016
@leeight
Copy link
Contributor Author

leeight commented Oct 22, 2016

@janicduplessis I guess some FB internal test cases failed, maybe we shouldn't change the method signature. Could you help me check the internal logs? Or we should ignore rejected state in StatusBar.js but keep StatusBarModule.java the same.

@janicduplessis
Copy link
Contributor

@foghina Could you have a look at why internal tests are failing?

@facebook-github-bot facebook-github-bot 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 Oct 23, 2016
@gotounix
Copy link

When this commit will be merged into master, and when will be merged into a release version?

@leeight
Copy link
Contributor Author

leeight commented Oct 31, 2016

@janicduplessis How about try it in another way? Fix it in the JS side, and don't change the java method signature?

@satya164
Copy link
Contributor

cc @bestander

@bestander
Copy link
Contributor

@facebook-github-bot import

@bestander
Copy link
Contributor

Hm. of course, look at the Circle CI log:

/home/ubuntu/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java:23: error: package com.facebook.common.logging does not exist
import com.facebook.common.logging.FLog;

@bestander
Copy link
Contributor

You need to change Buck file

@janicduplessis
Copy link
Contributor

Ugh, how did I miss that -_- thanks @bestander !

@leeight
Copy link
Contributor Author

leeight commented Nov 1, 2016

Thanks @bestander, DONE.

@leeight
Copy link
Contributor Author

leeight commented Nov 4, 2016

PING

@bestander
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Nov 4, 2016
DanielMSchmidt pushed a commit to DanielMSchmidt/react-native that referenced this pull request Jan 4, 2017
Summary:
See facebook#10236
Closes facebook#10421

Differential Revision: D4045455

fbshipit-source-id: a4fd969b1ade5e1a44715c6aeebb12b58bbf8d0c
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. Import Started This pull request has been imported. This does not imply the PR has been approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants