Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

React 16.13 #713

Merged
merged 19 commits into from
Mar 10, 2020
Merged

React 16.13 #713

merged 19 commits into from
Mar 10, 2020

Conversation

Marc-Andre-Rivet
Copy link
Contributor

Companion to plotly/dash#1145

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 4, 2020 20:08 Inactive
@Marc-Andre-Rivet Marc-Andre-Rivet changed the title React 16.12 React 16.13 Mar 5, 2020
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 5, 2020 23:57 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 5, 2020 23:58 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 6, 2020 17:49 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 6, 2020 17:55 Inactive
@Marc-Andre-Rivet Marc-Andre-Rivet marked this pull request as ready for review March 6, 2020 20:22
@@ -132,7 +132,7 @@ export default class ControlledTable extends PureComponent<ControlledTableProps>
this.handleResize();
}

componentWillMount() {
UNSAFE_componentWillMount() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason these listeners can't just go in componentDidMount?

@@ -146,7 +146,7 @@ export default class ControlledTable extends PureComponent<ControlledTableProps>
document.removeEventListener('paste', this.handlePaste);
}

componentWillUpdate() {
UNSAFE_componentWillUpdate() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Likewise, why not put this one in componentDidUpdate?

# Wait for table
WebDriverWait(dash_duo.driver, _TIMEOUT).until(
EC.presence_of_element_located((By.CSS_SELECTOR, "#{}".format(IDS["table"])))
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not just dash_duo.wait_for_element("#{}".format(IDS["TABLE"])?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🙈

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 6, 2020 21:23 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 6, 2020 21:24 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 6, 2020 21:27 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 6, 2020 21:52 Inactive

from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now you can get rid of these too, right? Which I'd have thought flake8 would have told you but perhaps it's not run on the test code...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, it's apparently not run on the tests folder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃 excellent!

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-713 March 6, 2020 22:14 Inactive
@@ -1,5 +1,5 @@
[flake8]
ignore = E203, E266, E501, E731, W503
ignore = C901, E203, E266, E501, E731, W503
Copy link
Contributor Author

@Marc-Andre-Rivet Marc-Andre-Rivet Mar 6, 2020

Choose a reason for hiding this comment

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

Don't flag methods that are "too complex", we can decide that ourselves.. especially for tests!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants