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

fix: tests errors and warnings - iteration 3 (#12212) #12219

Merged

Conversation

michael-s-molina
Copy link
Member

@michael-s-molina michael-s-molina commented Dec 28, 2020

SUMMARY

Remove tests errors and warnings to improve results readability.

The following errors and warnings have been removed:

Warning: Could not load worker TypeError: URL.createObjectURL is not a function

spec/javascripts/views/CRUD/annotation/AnnotationModal_spec.jsx
spec/javascripts/views/CRUD/csstemplates/CssTemplateModal_spec.jsx
Warning: Failed prop type: The prop `lastModifiedTime` is marked as required in `HeaderActionsDropdown`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/HeaderActionsDropdown_spec.jsx
Unmatched <HTTP_METHOD> to <URL>

spec/javascripts/dashboard/components/HeaderActionsDropdown_spec.jsx
Warning: Failed prop type: The prop `addWarningToast` is marked as required, 
but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
spec/javascripts/dashboard/components/gridComponents/Markdown_spec.jsx
Warning: Failed prop type: The prop `customCss` is marked as required in `Header`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
Warning: Failed prop type: The prop `setColorSchemeAndUnsavedChanges` is marked as required 
in `Header`, but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
Warning: Failed prop type: The prop `isLoading` is marked as required in `Header`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
Warning: Failed prop type: The prop `logEvent` is marked as required in `Header`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
Warning: Failed prop type: The prop `lastModifiedTime` is marked as required in `Header`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
Warning: Failed prop type: The prop `refreshFrequency` is marked as required in `Header`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
Warning: Failed prop type: The prop `shouldPersistRefreshFrequency` is marked as required 
in `Header`, but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
Warning: Failed prop type: The prop `setRefreshFrequency` is marked as required in `Header`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/Header_spec.jsx
Warning: Failed prop type: The prop `undoLength` is marked as required in `Markdown`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/gridComponents/Markdown_spec.jsx
Warning: Failed prop type: The prop `redoLength` is marked as required in `Markdown`, 
but its value is `undefined`.

spec/javascripts/dashboard/components/gridComponents/Markdown_spec.jsx
When testing, code that causes React state updates should be wrapped into act(...)

spec/javascripts/dashboard/components/gridComponents/Markdown_spec.jsx
spec/javascripts/dashboard/components/nativeFilters/ScopingTree_spec.tsx
spec/javascripts/views/CRUD/annotation/AnnotationList_spec.jsx
Warning: Failed prop type: The prop `savedMetric.metric_name` is marked as required, 
but its value is `undefined`.

spec/javascripts/explore/components/AdhocMetricOption_spec.jsx

#12212

@rusackas @junlincc @villebro

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

@michael-s-molina michael-s-molina changed the title Fix tests errors and warnings - iteration 3 (#12212) fix: tests errors and warnings - iteration 3 (#12212) Dec 29, 2020
@villebro
Copy link
Member

@michael-s-molina it seems CI is either really slow or stuck (noticed the same on your other PR). I'll check back later to see if CI has started.

@michael-s-molina
Copy link
Member Author

@villebro CI is stuck in all PRs. I noticed that yesterday.

Screen Shot 2020-12-29 at 10 33 27 AM

@villebro
Copy link
Member

@michael-s-molina whoah, this is quite the traffic jam..

@codecov-io
Copy link

codecov-io commented Jan 20, 2021

Codecov Report

Merging #12219 (46be65c) into master (a422c76) will decrease coverage by 0.06%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12219      +/-   ##
==========================================
- Coverage   66.79%   66.72%   -0.07%     
==========================================
  Files        1015     1017       +2     
  Lines       49676    49734      +58     
  Branches     4847     4864      +17     
==========================================
+ Hits        33183    33187       +4     
- Misses      16371    16424      +53     
- Partials      122      123       +1     
Flag Coverage Δ
cypress 50.98% <28.00%> (-0.06%) ⬇️
javascript 60.81% <75.00%> (+0.06%) ⬆️
python 63.85% <ø> (-0.14%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/common/components/index.tsx 100.00% <ø> (ø)
...ard/components/nativeFilters/FilterConfigModal.tsx 62.80% <ø> (-0.23%) ⬇️
...nd/src/dashboard/components/nativeFilters/types.ts 100.00% <ø> (ø)
superset-frontend/src/dashboard/reducers/types.ts 0.00% <0.00%> (ø)
...nd/src/dashboard/components/nativeFilters/utils.ts 62.96% <71.42%> (+5.06%) ⬆️
...dashboard/components/nativeFilters/FilterScope.tsx 76.92% <76.92%> (ø)
...dashboard/components/nativeFilters/ScopingTree.tsx 81.81% <85.71%> (+4.04%) ⬆️
...oard/components/nativeFilters/FilterConfigForm.tsx 90.47% <100.00%> (+8.33%) ⬆️
...nd/src/dashboard/components/nativeFilters/state.ts 66.03% <100.00%> (+5.16%) ⬆️
superset/db_engine_specs/presto.py 73.37% <0.00%> (-8.66%) ⬇️
... and 4 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 2463215...46be65c. Read the comment docs.

@rusackas rusackas removed the hold! On hold label Jan 25, 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.

LGTM! Again, thank you for the detailed description, and thank you for splitting it into multiple PRs!

@rusackas rusackas merged commit 6bf5d2c into apache:master Jan 26, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Jan 26, 2021
* master: (52 commits)
  docs: Updates to Superset Site for 1.0 (apache#12626)
  test(native-filters): scoping tree in native filters modal (apache#12655)
  Fix tests errors and warnings - iteration 3 (apache#12212) (apache#12219)
  Fix tests errors and warnings - iteration 5 (apache#12212) (apache#12224)
  Fix tests errors and warnings - iteration 6 (apache#12212) (apache#12227)
  feat(native-filters): apply scoping of native filters to dashboard (apache#12716)
  Fix tests errors and warnings - iteration 4 (apache#12212) (apache#12223)
  Fix tests errors and warnings - iteration 7 (apache#12212) (apache#12245)
  fix: missing select menu background (apache#12759)
  fix(explore): incorrect missing datasource condition (apache#12758)
  feat: default timepicker to last week when dataset is changed (apache#12609)
  feat(explore): allow opening charts with missing dataset (apache#12705)
  chore: upgrade Cypress to 6.2.1 (apache#12605)
  refactor(explore): Enhance Dataset and Control panel Collapse components (apache#12218)
  feat: Adding option to set_database_uri CLI command (apache#12740)
  docs: Fixed typo on line 348 (apache#12739)
  Fix tests errors and warnings - iteration 2 (apache#12212) (apache#12214)
  docs: Remove gatsby-plugin-offline (apache#12693)
  test: oracle engine spec (apache#12615)
  test: hive db engine spec (apache#12520)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants