-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
控制台删除附件分组没反应 #2706
Labels
area/console
Issues or PRs related to the Halo Console
kind/bug
Categorizes issue or PR as related to a bug.
Comments
wan92hen
added
kind/bug
Categorizes issue or PR as related to a bug.
area/console
Issues or PRs related to the Halo Console
labels
Nov 15, 2022
/cc @JohnNiang 如果直接删除附件的分组或者策略,那么他们的关联性怎么处理呢。还是目前仅让删除其下没有附件的分组。 |
分组是个逻辑概念,策略影响了实际的存放位置,所以分组和策略的处理方式应该要区分开。 针对分组的删除,我觉得可以在二次确认的时候给两种选择:
|
f2c-ci-robot bot
pushed a commit
to halo-dev/console
that referenced
this issue
Nov 18, 2022
#### What type of PR is this? /kind feature /milestone 2.0 #### What this PR does / why we need it: 支持删除附件分组和存储策略。 删除策略的逻辑为:删除前会根据策略查询附件,如果有附件,则无法删除,否则可以删除。 删除附件的逻辑为: 1. 选择`删除并将附件移动至未分组`时,会在前端批量调用更新附件的接口,将所有附件的 `groupRef` 置空。 2. 选择`删除并同时删除附件`时,会在前端批量调用删除附件接口。 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#2706 #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console 测试方式: 1. 需要执行 `pnpm build:packages` 2. 创建若干存储策略,并在部分存储策略中上传附件,再对存储策略做删除处理,需要满足以下情况: 1. 已包含附件的策略会提示不允许删除。 2. 未包含附件的策略可以删除 3. 创建若干分组,并在部分分组中上传附件,再对分组做删除处理,需要满足以下情况: 1. 选择`删除并将附件移动至未分组`时,检查分组是否被删除,且里面的附件是否已经被移动到未分组。 2. 选择`删除并同时删除附件`时,检查分组是否被删除,且里面的附件是否被删除。 #### Does this PR introduce a user-facing change? <!-- 如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。 否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change), Release Note 需要以 `action required` 开头。 If no, just write "NONE" in the release-note block below. If yes, a release note is required: Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". --> ```release-note 支持删除附件分组和存储策略。 ```
JohnNiang
pushed a commit
to JohnNiang/halo
that referenced
this issue
Mar 2, 2023
…e#695) #### What type of PR is this? /kind feature /milestone 2.0 #### What this PR does / why we need it: 支持删除附件分组和存储策略。 删除策略的逻辑为:删除前会根据策略查询附件,如果有附件,则无法删除,否则可以删除。 删除附件的逻辑为: 1. 选择`删除并将附件移动至未分组`时,会在前端批量调用更新附件的接口,将所有附件的 `groupRef` 置空。 2. 选择`删除并同时删除附件`时,会在前端批量调用删除附件接口。 #### Which issue(s) this PR fixes: Fixes halo-dev#2706 #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console 测试方式: 1. 需要执行 `pnpm build:packages` 2. 创建若干存储策略,并在部分存储策略中上传附件,再对存储策略做删除处理,需要满足以下情况: 1. 已包含附件的策略会提示不允许删除。 2. 未包含附件的策略可以删除 3. 创建若干分组,并在部分分组中上传附件,再对分组做删除处理,需要满足以下情况: 1. 选择`删除并将附件移动至未分组`时,检查分组是否被删除,且里面的附件是否已经被移动到未分组。 2. 选择`删除并同时删除附件`时,检查分组是否被删除,且里面的附件是否被删除。 #### Does this PR introduce a user-facing change? <!-- 如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。 否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change), Release Note 需要以 `action required` 开头。 If no, just write "NONE" in the release-note block below. If yes, a release note is required: Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". --> ```release-note 支持删除附件分组和存储策略。 ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/console
Issues or PRs related to the Halo Console
kind/bug
Categorizes issue or PR as related to a bug.
是什么版本出现了此问题?
2.0.0-beta.1
使用的什么数据库?
H2
使用的哪种方式部署?
Docker
在线站点地址
No response
发生了什么?
控制台删除附件分组,没有发送删除分组的请求。
相关日志输出
No response
附加信息
No response
The text was updated successfully, but these errors were encountered: