Commit c6dfdc4
authored
Use commands for article actions (#6415)
* Introduce the command `PublishArticle`
* Introduce the command `RestoreArticle`
* Introduce the command `SoftDeleteArticle`
* Introduce the command `UnpublishArticle`
* Introduce the command `SetArticleCategory`
* Endpoint and command to mark all article or one article as read
* Use the commands `EnableI18n` and `DisableI18n`
* Use the command `ResetUserStorageForUnreadArticles`
* Remove unused ACP Article InlineEditor
* Remove the `unmarkItems` method, as the clipboard no longer exists for Article.
* Apply code suggestions.
Adjustment of corresponding files and references
* Mark `validate…` methods as deprecated
* Make command members private
* Commands should not check whether a condition is true or not, just execute the action. The caller of this command must ensure that the conditions are correct.1 parent 9f574d7 commit c6dfdc4
File tree
29 files changed
+603
-1003
lines changed- ts/WoltLabSuite/Core
- Acp/Ui/Article
- Api/Articles
- Ui/Article
- wcfsetup/install/files
- js/WoltLabSuite/Core
- Acp/Ui/Article
- Api/Articles
- Ui/Article
- lib
- acp
- action
- form
- bootstrap
- command/article
- data/article
- event/article
- page
- system
- endpoint/controller/core/articles
- user/notification/event
29 files changed
+603
-1003
lines changedThis file was deleted.
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 0 additions & 344 deletions
This file was deleted.
0 commit comments