Conversation
77be0ae to
235649a
Compare
bd18443 to
073c47b
Compare
| $this->getParentPageId($newFile), | ||
| $userId, | ||
| $this->userManager->getDisplayName($userId)); | ||
| $slug = $title ? $this->slugger->slug($title)->toString() : null; |
There was a problem hiding this comment.
I wonder whether we had the condition to not set slugs for the landing page.
There was a problem hiding this comment.
Ah sorry, just saw later that you moved the slug creation into updatePage(). Still better to check if it still works exected when updating the landing page.
psalm.xml
Outdated
| <referencedClass name="OCA\Richdocuments\Db\WopiMapper" /> | ||
| </errorLevel> | ||
| </UndefinedClass> | ||
| <UndefinedInterfaceMethod> |
There was a problem hiding this comment.
Interesting, I wonder why this is necessary. You didn't add a call to Node::getContent() in your commit and it is part of the public API 🤔
I'd say no, we don't want new directories to become "pages" automatically. |
Can you elaborate on that? |
fa4618a to
1ab198f
Compare
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
6f7f9aa to
91142d7
Compare
| return; | ||
| } | ||
|
|
||
| $this->pageMapper->deleteByFileId($node->getId()); |
There was a problem hiding this comment.
@mejo- should we hard delete page or just set trashed timestamp to use softdelete? I guess it's better to preserve page id in order to not break references
203b325 to
52e8de1
Compare
| if (!$table->hasIndex('collectives_pages_c_id_idx')) { | ||
| $table->addIndex(['collective_id'], 'collectives_pages_c_id_idx'); |
There was a problem hiding this comment.
@mejo- WDYT about adding composite collective_id, trash_timestamp instead of just collective_id?
52e8de1 to
0c0aad0
Compare
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
0c0aad0 to
40cede4
Compare
📝 Summary
🚧 Work in progress
🖼️ Screenshots
🚧 TODO
collective_id, trash_timestampinstead of justcollective_id❓\OCA\Collectives\Controller\PublicPageController::index🚧\OCA\Collectives\Controller\PublicPageController::index🚧\OCA\Collectives\Controller\PageController::index⏳🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)