Skip to content

Conversation

@simcha90
Copy link
Contributor

@simcha90 simcha90 commented May 2, 2021

SUMMARY

Allows apply cascading logic only for Select filters

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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

@codecov
Copy link

codecov bot commented May 2, 2021

Codecov Report

Merging #14441 (6e1d485) into master (2486fd4) will increase coverage by 0.20%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14441      +/-   ##
==========================================
+ Coverage   76.79%   76.99%   +0.20%     
==========================================
  Files         955      955              
  Lines       48247    48029     -218     
  Branches     6030     6040      +10     
==========================================
- Hits        37051    36981      -70     
+ Misses      11001    10850     -151     
- Partials      195      198       +3     
Flag Coverage Δ
javascript 71.69% <60.00%> (+0.38%) ⬆️

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

Impacted Files Coverage Δ
...onfigModal/FiltersConfigForm/FiltersConfigForm.tsx 70.34% <42.85%> (+1.42%) ⬆️
...eFilters/FiltersConfigModal/FiltersConfigModal.tsx 94.80% <100.00%> (+0.21%) ⬆️
superset-frontend/src/components/Icons/Icon.tsx 96.00% <0.00%> (-4.00%) ⬇️
...d/components/DashboardBuilder/DashboardBuilder.tsx 86.95% <0.00%> (-1.42%) ⬇️
superset-frontend/src/views/CRUD/hooks.ts 45.19% <0.00%> (-0.89%) ⬇️
superset-frontend/src/dashboard/actions/hydrate.js 3.30% <0.00%> (-0.06%) ⬇️
superset-frontend/src/views/CRUD/utils.tsx 58.71% <0.00%> (ø)
superset-frontend/src/components/Tabs/Tabs.tsx 96.87% <0.00%> (ø)
superset-frontend/src/SqlLab/reducers/sqlLab.js 34.95% <0.00%> (ø)
superset-frontend/src/components/Alert/index.tsx 100.00% <0.00%> (ø)
... and 21 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 2486fd4...6e1d485. Read the comment docs.

Copy link
Member

@amitmiran137 amitmiran137 left a comment

Choose a reason for hiding this comment

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

LGTM!

formFilter?.filterType,
);

const isCascadingFilter = CASCADING_FILTERS.includes(formFilter?.filterType);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const isCascadingFilter = CASCADING_FILTERS.includes(formFilter?.filterType);
const isCascadingFilterAllowed = CASCADING_FILTERS.includes(formFilter?.filterType);

isClearable
/>
</StyledFormItem>
{isCascadingFilter && (
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{isCascadingFilter && (
{isCascadingFilterAllowed && (

@amitmiran137 amitmiran137 merged commit abbf4bf into apache:master May 2, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request May 3, 2021
* master: (38 commits)
  refactor(native-filters): allow cascading only for filter_select (apache#14441)
  test(maximize-chart): Add tests to maximize chart action (apache#14371)
  fix: fixing mysql error message (apache#14416)
  feat: Logic added to limiting factor column in Query model (apache#13521)
  change relationship (apache#14435)
  fix: bootstrap data permissions (apache#14348)
  fix: parse simple string error message values (apache#14360)
  chore: add stack trace to all calls of logger.error (apache#14382)
  update README with new docs and recordings (apache#14432)
  Renamed impyla from implya in impala.mdx and Renamed PIP package impyla from impala in index.mdx (apache#14425)
  fix(native-filters): fix filter scope error (apache#14426)
  feat: Adding limiting_factor column to Query model (apache#14234)
  feat: Add etag caching to dashboard APIs (apache#14357)
  chore: Moves Card to the components folder (apache#14139)
  feat: Dynamic imports for the Icons component (apache#14318)
  feat: Support env vars configuration for WebSocket server (apache#14398)
  fix: SQLLab role permissions (apache#14372)
  fix(native-filters): always show filters without dataset (apache#14409)
  fix error getting partitionQuery from table.partition (apache#14369)
  refactor: Boostrap to AntD - Tabs (apache#14048)
  ...
amitmiran137 pushed a commit that referenced this pull request May 4, 2021
)

* fix:fix get permission function

* refactor: allow cascading only for filter_select

(cherry picked from commit abbf4bf)
hughhhh pushed a commit that referenced this pull request May 4, 2021
)

* fix:fix get permission function

* refactor: allow cascading only for filter_select
@junlincc junlincc added the dashboard:native-filters Related to the native filters of the Dashboard label May 12, 2021
@junlincc
Copy link
Member

a bit too late, but thanks for making the change! @simcha90 @amitmiran137

cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Sep 8, 2021
…che#14441)

* fix:fix get permission function

* refactor: allow cascading only for filter_select

(cherry picked from commit abbf4bf)
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
…che#14441)

* fix:fix get permission function

* refactor: allow cascading only for filter_select
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
…che#14441)

* fix:fix get permission function

* refactor: allow cascading only for filter_select
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
…che#14441)

* fix:fix get permission function

* refactor: allow cascading only for filter_select
@mistercrunch mistercrunch added 🍒 1.2.0 Cherry-picked to 1.2.0 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 First shipped in 1.3.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 dashboard:native-filters Related to the native filters of the Dashboard size/M v1.2 🍒 1.2.0 Cherry-picked to 1.2.0 🚢 1.3.0 First shipped in 1.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants