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: Fixes PropertiesModal_spec #13548

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Fixes PropertiesModal_spec error in Node 15.

109978301-81f68c00-7cdc-11eb-826c-86a3874da8fa

In Node 15 they changed the way to handle promise rejections. In previous versions of Node, promise rejections are handled as warnings, so the test pass but that doesn't mean that the test is correct. I fixed the code that was causing the promise rejection and now the test also passes in Node 15.

TEST PLAN

1 - Execute PropertiesModal_spec tests
2 - All tests should pass

@rusackas @simcha90

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Mar 10, 2021

Codecov Report

Merging #13548 (84d461c) into master (1d1a1cd) will decrease coverage by 3.74%.
The diff coverage is 28.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13548      +/-   ##
==========================================
- Coverage   77.31%   73.56%   -3.75%     
==========================================
  Files         903      603     -300     
  Lines       45926    21406   -24520     
  Branches     5624     5641      +17     
==========================================
- Hits        35508    15748   -19760     
+ Misses      10282     5524    -4758     
+ Partials      136      134       -2     
Flag Coverage Δ
cypress 57.21% <13.63%> (+0.75%) ⬆️
javascript 63.39% <28.23%> (-0.10%) ⬇️
mysql ?
postgres ?
presto ?
python ?
sqlite ?

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

Impacted Files Coverage Δ
superset-frontend/src/components/Button/index.tsx 100.00% <ø> (ø)
...et-frontend/src/dashboard/actions/nativeFilters.ts 64.10% <0.00%> (-3.47%) ⬇️
...tiveFilters/FilterBar/FilterSets/FilterSetUnit.tsx 40.90% <ø> (ø)
...tiveFilters/FilterBar/FilterSets/FiltersHeader.tsx 39.13% <0.00%> (-1.78%) ⬇️
...perset-frontend/src/dashboard/containers/Chart.jsx 100.00% <ø> (ø)
.../nativeFilters/FilterBar/FilterSets/FilterSets.tsx 18.30% <8.33%> (+0.12%) ⬆️
...onents/nativeFilters/FilterBar/FilterSets/utils.ts 27.58% <21.42%> (-5.75%) ⬇️
...d/components/nativeFilters/FilterBar/FilterBar.tsx 91.37% <33.33%> (-2.32%) ⬇️
...nativeFilters/FilterBar/FilterSets/EditSection.tsx 35.55% <35.55%> (ø)
...ents/nativeFilters/FilterBar/FilterSets/Footer.tsx 56.25% <50.00%> (ø)
... and 313 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 1d1a1cd...261dda5. Read the comment docs.

Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

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

LGTM!

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 a144249 into apache:master Apr 1, 2021
amitmiran137 pushed a commit that referenced this pull request Apr 2, 2021
* master: (26 commits)
  chore: bump to new superset-ui version (#13932)
  fix: do not run containers as root by default in Helm chart (#13917)
  feat(explore): adhoc column formatting for Table chart (#13758)
  fix(sqla-query): order by aggregations in Presto and Hive (#13739)
  feat(alert/report): add ALERTS_ATTACH_REPORTS feature flags + feature (#13894)
  test: Fixes PropertiesModal_spec (#13548)
  fix: Pin Prophet dependency after breaking changes (#13852)
  test: Adds tests to dnd controls (#13650)
  test: Adds tests to the AnnotationLayer component (#13748)
  test: Refactor and enhance tests for the Explore DatasourcePanel Component (#13799)
  Add tests (#13778)
  test: DisplayQueryButton (#13750)
  Fixing condition around left margin for dashboard layout. Fixes #13863 (#13905)
  Revert "fix: select table overlay (#13694)" (#13901)
  test: Adds tests to the OptionControls component (#13729)
  test: DatasourceControl (#13605)
  tests for function handleScroll (#13896)
  test: Adds tests to the CustomFrame component (#13675)
  test: Adds tests to the AdvancedFrame component (#13664)
  test: DataTableControl (#13668)
  ...
lyndsiWilliams pushed a commit to preset-io/superset that referenced this pull request Apr 7, 2021
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
@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 size/XS test:component 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants