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

adding support for async callbacks and page layouts #3089

Open
wants to merge 36 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e1002d5
adding support for async callbacks and page layouts
BSd3v Nov 21, 2024
e24e094
adding new `use_async` attribute to `Dash` and having callbacks and l…
BSd3v Nov 21, 2024
5d492dc
fixing issue with indentations of layouts
BSd3v Nov 21, 2024
69ee069
removing needing to classify the function as async, instead I am look…
BSd3v Nov 21, 2024
950888c
fixing for lint
BSd3v Nov 22, 2024
916efdc
adjustments for the test for the debugger, making test more robust fo…
BSd3v Nov 22, 2024
0dd778e
fixing lint issues
BSd3v Nov 22, 2024
2d9a930
Adjustments for `use_async` and determining whether the app can be us…
BSd3v Nov 22, 2024
b2f9cd6
disable lint for unused import on `asgiref`
BSd3v Nov 22, 2024
f1ac667
adjustments for formatting
BSd3v Nov 22, 2024
378099f
Merge remote-tracking branch 'dash/dev' into support-async-callbacks
BSd3v Nov 22, 2024
52de22e
adding additional ignore for `flake8`
BSd3v Nov 22, 2024
4189ed6
more adjustments for lint
BSd3v Nov 22, 2024
0ddf254
adding `dash[async]`
BSd3v Nov 22, 2024
76a9a56
Merge branch 'plotly:dev' into support-async-callbacks
BSd3v Nov 25, 2024
337ec26
attempt no 1 for refactoring dash for `dispatch`
BSd3v Dec 4, 2024
a730b4b
fixing for lint
BSd3v Dec 4, 2024
538515d
fixing no outputs
BSd3v Dec 4, 2024
4f14a1a
attempt no 1 for refactoring callbacks
BSd3v Dec 4, 2024
96df44e
fixing for multi outputs
BSd3v Dec 5, 2024
91400a3
attempt no 1 refactoring background callbacks for async functions
BSd3v Dec 5, 2024
1856f5c
Merge remote-tracking branch 'dash/dev' into support-async-callbacks
BSd3v Dec 5, 2024
671cb2b
fixing for lint and progress outputs
BSd3v Dec 5, 2024
f19fe23
lint adjustments
BSd3v Dec 6, 2024
17c824d
adding async tests
Dec 6, 2024
fdfd058
bypassing `test_rdrh003_refresh_jwt` as this fails with 3 failed requ…
Dec 7, 2024
fb691c3
removing `__init__` from `async` directory
Dec 7, 2024
2473546
adjusting `jwt` test to adjust value in the MultiProcessing and remov…
Dec 9, 2024
b2e8884
removing flaky for lint
Dec 9, 2024
df29ee6
adjustments for formatting
Dec 9, 2024
5342573
simplifying `jwt` test by using `before_request` removing needs to ch…
Dec 9, 2024
c79debf
attempting to allow for failed tests to be rerun to see if the cache …
Dec 9, 2024
37d649c
moving retry to `integration-dash`
Dec 9, 2024
eaec04f
adjusting browser for percy snapshot to append `async` to the snapsho…
Dec 9, 2024
68320f4
fixing `browser` for lint
Dec 9, 2024
5b201a1
Merge branch 'dev' into support-async-callbacks
BSd3v Feb 3, 2025
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
54 changes: 54 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,57 @@ jobs:
- store_artifacts:
path: /tmp/dash_artifacts

test-312-async: &test
working_directory: ~/dash
docker:
- image: cimg/python:3.12.1-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PERCY_ENABLE: 1
PERCY_PARALLEL_TOTAL: -1
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: True
PYVERSION: python312
REDIS_URL: redis://localhost:6379
- image: cimg/redis:6.2.6
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
parallelism: 3
steps:
- checkout:
path: ~/dash
- run: sudo apt-get update
- run: echo $PYVERSION > ver.txt
- run: cat requirements/*.txt > requirements-all.txt
- restore_cache:
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requirements-all.txt" }}
- browser-tools/install-browser-tools:
chrome-version: 120.0.6099.71
install-firefox: false
install-geckodriver: false
- attach_workspace:
at: ~/dash
- run:
name: ️️🏗️ Install package
command: |
. venv/bin/activate
npm ci
pip install dash-package/dash-package.tar.gz[async,ci,dev,testing,celery,diskcache] --progress-bar off
pip list | grep dash
- run:
name: 🧪 Run Integration Tests
command: |
. venv/bin/activate
npm run citest.integration
- store_artifacts:
path: test-reports
- store_test_results:
path: test-reports
- store_artifacts:
path: /tmp/dash_artifacts

test-312-react-18:
<<: *test
docker:
Expand Down Expand Up @@ -627,6 +678,9 @@ workflows:
- test-312:
requires:
- install-dependencies-312
- test-312-async:
requires:
- install-dependencies-312
- test-312-react-18:
requires:
- install-dependencies-312
Expand Down
Loading