Skip to content

Conversation

@landryb
Copy link
Contributor

@landryb landryb commented Apr 9, 2025

appeases java apps proxying superset

modeled after the query listing roles done by the same page, eg:
/api/v1/security/roles/search/?q=(order_column:name,order_direction:desc,page:0,page_size:25)

SUMMARY

with #32432, two queries sent by the react page are invalid urls and confuse a java-based proxy.

cf #32432 (comment) and georchestra/superset#13

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

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

appeases java apps proxying superset

modeled after the query listing roles done by the same page, eg:
/api/v1/security/roles/search/?q=(order_column:name,order_direction:desc,page:0,page_size:25)
Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Security Unsafe URL Parameter Interpolation ▹ view 🧠 Not in scope
Files scanned
File Path Reviewed
superset-frontend/src/pages/RolesList/index.tsx

Explore our documentation to understand the languages and file types we support and the files we ignore.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • On any given comment that Korbit raises on your pull request, you can have a discussion with Korbit by replying to the comment.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Feedback and Support

Comment on lines 164 to 169
const fetchPage = async (pageIndex: number) => {
const response = await SupersetClient.get({
endpoint: `api/v1/security/users/?q={"page_size":${pageSize},"page":${pageIndex}}`,
endpoint: `api/v1/security/users/?q=(page_size:${pageSize},page:${pageIndex})`,
});
return response.json;
};

This comment was marked as resolved.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'm pretty sure the above automated review feedback also applied to the previously existing code, so i'm not going to take it into account...

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

Copy link
Contributor

@EnxDev EnxDev left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@geido geido merged commit 31ac389 into apache:master Apr 9, 2025
61 checks passed
landryb added a commit to georchestra/ansible that referenced this pull request Apr 10, 2025
#140)

the branch is rebased on top of upstream's master, ahead of 5.0.0rc2,
and includes:
- apache/superset#30134 (deploy under a prefix)
- apache/superset#33059 (missing prune.py)
- apache/superset#33060 (fix invalid query strings on role list page)

assets have been rebuilt with SCARF_ANALYTICS=false in the env,
thus the tracking pixel is correctly disabled (cf georchestra/superset#1)
@michael-s-molina michael-s-molina added v5.0 Label added by the release manager to track PRs to be included in the 5.0 branch and removed v5.0 Label added by the release manager to track PRs to be included in the 5.0 branch labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants