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

chore(utils): Support select_columns with getUserOwnedObjects and split recentActivityObjs #29459

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

Vitor-Avila
Copy link
Contributor

SUMMARY

This PR adds support for specifying a list of columns to be used in the select_columns parameter with the getUserOwnedObjects helper.

It also splits the getRecentActivityObjs so that the logic to fetch dashboards and charts is handled by a separate helper: getFilteredChartsandDashboards. This new helper also supports specifying values for the select_columns parameters (both for the chart and dashboard requests).

These parameters are all optional, so it shouldn't impact any existing call/implementation. Please refer to #28609 for additional context on the select_columns parameter.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

No UI changes.

TESTING INSTRUCTIONS

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

@dosubot dosubot bot added the change:frontend Requires changing the frontend label Jul 2, 2024
Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

LGTM

@Vitor-Avila Vitor-Avila force-pushed the utils-improvements branch from c3e7e21 to 15567d5 Compare July 3, 2024 12:29
@Vitor-Avila Vitor-Avila merged commit 4e861cf into apache:master Jul 4, 2024
34 checks passed
eschutho pushed a commit that referenced this pull request Jul 24, 2024
@github-actions github-actions bot added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 labels Nov 14, 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 change:frontend Requires changing the frontend size/M 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants