Faulty times#195
Conversation
adjust the display remove all histograms with wrong requested times
hettlage
left a comment
There was a problem hiding this comment.
Reviewed 21 of 21 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Eb-Zeero)
src/api/graphQL.js line 431 at r1 (raw file):
.then( response => response.data.data.statistics ).catch(() => {})
That looks dangerous to me. You should log the error.
src/api/graphQL.js line 484 at r1 (raw file):
.then( response => response.data.data.proposals ).catch(() => {})
That looks dangerous to me. You should log the error.
src/components/tables/statisticsTables/ObservingStatisticsSeeing.js line 9 at r1 (raw file):
const { numberOfProposals, timeRequested } = seeingDistribution const totalReqTime = timeRequested.lessEqual1Dot5 + timeRequested.lessEqual2 + timeRequested.lessEqual2Dot5 + timeRequested.lessEqual3 + timeRequested.moreThan3
This line might need discussion.
Eb-Zeero
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @hettlage)
src/api/graphQL.js line 431 at r1 (raw file):
Previously, hettlage wrote…
That looks dangerous to me. You should log the error.
Now logging
src/api/graphQL.js line 484 at r1 (raw file):
Previously, hettlage wrote…
That looks dangerous to me. You should log the error.
Now logging
src/components/tables/statisticsTables/ObservingStatisticsSeeing.js line 9 at r1 (raw file):
Previously, hettlage wrote…
This line might need discussion.
Fixed
give variable more meaning full names
hettlage
left a comment
There was a problem hiding this comment.
Reviewed 7 of 7 files at r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Eb-Zeero)
src/index.js line 29 at r2 (raw file):
composeWithDevTools(applyMiddleware(thunk)) ) console.log("Mode: ", process.env.NODE_ENV)
Do you need this log statement?
src/components/tables/statisticsTables/ObservingStatisticsSeeing.js line 24 at r2 (raw file):
<tbody> <tr> <td>0 ≤ Max Seeing ≤ 1.5 </td>
Some of the <= signs need to be < signs...
src/util/index.js line 478 at r2 (raw file):
export const logStacktrace = (e) => { if (process.env.NODE_ENV === "development") {
This means you wouldn't log the error to Sentry in production, I think.
hettlage
left a comment
There was a problem hiding this comment.
Reviewed 7 of 7 files at r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Eb-Zeero)
Eb-Zeero
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @hettlage)
src/index.js line 29 at r2 (raw file):
Previously, hettlage wrote…
Do you need this log statement?
removed
src/components/tables/statisticsTables/ObservingStatisticsSeeing.js line 24 at r2 (raw file):
Previously, hettlage wrote…
Some of the <= signs need to be < signs...
fixed problem somewhere
src/util/index.js line 478 at r2 (raw file):
Previously, hettlage wrote…
This means you wouldn't log the error to Sentry in production, I think.
Done.
hettlage
left a comment
There was a problem hiding this comment.
Reviewed 3 of 3 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @Eb-Zeero)
This change is