Closed Bug 1518073 Opened 5 years ago Closed 5 years ago

Prop types missing from some IFV components

Categories

(Tree Management :: Treeherder, enhancement, P1)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: sclements)

References

Details

Attachments

(1 file, 1 obsolete file)

Some upstream fixes have been landed to eslint-plugin-react, which means it now correctly spots missing prop types in cases that it didn't before.

This means it's now warning about missing prop types in a few of the components under `ui/intermittent-failures/`, such as:

error: 'graphData' is missing in props validation (react/prop-types) at ui/intermittent-failures/BugDetailsView.jsx:17:5:
  15 | const BugDetailsView = props => {
  16 |   const {
> 17 |     graphData,
     |     ^
  18 |     tableData,
  19 |     initialParamsSet,
  20 |     startday,

See:
https://travis-ci.org/mozilla/treeherder/jobs/475839006#L215
https://github.com/mozilla/treeherder/pull/4406

Sarah, I don't suppose you could push the prop type changes to the branch for that PR, so we can unblock merging it and pick up the other fixes? :-)
Flags: needinfo?(sclements)
Assignee: nobody → sclements
Status: NEW → ASSIGNED
Flags: needinfo?(sclements)
Priority: P2 → P1
Attached patch Commit 90bdf1f (obsolete) — Splinter Review
Attachment #9034884 - Attachment is obsolete: true
Attached file GitHub Pull Request

Commit #90bd1f1

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Component: Intermittent Failures View → TreeHerder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: