-
Notifications
You must be signed in to change notification settings - Fork 305
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
[AMORO-3235] Support action filter by ams backend #3236
Conversation
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.
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.
@majin1102 I got some error when trying to validate this PR in my local environment.
/** Get optimize tables. * @return List of {@link TableOptimizingInfo} */ | ||
public void getOptimizerTables(Context ctx) { | ||
String optimizerGroup = ctx.pathParam("optimizerGroup"); | ||
String dbFilterStr = ctx.queryParam("dbSearchInput"); | ||
String tableFilterStr = ctx.queryParam("tableSearchInput"); | ||
String[] requestedActions = ctx.queryParamAsClass("actions", String[].class).getOrDefault(null); |
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 got following information when trying to ran this PR in my local environment, It seems Javalin cannot parse string array param by default.
[JettyServerThreadPool-44] [io.javalin.Javalin] [] - Can't convert to String[]. Register a converter using JavalinValidation#register.
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.
Sorry for that.
I have tested the new code, PTAL
To be reviewed |
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.
Validated successfully in my local environment.
Why are the changes needed?
Close #3235.
Brief change log
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation