This repository was archived by the owner on Jun 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 73
Improve Filtering #397
Merged
Merged
Improve Filtering #397
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
53380d1
refactor syntax tree into various trees and lexicons
6c6fba9
- single column tests
86b0929
- lexer state machine
a158c3c
fix build
e9a35cf
- fix multi column query
e0d9d37
- fix UI filtering tests (+ new breaking test)
ba1f414
- fix filters behavior on invalid query fragments
e3b3631
- fix empty table styling issue
fd8540e
- table rendering with different filters
77cc573
- fix closing syntax (can't be first item)
90de09d
unary lexemes use left and right instead of block
60a5914
update operand syntax
a806ec2
fix filtering tests
89e6231
percy - fix filtering
c308141
remove waitfor
ba1b015
refactor single & multi query mapping logic
fc4645d
refactor relational operators
9489652
one file per relational operator
529c39b
rework - all in same file again..
88baf5f
rework unary operators
dcd9af8
fix standalone filtering tests
efb9a70
reorganize code
3da02a1
lexeme nomenclature
f497ce2
rework, add presentation, add sub-type enums
c4d7849
rework expression lexeme formatting
6e58593
rework regexp for lexemes,
747b9e6
same expression and operand tests for operand section
d85091a
- fix expression value
d82b2e3
- second filter for `filtering` app case
785373d
fix lint
1689b86
- break up expression into sub types
1b3bf51
update subtype
4fabf22
add derived_query_structure prop
d936a0e
fix filtering tests
edfd865
fix filtering tests
6b9f737
Updating Cypress
fb894bf
fix review comments
5bea8b5
update styling tests
e3bac4a
Merge branch 'master' into refactor-syntax-tree
Marc-Andre-Rivet 2f05a3f
add back test delay
12c7c9e
Merge branch 'refactor-syntax-tree' of github.com:plotly/dash-table i…
914089e
fix py dropdown test
614b138
indentation
40eb328
remove v1 tests (deprecated)
96e1ee3
(test) super long delay on screenshot
ce18be8
rewrite some tests as storybook tests
4e7ec15
new virtualization test
050fad7
rewrite header test
491b586
rewrite simple table test
0e64101
rewrite dropdown tests
15e3df4
rewrite sizing tests
0718537
add tests for alt whitespace characters trimming
d69b98d
- fix typo (GreaterThan)
3f96b5b
escape `\`
8793613
fix lexeme tests
45963e7
- rename derived_query_structure to derived_filter_structure
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version: 2 | ||
|
||
jobs: | ||
"test-v0": | ||
"test": | ||
docker: | ||
- image: circleci/python:3.6.7-node-browsers | ||
- image: cypress/base:10 | ||
|
@@ -30,67 +30,7 @@ jobs: | |
sudo pip install --upgrade virtualenv | ||
python -m venv venv || virtualenv venv | ||
. venv/bin/activate | ||
pip install -r requirements-base.txt --quiet | ||
|
||
- run: | ||
name: Install dependencies (dash) | ||
command: | | ||
git clone [email protected]:plotly/dash.git | ||
git clone [email protected]:plotly/dash-renderer.git | ||
git clone [email protected]:plotly/dash-core-components.git | ||
git clone [email protected]:plotly/dash-html-components.git | ||
. venv/bin/activate | ||
pip install -e ./dash --quiet | ||
cd dash-renderer && npm install --ignore-scripts && npm run build && pip install -e . && cd .. | ||
cd dash-core-components && npm install --ignore-scripts && npm run build && pip install -e . && cd .. | ||
cd dash-html-components && npm install --ignore-scripts && npm run build && pip install -e . && cd .. | ||
|
||
- run: | ||
name: Build | ||
command: | | ||
. venv/bin/activate | ||
npm run private::build:js-test | ||
npm run private::build:py | ||
pip install -e . | ||
|
||
- run: | ||
name: Run tests | ||
command: | | ||
. venv/bin/activate | ||
npm run test-v0 | ||
|
||
|
||
"test-v1": | ||
docker: | ||
- image: circleci/python:3.6.7-node-browsers | ||
- image: cypress/base:10 | ||
|
||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }} | ||
- run: | ||
name: Install npm packages | ||
command: npm install | ||
- run: | ||
name: Cypress Install | ||
command: | | ||
$(npm bin)/cypress install | ||
|
||
- save_cache: | ||
key: deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }} | ||
paths: | ||
- node_modules | ||
- /home/circleci/.cache/Cypress | ||
|
||
- run: | ||
name: Install requirements | ||
command: | | ||
sudo pip install --upgrade virtualenv | ||
python -m venv venv || virtualenv venv | ||
. venv/bin/activate | ||
pip install -r requirements-base.txt --quiet | ||
pip install -r requirements-v1.txt --quiet | ||
pip install -r requirements.txt --quiet | ||
|
||
- run: | ||
name: Build | ||
|
@@ -104,7 +44,7 @@ jobs: | |
name: Run tests | ||
command: | | ||
. venv/bin/activate | ||
npm run test-v1 | ||
npm run test | ||
|
||
|
||
"visual-test": | ||
|
@@ -172,7 +112,7 @@ jobs: | |
when: always | ||
|
||
|
||
"python-3.6-v0": | ||
"python-3.6": | ||
docker: | ||
- image: circleci/python:3.6.7-stretch-node-browsers | ||
|
||
|
@@ -224,53 +164,11 @@ jobs: | |
python -m unittest tests.dash.test_integration | ||
|
||
|
||
"python-3.6-v1": | ||
docker: | ||
- image: circleci/python:3.6.7-stretch-node-browsers | ||
|
||
environment: | ||
PERCY_ENABLED: True | ||
PERCY_PROJECT: plotly/dash-table-python-v1 | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Inject Percy Environment variables | ||
command: | | ||
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V1"' >> $BASH_ENV | ||
|
||
- run: | ||
name: Install requirements | ||
command: | | ||
sudo pip install --upgrade virtualenv | ||
python -m venv venv || virtualenv venv | ||
. venv/bin/activate | ||
pip install -r requirements-base.txt --quiet | ||
pip install -r requirements-v1.txt --quiet | ||
npm install | ||
|
||
- run: | ||
name: Install test requirements | ||
command: | | ||
. venv/bin/activate | ||
npm run build | ||
pip install -e . | ||
|
||
- run: | ||
name: Run integration tests | ||
command: | | ||
. venv/bin/activate | ||
python -m unittest tests.dash.test_integration | ||
|
||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- "python-3.6-v0" | ||
- "python-3.6-v1" | ||
- "python-3.6" | ||
- "node" | ||
- "test-v0" | ||
- "test-v1" | ||
- "test" | ||
- "visual-test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
-r requirements-base.txt | ||
-r requirements-v1.txt | ||
-r requirements-v0.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping the intermediary results allows for finer manipulations in the derived syntax tree classes