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

[AMORO-3235] Support action filter by ams backend #3236

Merged
merged 9 commits into from
Oct 14, 2024

Conversation

majin1102
Copy link
Contributor

@majin1102 majin1102 commented Oct 8, 2024

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

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@majin1102 majin1102 changed the title Support action filter by ams backend [AMORO-3235] Support action filter by ams backend Oct 8, 2024
@majin1102 majin1102 requested a review from baiyangtx October 8, 2024 12:39
Copy link
Contributor

@zhoujinsong zhoujinsong left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@zhoujinsong zhoujinsong left a 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);
Copy link
Contributor

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.

Copy link
Contributor Author

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

@majin1102
Copy link
Contributor Author

@majin1102 I got some error when trying to validate this PR in my local environment.

To be reviewed

Copy link
Contributor

@zhoujinsong zhoujinsong left a 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.

@zhoujinsong zhoujinsong merged commit ba47df7 into apache:master Oct 14, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:ams-server Ams server module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Subtask]: Support action filter by ams backend
3 participants