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

🔍 tune snapshots API #1001

Merged
merged 34 commits into from
Nov 8, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
693cb71
add logging
Nov 1, 2019
9f1190c
extend callback
Nov 1, 2019
7e46b6e
add condition to avoid ghost request
Nov 1, 2019
9f4a83f
fix lint
Nov 1, 2019
20885c6
more robust
Nov 1, 2019
6ab5cdb
less poll
Nov 1, 2019
3dd054c
twice retry
Nov 4, 2019
88bf135
extend timeout
Nov 4, 2019
5b7a568
remove the logic
Nov 4, 2019
c98f132
smaller
Nov 4, 2019
806514a
reduce the logging info
Nov 4, 2019
2881882
tuning
Nov 4, 2019
e9b79e9
make wait more flexible
Nov 4, 2019
7d86bfe
remove the refresh
Nov 4, 2019
dff386d
Merge branch 'dev' into dbg-dt-callbacks
Nov 4, 2019
c6d4e65
tune API
Nov 4, 2019
418fadf
:mag: tune snapshots API
Nov 1, 2019
f881fdc
add fix for clear input
Nov 5, 2019
d509dc6
add pause after move
Nov 6, 2019
ff4e647
final tuning
Nov 6, 2019
a3469be
merge and fix conflict
Nov 6, 2019
430aacb
:lipstick:
Nov 6, 2019
507a5d5
:pencil2: add changelog
Nov 6, 2019
c46a10e
Merge branch 'dev' into dbg-dt-callbacks
byronz Nov 6, 2019
c20db88
remove pause
Nov 6, 2019
85e1b9c
upgrade selenium to revert clear back
Nov 6, 2019
9cb797c
Merge branch 'dbg-dt-callbacks' of github.com:plotly/dash into dbg-dt…
Nov 6, 2019
8322a26
Update CHANGELOG.md
byronz Nov 8, 2019
a1318cd
:truck: move snapshots together
Nov 8, 2019
6766936
:bug: fix fix the logic, all(()) returns True
Nov 8, 2019
1fd5ee8
:ok_hand: make thing simpler and cleaner
Nov 8, 2019
1b7b91d
:pencil2: revise changelog
Nov 8, 2019
7175519
Merge branch 'dev' into dbg-dt-callbacks
byronz Nov 8, 2019
c4d69a8
Update dash/testing/dash_page.py
byronz Nov 8, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add condition to avoid ghost request
  • Loading branch information
byron committed Nov 1, 2019
commit 7e46b6edf68bb6ea69a2c84cc22ac6b59354adb2
2 changes: 1 addition & 1 deletion dash/testing/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def percy_snapshot(self, name="", wait_for_callbacks=False):
)
logger.info("taking snapshot name => %s", snapshot_name)
if wait_for_callbacks:
until(self._wait_for_callbacks, timeout=60)
until(self._wait_for_callbacks, timeout=30)
self.percy_runner.snapshot(name=snapshot_name)

def take_snapshot(self, name):
Expand Down
8 changes: 6 additions & 2 deletions dash/testing/dash_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ def window_store(self):

def _wait_for_callbacks(self):
if self.window_store:
logger.warning("status of state rq %s", self.redux_state_rqs)
logger.debug("status of state rq %s", self.redux_state_rqs)
return self.redux_state_rqs and all(
byronz marked this conversation as resolved.
Show resolved Hide resolved
(_.get("responseTime") for _ in self.redux_state_rqs)
(
_.get("responseTime")
for _ in self.redux_state_rqs
if _.get("controllerId")
byronz marked this conversation as resolved.
Show resolved Hide resolved
)
)
return True

Expand Down