-
Notifications
You must be signed in to change notification settings - Fork 16.5k
fix(list roles): dont send invalid querystrings #33060
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
Conversation
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)
There was a problem hiding this 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 |
|---|---|---|
| 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-reviewon 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-reviewcommand in a comment at the root of your PR.- You can ask Korbit to generate a new PR description using the
/korbit-generate-pr-descriptioncommand in any comment on your PR.- Too many Korbit comments? I can resolve all my comment threads if you use the
/korbit-resolvecommand 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
| 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.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EnxDev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
#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)
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