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-3139] Improve list content of optimizing page #3201

Merged
merged 5 commits into from
Oct 12, 2024

Conversation

chouchouji
Copy link
Contributor

Why are the changes needed?

Link issue #3139.

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)

@github-actions github-actions bot added the module:ams-dashboard Ams dashboard module label Sep 18, 2024
@chouchouji chouchouji marked this pull request as draft September 18, 2024 03:38
@chouchouji chouchouji marked this pull request as ready for review September 18, 2024 12:36
@chouchouji chouchouji marked this pull request as draft September 18, 2024 12:37
@chouchouji chouchouji marked this pull request as ready for review September 27, 2024 03:27
Copy link
Contributor

@majin1102 majin1102 left a comment

Choose a reason for hiding this comment

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

Hi, chouchouji

Thanks for your contribution.
I left some comments, and I have spiltted the original issue into more subtasks so that front and backend could better follow up.
I suggest you make this PR clean to this subtask: #3234

And of course, the work you have done will not be wasted, we shall push sub-sequencial issues to catch up.

amoro-web/mock/modules/optimize.js Outdated Show resolved Hide resolved
export function getOptimizerTableList(
params: {
optimizerGroup: string
dbSearchInput: string
tableSearchInput: string
page: number
pageSize: number
action: string[]
sortField: string
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we shall need sortField as well as sortOrder for ordering feature.

Anyway Let's postpone this sort feature for now(preserve action) and keep this PR as clean as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean I should keep action and remove sortField?

Copy link
Contributor

@majin1102 majin1102 Oct 11, 2024

Choose a reason for hiding this comment

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

yes, or you could add a sortOrder to mark 'asend' or 'descend'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we don't need sortOrder now, I will delete it.

amoro-web/src/types/common.type.ts Outdated Show resolved Hide resolved
amoro-web/src/utils/table.ts Show resolved Hide resolved
amoro-web/src/views/optimize/components/List.vue Outdated Show resolved Hide resolved
@majin1102
Copy link
Contributor

The backend work is: #3236

@chouchouji
Copy link
Contributor Author

@majin1102 Thanks for your review! I had updated code. Please check it when you are free.

Copy link
Contributor

@majin1102 majin1102 left a comment

Choose a reason for hiding this comment

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

Thanks for feeding back
I left one comment, PTAL

Copy link
Contributor

@majin1102 majin1102 left a comment

Choose a reason for hiding this comment

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

LGTM

@majin1102 majin1102 merged commit 4e7fc9b into apache:master Oct 12, 2024
1 check passed
@chouchouji chouchouji deleted the feature-3139 branch October 12, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:ams-dashboard Ams dashboard module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants