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: move data nav menu to plus menu #18629

Merged
merged 21 commits into from
Feb 17, 2022
Merged

Conversation

pkdotson
Copy link
Member

@pkdotson pkdotson commented Feb 9, 2022

SUMMARY

This pr more the upload csv, columnar, and excel links in the main nav from the data dropdown to the plus icon. This pr is first step in allowing the database modal to be used within the main nav and throughout the app.

After new changes:

Screen.Recording.2022-02-09.at.2.09.28.PM.mov

TESTING INSTRUCTIONS

Check for changes in the main nav.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@pkdotson pkdotson marked this pull request as draft February 9, 2022 10:23
@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 9, 2022
@pkdotson pkdotson marked this pull request as ready for review February 9, 2022 22:11
@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #18629 (61a2756) into master (4ab0786) will decrease coverage by 0.16%.
The diff coverage is 82.35%.

❗ Current head 61a2756 differs from pull request most recent head 57e001c. Consider uploading reports for the commit 57e001c to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18629      +/-   ##
==========================================
- Coverage   66.31%   66.15%   -0.17%     
==========================================
  Files        1620     1620              
  Lines       63080    63087       +7     
  Branches     6370     6372       +2     
==========================================
- Hits        41833    41733     -100     
- Misses      19591    19697     +106     
- Partials     1656     1657       +1     
Flag Coverage Δ
hive ?
javascript 51.25% <78.57%> (+0.01%) ⬆️
mysql 81.42% <100.00%> (+<0.01%) ⬆️
postgres 81.47% <100.00%> (+<0.01%) ⬆️
presto ?
python 81.56% <100.00%> (-0.35%) ⬇️
sqlite 81.16% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...s/legacy-plugin-chart-country-map/src/countries.ts 100.00% <ø> (ø)
...board/components/nativeFilters/FilterBar/index.tsx 69.82% <ø> (ø)
superset-frontend/src/views/App.tsx 0.00% <0.00%> (ø)
superset/initialization/__init__.py 90.65% <ø> (+0.45%) ⬆️
...perset-frontend/src/views/components/MenuRight.tsx 80.00% <81.81%> (-0.49%) ⬇️
superset-frontend/src/views/components/Menu.tsx 56.41% <100.00%> (+1.14%) ⬆️
superset/views/base.py 74.75% <100.00%> (+0.25%) ⬆️
superset/db_engines/hive.py 0.00% <0.00%> (-85.19%) ⬇️
superset/db_engine_specs/hive.py 70.27% <0.00%> (-15.45%) ⬇️
superset/db_engine_specs/presto.py 83.47% <0.00%> (-5.65%) ⬇️
... 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 4ab0786...57e001c. Read the comment docs.

@srinify srinify added the design:user-research Related to user research label Feb 10, 2022
@pkdotson pkdotson requested a review from eschutho February 15, 2022 00:26
superset/views/base.py Outdated Show resolved Hide resolved
@pkdotson pkdotson requested a review from eschutho February 16, 2022 01:14
className="data-menu"
title={menuIconAndLabel(menu as MenuObjectProps)}
>
{menu.childs.map(item =>
Copy link
Member

Choose a reason for hiding this comment

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

This looks great!

bool(conf["CSV_EXTENSIONS"].intersection(conf["ALLOWED_EXTENSIONS"])),
)
frontend_config["COLUMNAR_EXTENSIONS"] = bool(
bool(conf["COLUMNAR_EXTENSIONS"].intersection(conf["ALLOWED_EXTENSIONS"])),
Copy link
Member

Choose a reason for hiding this comment

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

This looks good, but to further simplify, wdyt about adding these keys to the FRONTEND_CONF_KEYS and then do the logic on the client side component? In other words, instead of this file being concerned with logic or the usage of this data, it just passes the data to the client and then the client only has to be concerned about the logic.

Copy link
Member Author

Choose a reason for hiding this comment

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

sure to dry that out a bit it makes sense.

Copy link
Member Author

Choose a reason for hiding this comment

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

However I'm going to mark this as a follow up as this will add some testing layer on frontend I think.

Copy link
Member

Choose a reason for hiding this comment

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

ok, sounds good. thanks

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

Super!

@pkdotson pkdotson merged commit 2421d17 into apache:master Feb 17, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

hughhhh pushed a commit to preset-io/superset that referenced this pull request Mar 7, 2022
hughhhh added a commit to preset-io/superset that referenced this pull request Mar 7, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 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 design:user-research Related to user research preset-io size/L 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants