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 a few obsolete logic #11676

Merged

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented Nov 12, 2020

SUMMARY

Remove a few obsolete logic after recent new features and improvements:

  • remove 'markup', 'separator' viz_type check
  • remove hard limit for the number of tabs allowed in dashboard
  • remove limit allowed for number of filter indicator.

TEST PLAN

CI

changed_on_humanized: slice.changed_on_delta_humanized,
};
}
slices[slice.id] = {
Copy link
Author

Choose a reason for hiding this comment

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

we don't have markup or separator viz_type anymore

@@ -35,8 +35,6 @@ import { NEW_TAB_ID, DASHBOARD_ROOT_ID } from '../../util/constants';
import { RENDER_TAB, RENDER_TAB_CONTENT } from './Tab';
import { TAB_TYPE } from '../../util/componentTypes';

const MAX_TAB_COUNT = 10;
Copy link
Author

@graceguo-supercat graceguo-supercat Nov 12, 2020

Choose a reason for hiding this comment

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

we used to limit number of tabs in dashboard, to avoid tabs wrapping. AntD has better solution to manage this. remove limit!

@codecov-io
Copy link

codecov-io commented Nov 12, 2020

Codecov Report

Merging #11676 (02b6a24) into master (1dc4c47) will increase coverage by 0.41%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11676      +/-   ##
==========================================
+ Coverage   62.36%   62.77%   +0.41%     
==========================================
  Files         875      887      +12     
  Lines       42374    42917     +543     
  Branches     3989     3988       -1     
==========================================
+ Hits        26426    26942     +516     
- Misses      15769    15797      +28     
+ Partials      179      178       -1     
Flag Coverage Δ
javascript 62.86% <0.00%> (-0.01%) ⬇️
python 62.72% <ø> (+0.66%) ⬆️

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

Impacted Files Coverage Δ
...et-frontend/src/dashboard/actions/sliceEntities.js 12.50% <0.00%> (+0.37%) ⬆️
...d/src/dashboard/components/gridComponents/Tabs.jsx 63.63% <ø> (-0.41%) ⬇️
superset-frontend/src/dashboard/util/constants.ts 100.00% <ø> (ø)
superset/db_engine_specs/presto.py 73.65% <0.00%> (-8.64%) ⬇️
superset/examples/world_bank.py 97.10% <0.00%> (-2.90%) ⬇️
superset/examples/birth_names.py 96.51% <0.00%> (-2.33%) ⬇️
superset/models/core.py 88.98% <0.00%> (-0.28%) ⬇️
superset/connectors/sqla/models.py 90.77% <0.00%> (-0.14%) ⬇️
superset/config.py 90.11% <0.00%> (ø)
superset/reports/logs/schemas.py 100.00% <0.00%> (ø)
... and 14 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 1dc4c47...02b6a24. Read the comment docs.

@etr2460
Copy link
Member

etr2460 commented Nov 12, 2020

could you add the details from the comment into the PR summary that way it's easier to see it when visiting the PR someday? Perhaps into the PR title too if it fits. Thanks!

@graceguo-supercat
Copy link
Author

could you add the details from the comment into the PR summary that way it's easier to see it when visiting the PR someday? Perhaps into the PR title too if it fits. Thanks!

I add details in description. It's too long to fit in title...

@graceguo-supercat graceguo-supercat merged commit 7d27996 into apache:master Nov 14, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@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/M 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants