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

希望附件分组可以按照创建时间排序 #5429

Closed
admin10101010 opened this issue Mar 2, 2024 · 9 comments · Fixed by #5495
Closed

希望附件分组可以按照创建时间排序 #5429

admin10101010 opened this issue Mar 2, 2024 · 9 comments · Fixed by #5495
Assignees
Labels
kind/improvement Categorizes issue or PR as related to a improvement.
Milestone

Comments

@admin10101010
Copy link

Your current Halo version

2.13.0

Describe this feature

更新到最新的2.13.0版本后
附件选项中的附件库从原本的按照新建附件库的顺序排列变成了随机排列,在把上传的附件归类起来的时候还需要找半天,希望可以恢复为按照新建附件库的顺序进行排列。
或者将附件的排列功能一并添加到附件库(文件夹),便于对上传的附件进行归类整理。

Additional information

No response

@JohnNiang
Copy link
Member

Hi @admin10101010 , thank you for reaching out here!

目前,我这边无法复现这个问题。请看下面的截图:
image

默认的排序方式:附件创建时间降序排列。

/triage needs-information

@f2c-ci-robot f2c-ci-robot bot added the triage/needs-information Indicates an issue needs more information in order to work on it. label Mar 4, 2024
@guqing
Copy link
Member

guqing commented Mar 4, 2024

你说的”按照新建附件库的顺序“ 是说的目前附件分组的顺序不固定吗还是什么,很难理解你说的这段话,附件管理中有三个部分组成,附件存储策略(比如存储在本地或者OSS的这个)、附件分组(通过分组归类图片)和附件(文件)组成,希望可以明确一下你说的是哪个部分顺序有问题

@admin10101010
Copy link
Author

请看此截图,意思就是存储附件的文件夹不能进行排序,新建一个文件夹后需要从众多的文件夹中翻到新建的文件夹,才能把对应文章的附件移动到新建的文件夹内,这极度不方便。
在更新之前默认是新建的文件夹排列在最后/最前。
是按照创建时间进行排序的。
image

@guqing
Copy link
Member

guqing commented Mar 4, 2024

我测试了 2.11 版本,附件分组的排序也是不固定的与 2.13.0 版本无关,之前是想着分组不会太多不关心顺序,可以将附件分组按照创建时间排序

/kind improvement
/retitle 希望附件分组可以按照创建时间排序

@f2c-ci-robot f2c-ci-robot bot added the kind/improvement Categorizes issue or PR as related to a improvement. label Mar 4, 2024
@f2c-ci-robot f2c-ci-robot bot changed the title 附件:附件库排序变成了随机排序,请求恢复按照新建顺序排列/自定义排列 希望附件分组可以按照创建时间排序 Mar 4, 2024
@guqing
Copy link
Member

guqing commented Mar 4, 2024

/remove-triage needs-information

@f2c-ci-robot f2c-ci-robot bot removed the triage/needs-information Indicates an issue needs more information in order to work on it. label Mar 4, 2024
@admin10101010
Copy link
Author

我是跨版本更新的,单篇文章的附件,例如截图之类的很多,会按照文章名进行分类,或许很快就会超过数百篇及更多。
希望在下个版本可以恢复排序。
如果文章发布后,文章内的图片有自动添加水印的功能更好,感谢回复。

@guqing
Copy link
Member

guqing commented Mar 4, 2024

如果文章发布后,文章内的图片有自动添加水印的功能更好

不错的想法 👍,你可以单独提一个 issue 讨论一下

@guqing
Copy link
Member

guqing commented Mar 6, 2024

/milestone 2.14.x
/assign

@f2c-ci-robot f2c-ci-robot bot added this to the 2.14.x milestone Mar 6, 2024
@guqing
Copy link
Member

guqing commented Mar 6, 2024

/remove-assign @guqing
/assign @ruibaby

附件分组是单独的 API 已经支持按照创建时间排序不需要后端修改,只需要在前端调用时增加排序参数即可

@guqing guqing removed their assignment Mar 6, 2024
f2c-ci-robot bot pushed a commit that referenced this issue Mar 11, 2024
#### What type of PR is this?

/area ui
/kind bug
/milestone 2.14.0

#### What this PR does / why we need it:

为附件分组设置默认排序规则(按照创建时间升序),和 2.13.0 版本之间保持一致。

#### Which issue(s) this PR fixes:

Fixes #5429

#### Special notes for your reviewer:

测试方式:

1. 创建若干附件分组。
2. 观察排序是否符合预期。

#### Does this PR introduce a user-facing change?

```release-note
修复附件管理中的分组排序不固定的问题。
```
@ruibaby ruibaby modified the milestones: 2.14.x, 2.14.0 Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement Categorizes issue or PR as related to a improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants