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

Fabo/1573 sent errors via raven #1624

Merged
merged 6 commits into from
Nov 22, 2018
Merged

Conversation

faboweb
Copy link
Collaborator

@faboweb faboweb commented Nov 22, 2018

Closes #1573

Description:

❤️ Thank you!


  • Added entries in CHANGELOG.md with issue # and GitHub username
  • Reviewed Files changed in the github PR explorer

@faboweb faboweb requested a review from nylira as a code owner November 22, 2018 11:43
@codecov
Copy link

codecov bot commented Nov 22, 2018

Codecov Report

Merging #1624 into develop will increase coverage by 0.11%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1624      +/-   ##
===========================================
+ Coverage    97.56%   97.68%   +0.11%     
===========================================
  Files          100      100              
  Lines         2012     2029      +17     
  Branches        93       93              
===========================================
+ Hits          1963     1982      +19     
+ Misses          39       37       -2     
  Partials        10       10
Impacted Files Coverage Δ
app/src/renderer/vuex/modules/send.js 100% <ø> (ø) ⬆️
app/src/renderer/vuex/modules/filters.js 100% <ø> (ø) ⬆️
app/src/renderer/vuex/modules/delegates.js 100% <100%> (ø) ⬆️
...p/src/renderer/vuex/modules/governance/deposits.js 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/transactions.js 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/connection.js 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/user.js 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/parameters.js 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/governance/votes.js 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/keybase.js 100% <100%> (ø) ⬆️
... and 8 more

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

change err -> error on modified files

@faboweb
Copy link
Collaborator Author

faboweb commented Nov 22, 2018

done @fedekunze

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

still missing a few

@@ -30,6 +32,7 @@ export default ({ node }) => {
title: `Error fetching governance parameters`,
body: err.message
})
Raven.captureException(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@@ -39,6 +39,7 @@ export default ({ node }) => {
title: `Error fetching proposals`,
body: err.message
})
Raven.captureException(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@@ -24,6 +24,7 @@ export default ({ node }) => {
title: `Error fetching votes`,
body: err.message
})
Raven.captureException(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@@ -57,6 +58,7 @@ export default ({}) => {
title: `Error fetching keybase information for validators`,
body: err.message
})
Raven.captureException(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@@ -23,6 +25,7 @@ export default ({ node }) => {
title: `Error fetching staking parameters`,
body: err.message
})
Raven.captureException(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

error

try {
let keys = await node.keys.values()
commit(`setAccounts`, keys)
} catch (err) {
Raven.captureException(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@@ -61,15 +60,20 @@ export default ({ node }) => {
dl: `/session/` + screen
})
},
async loadAccounts({ commit }) {
async loadAccounts({ commit, state }) {
state.loading = true
try {
let keys = await node.keys.values()
commit(`setAccounts`, keys)
} catch (err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@@ -132,7 +142,9 @@ export default ({ node }) => {

function onTx(err, event) {
if (err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@@ -116,25 +117,16 @@ describe(`Module: Transactions`, () => {
expect(node.txs).not.toHaveBeenCalled()
})

it(`should set error to true if dispatches fail`, () => {
it(`should set error to true if enriching transactions fail`, async () => {
let err = new Error(`unexpected error`)
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@@ -65,6 +67,7 @@ export default ({ node }) => {
title: `Error fetching block information`,
body: err.message
})
Raven.captureException(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

error

@faboweb
Copy link
Collaborator Author

faboweb commented Nov 22, 2018

boy, I don't want to refactor the whole repo in this PR ;P We use err everywhere.

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

LGTM

@fedekunze fedekunze merged commit 3ee63cc into develop Nov 22, 2018
@fedekunze fedekunze deleted the fabo/1573-sent-errors-via-raven branch November 22, 2018 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants