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(charts): modify custom api filter to include more fields #11054

Merged
merged 2 commits into from
Sep 28, 2020

Conversation

nytai
Copy link
Member

@nytai nytai commented Sep 25, 2020

SUMMARY

similar to #11031 this PR expends the 'search' fields to include slice_name, description, viz_type, or datasource_name

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TEST PLAN

CI, unit tests

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

@nytai nytai force-pushed the tai/custom-filter-chart branch 2 times, most recently from a171849 to 1ae8278 Compare September 25, 2020 05:21
@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2020

Codecov Report

Merging #11054 into master will increase coverage by 7.25%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11054      +/-   ##
==========================================
+ Coverage   65.79%   73.04%   +7.25%     
==========================================
  Files         816      433     -383     
  Lines       38422    14236   -24186     
  Branches     3621     3621              
==========================================
- Hits        25280    10399   -14881     
+ Misses      13034     3728    -9306     
- Partials      108      109       +1     
Flag Coverage Δ
#cypress 56.48% <ø> (-0.63%) ⬇️
#javascript 61.77% <ø> (ø)
#python ?

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

Impacted Files Coverage Δ
...perset-frontend/src/views/CRUD/chart/ChartList.tsx 82.90% <ø> (ø)
...et-frontend/src/SqlLab/reducers/getInitialState.js 33.33% <0.00%> (-16.67%) ⬇️
...rontend/src/SqlLab/components/SqlEditorLeftBar.jsx 44.00% <0.00%> (-12.00%) ⬇️
...rontend/src/SqlLab/components/TabbedSqlEditors.jsx 76.97% <0.00%> (-3.95%) ⬇️
...end/src/SqlLab/components/TemplateParamsEditor.jsx 88.57% <0.00%> (-2.86%) ⬇️
superset-frontend/src/SqlLab/reducers/sqlLab.js 37.91% <0.00%> (-1.67%) ⬇️
...rontend/src/SqlLab/components/AceEditorWrapper.tsx 59.49% <0.00%> (-1.27%) ⬇️
...erset-frontend/src/SqlLab/components/SqlEditor.jsx 52.12% <0.00%> (-1.22%) ⬇️
superset-frontend/src/components/TableSelector.jsx 84.96% <0.00%> (-0.66%) ⬇️
superset-frontend/src/SqlLab/actions/sqlLab.js 60.25% <0.00%> (-0.43%) ⬇️
... and 381 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 d056e3d...bb23780. Read the comment docs.

@@ -364,7 +364,7 @@ function ChartList(props: ChartListProps) {
Header: t('Search'),
id: 'slice_name',
input: 'search',
operator: 'name_or_description',
operator: 'chart_all_text',
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like arg_names share a global namespace? I got a test failure on the previously added all_text filter for saved queries. If so, we should add the the resource name to other custom filters so there's no confusion/collision.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, good point!

@nytai nytai marked this pull request as ready for review September 25, 2020 16:50
@nytai nytai requested a review from dpgaspar September 25, 2020 22:38
@nytai nytai merged commit 1dc05d4 into apache:master Sep 28, 2020
@nytai nytai deleted the tai/custom-filter-chart branch September 28, 2020 17:18
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 🚢 0.38.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 🚢 0.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants