[XWI-128] Select wiki to create main pages when creating new pages - #24601
[XWI-128] Select wiki to create main pages when creating new pages#24601shiroginne wants to merge 2 commits into
Conversation
as a create page root element.
| WikiPage.visible(user).find_by(id: identifier) | ||
| def create_root_page(input_data, user:) | ||
| wiki = Wiki.find_by(id: input_data.parent_identifier) | ||
| return failure(code: :not_found) unless wiki&.visible?(user) |
There was a problem hiding this comment.
🟢 Isn't there a visible scope available for Wiki so that the finding could already be done as Wiki.visible.find_by?
That's a bug for the internal provider; I'll made a fix for it 😅 |
When we were discussing this ticket with @Kharonus, he showed me an example: here is the search by the pages; I see that the page has a parent; I need to be able to search by parent and choose it. I hope I got it right. And the implementation is reflecting it. I think it's a nice feature; for example: you forgot the name of the parent page, but you remember the page name, you search for the page and then choose the parent as a parent for a new page 🤔 |



Ticket
XWI-128
What are you trying to accomplish?
This ticket implements 2 new things:
Screenshots
What approach did you choose and why?
Merge checklist