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

fix(Embedded): Avoid creating a filter key for guest users #26312

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

Vitor-Avila
Copy link
Contributor

SUMMARY

Dashboard filter combinations are persisted in Superset through a URL parameter. This functionality is currently not compatible with Embedded (the dashboard doesn't emit a generated filter key up to the application that could be re-used in a refresh) so this PR removes the logic to write a filter key for embedded users.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

No UI changes.

TESTING INSTRUCTIONS

  1. Load a dashboard that contains filters in embedded mode.
  2. Validate that the embedded user is still able to apply filter combinations.
  3. Inspect the browser and validate through the Network tab that a request to /api/v1/dashboard/{{DashboardID}}/filter_state?tab_id={{TabID}} isn't being fired.

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

@Vitor-Avila
Copy link
Contributor Author

@michael-s-molina this is implementing your feedback from #25687. Let me know if you have any concerns or feedback! 🙏 🙇‍♂️

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (90a3d68) 69.18% compared to head (ce5810f) 69.18%.
Report is 10 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #26312   +/-   ##
=======================================
  Coverage   69.18%   69.18%           
=======================================
  Files        1945     1945           
  Lines       75967    75984   +17     
  Branches     8467     8476    +9     
=======================================
+ Hits        52556    52570   +14     
  Misses      21224    21224           
- Partials     2187     2190    +3     
Flag Coverage Δ
javascript 56.52% <100.00%> (+0.01%) ⬆️

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.

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

LGTM

@rusackas rusackas merged commit fe9fbad into apache:master Dec 27, 2023
30 checks passed
@michael-s-molina michael-s-molina changed the title chore(Embedded): Avoid creating a filter key for guest users fix(Embedded): Avoid creating a filter key for guest users Dec 27, 2023
@michael-s-molina michael-s-molina added v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch labels Dec 27, 2023
michael-s-molina pushed a commit that referenced this pull request Dec 27, 2023
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
(cherry picked from commit fe9fbad)
michael-s-molina pushed a commit that referenced this pull request Dec 27, 2023
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
(cherry picked from commit fe9fbad)
josedev-union pushed a commit to Ortege-xyz/studio that referenced this pull request Jan 22, 2024
…26312)

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
(cherry picked from commit fe9fbad)
@mistercrunch mistercrunch added 🍒 3.0.3 🍒 3.0.4 🍒 3.1.0 🍒 3.1.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Mar 8, 2024
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
…26312)

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
…26312)

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
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/S v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch 🍒 3.0.3 🍒 3.0.4 🍒 3.1.0 🍒 3.1.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants