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

chore: Remove unused CodeModal #11972

Merged
merged 4 commits into from
Dec 17, 2020

Conversation

maloun96
Copy link
Contributor

@maloun96 maloun96 commented Dec 9, 2020

This file was unused throughout the codebase, so removing it (and the test)

@codecov-io
Copy link

codecov-io commented Dec 9, 2020

Codecov Report

Merging #11972 (7acf19d) into master (7e6f04f) will increase coverage by 0.36%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11972      +/-   ##
==========================================
+ Coverage   63.75%   64.11%   +0.36%     
==========================================
  Files         941      476     -465     
  Lines       45654    29386   -16268     
  Branches     4389        0    -4389     
==========================================
- Hits        29106    18842   -10264     
+ Misses      16371    10544    -5827     
+ Partials      177        0     -177     
Flag Coverage Δ
javascript ?
python 64.11% <ø> (-0.15%) ⬇️

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

Impacted Files Coverage Δ
superset/examples/energy.py 27.50% <0.00%> (-72.50%) ⬇️
superset/sql_validators/postgres.py 50.00% <0.00%> (-50.00%) ⬇️
superset/datasets/commands/importers/v1/utils.py 58.62% <0.00%> (-34.24%) ⬇️
superset/datasets/commands/export.py 78.72% <0.00%> (-15.40%) ⬇️
superset/dashboards/commands/export.py 78.00% <0.00%> (-13.18%) ⬇️
superset/db_engine_specs/presto.py 73.81% <0.00%> (-8.59%) ⬇️
superset/cli.py 34.78% <0.00%> (-5.75%) ⬇️
superset/views/alerts.py 75.00% <0.00%> (-4.42%) ⬇️
superset/reports/commands/execute.py 92.50% <0.00%> (-3.80%) ⬇️
superset/exceptions.py 92.00% <0.00%> (-3.35%) ⬇️
... and 546 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 7e6f04f...7acf19d. Read the comment docs.

@junlincc junlincc requested a review from etr2460 December 9, 2020 14:35
@junlincc
Copy link
Member

junlincc commented Dec 9, 2020

@etr2460 🙏

codeCallback: PropTypes.func,
type CodeModalProps = {
triggerNode: JSX.Element;
code?: string;
Copy link
Member

Choose a reason for hiding this comment

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

as mentioned here: i think this can be required now: https://github.com/apache/incubator-superset/pull/11971/files#r540334777

type CodeModalProps = {
triggerNode: JSX.Element;
code?: string;
codeCallback: () => string;
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't seem to match the type of the default codeCallback prop

@maloun96
Copy link
Contributor Author

@etr2460 Seems that this CodeModal is not used anywhere, maybe we can remove it?

@pull-request-size pull-request-size bot added size/S and removed size/M labels Dec 16, 2020
@etr2460
Copy link
Member

etr2460 commented Dec 16, 2020

Hmm, yeah i don't see it used anywhere. Might as well delete it then!

@pull-request-size pull-request-size bot added size/L and removed size/S labels Dec 16, 2020
@etr2460 etr2460 changed the title refactor: Transform code modal to tsx chore: Remove unused CodeModal Dec 16, 2020
Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

lgtm, let's make sure CI doesn't catch anything else

@rusackas rusackas merged commit 51c3b71 into apache:master Dec 17, 2020
amitmiran137 pushed a commit to simcha90/incubator-superset that referenced this pull request Dec 18, 2020
* upstream/master: (55 commits)
  feat(explore): time picker enhancement (apache#11418)
  feat: update alert/report icons and column order (apache#12081)
  feat(explore): metrics and filters controls redesign (apache#12095)
  feat(alerts/reports): add refresh action (apache#12071)
  chore: add latest tag action (apache#11148)
  fix(reports): increase crontab size and alert fixes (apache#12056)
  Small typo fix in Athena connection docs (apache#12099)
  feat(queries): security perm simplification (apache#12072)
  feat(databases): security perm simplification (apache#12036)
  feat(dashboards): security permissions simplification (apache#12012)
  feat(logs): security permissions simplification (apache#12061)
  chore: Remove unused CodeModal (apache#11972)
  Fix typescript error (apache#12074)
  fix: handle context-dependent feature flags in CLI (apache#12088)
  fix: Fix "View in SQLLab" bug (apache#12086)
  feat(alert/report): add 'not null' condition option to modal (apache#12077)
  bumping superset ui to 15.18 and deckgl to 0.3.2 (apache#12078)
  fix: Python dependencies in apache#11499 (apache#12079)
  reset active tab on open (apache#12048)
  fix: improve import flow UI/UX (apache#12070)
  ...
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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/L 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants