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

test: FilterSets-utils #14028

Merged
merged 5 commits into from
Apr 9, 2021
Merged

test: FilterSets-utils #14028

merged 5 commits into from
Apr 9, 2021

Conversation

yardz
Copy link
Contributor

@yardz yardz commented Apr 8, 2021

SUMMARY

Tests for functions in src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils

@junlincc junlincc added dashboard:native-filters Related to the native filters of the Dashboard test:component labels Apr 8, 2021
@junlincc junlincc changed the title tests: FilterSets-utils test: FilterSets-utils Apr 8, 2021
@codecov
Copy link

codecov bot commented Apr 8, 2021

Codecov Report

Merging #14028 (1ed14f0) into master (5dd971e) will decrease coverage by 0.03%.
The diff coverage is 90.28%.

❗ Current head 1ed14f0 differs from pull request most recent head 14e571d. Consider uploading reports for the commit 14e571d to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14028      +/-   ##
==========================================
- Coverage   79.40%   79.36%   -0.04%     
==========================================
  Files         936      938       +2     
  Lines       47427    47548     +121     
  Branches     5938     5947       +9     
==========================================
+ Hits        37658    37738      +80     
- Misses       9643     9689      +46     
+ Partials      126      121       -5     
Flag Coverage Δ
cypress 56.05% <12.50%> (+<0.01%) ⬆️
javascript 69.17% <100.00%> (+0.31%) ⬆️
presto ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...rset-frontend/src/components/ErrorMessage/types.ts 100.00% <ø> (ø)
...dashboard/components/menu/ShareMenuItems/index.tsx 100.00% <ø> (ø)
superset/views/base.py 76.11% <ø> (ø)
superset/views/core.py 75.63% <ø> (-0.04%) ⬇️
superset/views/datasource.py 88.33% <ø> (-0.38%) ⬇️
...ies/saved_queries/commands/importers/dispatcher.py 75.00% <75.00%> (ø)
superset/queries/saved_queries/api.py 91.58% <75.86%> (-5.88%) ⬇️
superset/config.py 90.65% <83.33%> (-0.19%) ⬇️
superset/connectors/sqla/models.py 88.68% <83.33%> (-2.09%) ⬇️
...eries/saved_queries/commands/importers/v1/utils.py 92.30% <92.30%> (ø)
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5dd971e...14e571d. Read the comment docs.

* specific language governing permissions and limitations
* under the License.
*/
import { generateFiltersSetId } from '.';
Copy link
Member

Choose a reason for hiding this comment

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

Maybe also check for expected ID length?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if the generated string is the same size. But I believe that this is not so important

yardz and others added 4 commits April 9, 2021 11:01
…rBar/FilterSets/utils/findExistingFilterSet.test.ts

Co-authored-by: Michael S. Molina <[email protected]>
…rBar/FilterSets/utils/findExistingFilterSet.test.ts

Co-authored-by: Michael S. Molina <[email protected]>
…rBar/FilterSets/utils/generateFiltersSetId.test.ts

Co-authored-by: Michael S. Molina <[email protected]>
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

LGTM!

@rusackas rusackas merged commit 66201e7 into apache:master Apr 9, 2021
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Thanks @yardz !

allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* Tests for "nativeFilters/FilterBar/FilterSets/utils"

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/findExistingFilterSet.test.ts

Co-authored-by: Michael S. Molina <[email protected]>

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/findExistingFilterSet.test.ts

Co-authored-by: Michael S. Molina <[email protected]>

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/generateFiltersSetId.test.ts

Co-authored-by: Michael S. Molina <[email protected]>

* Fix: Lint error

Co-authored-by: Michael S. Molina <[email protected]>
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* Tests for "nativeFilters/FilterBar/FilterSets/utils"

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/findExistingFilterSet.test.ts

Co-authored-by: Michael S. Molina <[email protected]>

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/findExistingFilterSet.test.ts

Co-authored-by: Michael S. Molina <[email protected]>

* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/utils/generateFiltersSetId.test.ts

Co-authored-by: Michael S. Molina <[email protected]>

* Fix: Lint error

Co-authored-by: Michael S. Molina <[email protected]>
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels dashboard:native-filters Related to the native filters of the Dashboard size/L test:component 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants