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

refactor: Removes the filters set feature #26369

Merged

Conversation

michael-s-molina
Copy link
Member

@michael-s-molina michael-s-molina commented Dec 27, 2023

SUMMARY

As part of the 4.0 approved initiatives, this PR removes the Filters Set feature including the deprecated DASHBOARD_NATIVE_FILTERS_SET feature flag and all related API endpoints. The feature is permanently removed as it was not being actively maintained, it was not widely used, and it was full of bugs. We also considered that if we were to provide a similar feature, it would be better to re-implement it from scratch given the amount of technical debt that the current implementation has.

The previous value of the feature flag was False and now the feature is permanently removed.

TESTING INSTRUCTIONS

CI should be sufficient for merging this PR. We'll do a complete testing of 4.0 after all approved proposals are merged.

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

@michael-s-molina michael-s-molina added risk:breaking-change Issues or PRs that will introduce breaking changes hold! On hold v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch labels Dec 27, 2023
Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (7ca6d8c) 69.18% compared to head (8e1734b) 69.06%.

Files Patch % Lines
...nd/src/dashboard/components/nativeFilters/utils.ts 20.00% 5 Missing and 3 partials ⚠️
...d/components/DashboardBuilder/DashboardBuilder.tsx 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #26369      +/-   ##
==========================================
- Coverage   69.18%   69.06%   -0.13%     
==========================================
  Files        1948     1931      -17     
  Lines       76036    75355     -681     
  Branches     8478     8431      -47     
==========================================
- Hits        52604    52042     -562     
+ Misses      21265    21165     -100     
+ Partials     2167     2148      -19     
Flag Coverage Δ
hive 53.58% <ø> (-0.11%) ⬇️
javascript 56.47% <18.18%> (-0.05%) ⬇️
mysql 77.88% <ø> (-0.16%) ⬇️
postgres 77.98% <ø> (-0.19%) ⬇️
presto 53.53% <ø> (-0.11%) ⬇️
python 82.73% <ø> (-0.13%) ⬇️
sqlite 77.57% <ø> (-0.19%) ⬇️
unit 55.81% <ø> (-0.08%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michael-s-molina michael-s-molina marked this pull request as ready for review January 5, 2024 18:52
@michael-s-molina michael-s-molina requested a review from a team as a code owner January 5, 2024 18:52
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM. Slightly sad to see this go, but maybe we can reuse our learnings from this POC if this feature request comes up again.

Comment on lines 33 to 43
module = import_module(
"superset.migrations.versions.2021-03-29_11-15_3ebe0993c770_filterset_table"
)


def upgrade():
module.downgrade()


def downgrade():
module.upgrade()
Copy link
Member

Choose a reason for hiding this comment

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

Nice, it never occurred to me we could do something like this 👍

Copy link
Member

Choose a reason for hiding this comment

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

I ❤️ DRY code.

@michael-s-molina michael-s-molina merged commit 9387c4c into apache:master Jan 16, 2024
35 checks passed
@michael-s-molina michael-s-molina removed the hold! On hold label Jan 16, 2024
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.0.0 labels Apr 17, 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 risk:breaking-change Issues or PRs that will introduce breaking changes size/XXL v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants