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
Provide sort query param for sorting attachment #2705
Conversation
Signed-off-by: John Niang <johnniang@fastmail.com>
Signed-off-by: John Niang <johnniang@fastmail.com>
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
使用此 PR 会导致 Console 端插件管理列表的接口异常:
/hold |
与此 PR 无关。 /unhold |
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
#### What type of PR is this? /kind feature /milestone 2.0 #### What this PR does / why we need it: 附件管理支持排序筛选,适配:halo-dev/halo#2705 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#2627 #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console 测试方式: 1. Halo 需要切换到 halo-dev/halo#2705 分支。 2. Console 需要 `pnpm install` 3. 上传若干附件,检查排序筛选之后的结果是否符合预期。 #### Does this PR introduce a user-facing change? ```release-note 附件管理支持排序筛选 ```
#### What type of PR is this? /kind feature /milestone 2.0 #### What this PR does / why we need it: 附件管理支持排序筛选,适配:halo-dev#2705 #### Which issue(s) this PR fixes: Fixes halo-dev#2627 #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console 测试方式: 1. Halo 需要切换到 halo-dev#2705 分支。 2. Console 需要 `pnpm install` 3. 上传若干附件,检查排序筛选之后的结果是否符合预期。 #### Does this PR introduce a user-facing change? ```release-note 附件管理支持排序筛选 ```
What type of PR is this?
/kind feature
/area core
/milestone 2.0
What this PR does / why we need it:
Provide sort query param for sorting attachment. By default, we use creationTimestamp(desc) to sort the attachments.
Below is an example to sort with creationTimestamp(desc) and size(asc):
Which issue(s) this PR fixes:
Fixes #2627
Does this PR introduce a user-facing change?