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

feat: CSS Templates List #11189

Merged
merged 3 commits into from
Oct 9, 2020
Merged

Conversation

riahk
Copy link
Contributor

@riahk riahk commented Oct 7, 2020

SUMMARY

  • Updated routing to setup CSS Templates React view
  • Accessible with feature flags ENABLE_REACT_CRUD_VIEWS and SIP_34_CSS_TEMPLATES_UI
  • Add CssTemplatesList

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2020-10-07 at 10 13 17 AM

TEST PLAN

  • Add spec file

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

@riahk riahk changed the title Moriah/css templates list feat: CSS Templates List Oct 7, 2020
@codecov-io
Copy link

codecov-io commented Oct 7, 2020

Codecov Report

Merging #11189 into master will decrease coverage by 4.08%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11189      +/-   ##
==========================================
- Coverage   65.61%   61.53%   -4.09%     
==========================================
  Files         828      829       +1     
  Lines       39148    39194      +46     
  Branches     3589     3596       +7     
==========================================
- Hits        25687    24117    -1570     
- Misses      13350    14896    +1546     
- Partials      111      181      +70     
Flag Coverage Δ
#cypress ?
#javascript 62.38% <ø> (+0.08%) ⬆️
#python 61.02% <72.72%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
superset/views/css_templates.py 90.00% <72.72%> (-10.00%) ⬇️
...ator-superset/superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
...tor-superset/superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
...r-superset/superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
...r-superset/superset-frontend/src/explore/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
...superset/superset-frontend/src/dashboard/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
...uperset/superset-frontend/src/setup/setupColors.js 0.00% <0.00%> (-100.00%) ⬇️
...set/superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
...set/superset-frontend/src/setup/setupFormatters.js 0.00% <0.00%> (-100.00%) ⬇️
...et/superset-frontend/src/explore/reducers/index.js 0.00% <0.00%> (-100.00%) ⬇️
... and 168 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 a10e86a...420251d. Read the comment docs.

@riahk riahk force-pushed the moriah/css-templates-list branch from 2debb94 to 1085dcb Compare October 7, 2020 20:15
@riahk riahk force-pushed the moriah/css-templates-list branch from 1085dcb to 420251d Compare October 8, 2020 20:26
Copy link
Member

@nytai nytai left a comment

Choose a reason for hiding this comment

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

LGTM with a couple nits. LMK if you plan to address or if I should just merge

import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
// import { act } from 'react-dom/test-utils';

// store needed for withToasts(DatabaseList)
Copy link
Member

Choose a reason for hiding this comment

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

nit: incorrect comment

import CssTemplatesList from 'src/views/CRUD/csstemplates/CssTemplatesList';
import SubMenu from 'src/components/Menu/SubMenu';
import ListView from 'src/components/ListView';
// import Filters from 'src/components/ListView/Filters';
Copy link
Member

Choose a reason for hiding this comment

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

nit: commented out code

import SubMenu from 'src/components/Menu/SubMenu';
import { IconName } from 'src/components/Icon';
import ActionsBar, { ActionProps } from 'src/components/ListView/ActionsBar';
// import ListView, { Filters } from 'src/components/ListView';
Copy link
Member

Choose a reason for hiding this comment

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

nit: commented out code

{
Cell: ({ row: { original } }: any) => {
const handleEdit = () => {}; // handleDatabaseEdit(original);
const handleDelete = () => {}; // openDatabaseDeleteModal(original);
Copy link
Member

Choose a reason for hiding this comment

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

nit: incorrectly named and commented out code

count={templatesCount}
data={templates}
fetchData={fetchData}
// filters={filters}
Copy link
Member

Choose a reason for hiding this comment

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

nit: commented out code

@nytai nytai merged commit a6fc3d2 into apache:master Oct 9, 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/L 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants