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

Undo channel stubbing - causes NPM version errors to fail silently #1494

Merged
merged 5 commits into from
Jul 22, 2017

Conversation

shilman
Copy link
Member

@shilman shilman commented Jul 19, 2017

Issue: #1486

What I did

Undo bad changes in PR

How to test

CI tests

(Or force a messed up NPM version error... has bitten many of us, but not sure the best way to repro)

@shilman
Copy link
Member Author

shilman commented Jul 19, 2017

Got @ndelangen 's approval over slack 🍷

@shilman shilman requested a review from tmeasday July 19, 2017 23:45
@tmeasday
Copy link
Member

tmeasday commented Jul 20, 2017

Perhaps we should replace it with functions that throw useful errors to help people debug?

function debugChannelError() {
  throw new Error('Tried to access non-existant addons channel, see #1234 for details');
}

this.channel = { on: debugChannelError, emit: debugChannelError }

@codecov
Copy link

codecov bot commented Jul 20, 2017

Codecov Report

Merging #1494 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1494      +/-   ##
=========================================
- Coverage   14.61%   14.6%   -0.01%     
=========================================
  Files         202     202              
  Lines        4653    4655       +2     
  Branches      505     509       +4     
=========================================
  Hits          680     680              
+ Misses       3545    3535      -10     
- Partials      428     440      +12
Impacted Files Coverage Δ
lib/addons/src/index.js 0% <0%> (ø) ⬆️
...rc/modules/ui/components/left_panel/text_filter.js 33.33% <0%> (ø) ⬆️
...react-native/src/manager/components/PreviewHelp.js 0% <0%> (ø) ⬆️
lib/ui/src/libs/key_events.js 23.25% <0%> (ø) ⬆️
lib/ui/src/modules/ui/configs/init_panels.js 25% <0%> (ø) ⬆️
...codemod/src/transforms/update-organisation-name.js 40.62% <0%> (ø) ⬆️
.../src/manager/containers/CommentsPanel/dataStore.js 34.78% <0%> (ø) ⬆️
app/react/src/server/build.js 0% <0%> (ø) ⬆️
app/react/src/server/babel_config.js 44.82% <0%> (ø) ⬆️
addons/info/src/components/markdown/code.js 0% <0%> (ø) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48e1155...ee0e3cb. Read the comment docs.

@shilman
Copy link
Member Author

shilman commented Jul 20, 2017

@tmeasday updated per your suggestion

@@ -1,8 +1,14 @@
function channelError() {
throw new Error('Tried to access non-existant addons channel, see issues #815 / #1374');
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem right: #1374 ?

Maybe we should make a FAQ entry? This doesn't seem like an issue that is going to go away :/

@ndelangen
Copy link
Member

Is this mergable @tmeasday ?

@tmeasday
Copy link
Member

LGTM!

@shilman shilman merged commit d63af0d into master Jul 22, 2017
@Hypnosphi Hypnosphi deleted the 1486-undo-channel-stubbing branch August 17, 2017 22:28
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.

None yet

3 participants