Bug 1539230 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The `Validation` HOC was created for use with the compare and compare subtest views but can replace duplicated statefulness in the compare subtest distribution and possibly the compare chooser views. It fetches repositories and frameworks, validates query parameters which are all passes as props `this.props.validated` to the wrapped component and handles its own errors pertaining to the above mentioned.

It lives here: https://github.com/mozilla/treeherder/blob/master/ui/perfherder/compare/Validation.jsx
The `Validation` HOC was created for use with the compare and compare subtest views but can replace duplicated statefulness in the compare subtest distribution and possibly the compare chooser views. It fetches repositories and frameworks, validates query parameters which are all passed as props as `this.props.validated` to the wrapped component and handles its own errors pertaining to the above mentioned.

It lives here: https://github.com/mozilla/treeherder/blob/master/ui/perfherder/compare/Validation.jsx
The `Validation` HOC was created for use with the compare and compare subtest views but can replace duplicated stateful logic in the compare subtest distribution and possibly the compare chooser views. It fetches repositories and frameworks, validates query parameters which are all passed as props as `this.props.validated` to the wrapped component and handles its own errors pertaining to the above mentioned.

It lives here: https://github.com/mozilla/treeherder/blob/master/ui/perfherder/compare/Validation.jsx

Back to Bug 1539230 Comment 0