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

Fix cached promised values not resolving properly in some platforms. #874 #878 #887 #893

Merged
merged 8 commits into from
Apr 3, 2017

Conversation

jung-kim
Copy link
Collaborator

@jung-kim jung-kim commented Mar 30, 2017

if (prom.then) {
return prom.then(getHardValue);
} else {
return Bluebird.resolve(prom);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Strange... normally .resolve should already do this:

If value is a thenable (Promise-like object, like those returned by jQuery's $.ajax), returns a trusted Promise that assimilates the state of the thenable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah this is a terrifying find and i need more confirmation but behavior was replicate-able in ubuntu.

Copy link
Contributor

@dregad dregad left a comment

Choose a reason for hiding this comment

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

add readme for #887

Also update commit message to reference #892

README.md Outdated
@@ -99,6 +99,7 @@ Known issues
* If you're running MacOSX Mavericks and Ungit crashes after a few seconds; try updating npm and node. See [#259](https://github.com/FredrikNoren/ungit/issues/259) and [#249](https://github.com/FredrikNoren/ungit/issues/249) for details.
* Ubuntu users may have trouble installing because the node executable is named differently on Ubuntu, see [#401](https://github.com/FredrikNoren/ungit/issues/401) for details.
* Debian Wheezy's supported git and nodejs packages are too old, therefore download newest [git](https://github.com/git/git/releases) and [nodejs](https://nodejs.org/download/) tarballs and [build from source](http://www.control-escape.com/linux/lx-swinstall-tar.html).
* Adblocker may block Ungit! Some ad blockers, such as uBlock, doesn't like localhost api calls and assumes that it is a cross domain attack. Please whitelist `localhost:{ungit port number}`. [#887](https://github.com/FredrikNoren/ungit/issues/887)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested changes:

  • rewording:Some ad blockers, such as [Adblock plus](https://adblockplus.org) and [uBlock](https://www.ublock.org/), don't like localhost api calls and assume that [...]
  • add reference to [#892](https://github.com/FredrikNoren/ungit/issues/892)

Also, note that the host name it is not necessarily localhost (in my case, running ungit on Cloud9 workspace, I have a workspace-name.c9users.io hostname), so your hint could be misleading.

README.md Outdated
@@ -99,6 +99,7 @@ Known issues
* If you're running MacOSX Mavericks and Ungit crashes after a few seconds; try updating npm and node. See [#259](https://github.com/FredrikNoren/ungit/issues/259) and [#249](https://github.com/FredrikNoren/ungit/issues/249) for details.
* Ubuntu users may have trouble installing because the node executable is named differently on Ubuntu, see [#401](https://github.com/FredrikNoren/ungit/issues/401) for details.
* Debian Wheezy's supported git and nodejs packages are too old, therefore download newest [git](https://github.com/git/git/releases) and [nodejs](https://nodejs.org/download/) tarballs and [build from source](http://www.control-escape.com/linux/lx-swinstall-tar.html).
* Adblocker may block Ungit! Some ad blockers, such as [Adblock plus](https://adblockplus.org) and [uBlock](https://www.ublock.org/), doesn't like localhost api calls and assumes that it is a cross domain attack. Please whitelist `{localhost|127.0.0.1|$UngitURL}:{ungit port number}`. [#887](https://github.com/FredrikNoren/ungit/issues/887) [#892](https://github.com/FredrikNoren/ungit/issues/892)
Copy link
Contributor

@dregad dregad Mar 31, 2017

Choose a reason for hiding this comment

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

@codingtwinky thanks for updating the README. If I may pick nits, you missed one little bit doesn't --> don't + remove the s in assumes.

CHANGELOG.md Outdated
@@ -7,6 +7,9 @@ Use the following format for additions: ` - VERSION: [feature/patch (if applicab
- Fix cli arguments [#871](https://github.com/FredrikNoren/ungit/pull/871)
- Stop if ~/.ungitrc contains syntax error
- Removed official support ini format of ~/.ungitrc, because internal API supports only JSON
- Retain commit messages when commit fails [#882](https://github.com/FredrikNoren/ungit/pull/882)
Copy link
Owner

Choose a reason for hiding this comment

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

1.1.11 is already out right? Think you ment to cut a new version here

@jung-kim jung-kim merged commit 35da6de into FredrikNoren:master Apr 3, 2017
@jung-kim jung-kim deleted the 874 branch April 3, 2017 06:27
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.

Commit message lost when git returns error code
4 participants