[#73354] add deletion confirmation dialog for page links#23193
Conversation
…to implementation/73354-add-deletion-action-to-wiki-page-link
- https://community.openproject.org/work_packages/73354 - add confirmation dialog component - add delete action and controller - add action to permission - add page link data to page info object - add additional routes - NOT ADDED: deletion service
6ad6a9e to
75a9c95
Compare
…to implementation/73354-add-deletion-action-to-wiki-page-link
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
NobodysNightmare
left a comment
There was a problem hiding this comment.
I left some review comments.
From a high level, I am not sure how much I like the idea of adding page_link to the page_info. I see that it was necessary to make link building easier (versus building a link from provider and identifier), but what I see critical is that we now have two classes of PageInfo objects. Those with a link and those without.
Adding to that is that not all places that could add a page link to the page info also do add it. For example the ReferencingPageLinks from the internal provider omit them. Do they do this, because we knew that not all future callers will be able to do so and this way we are just much more consistent in our results? Or did they do it, because they knew that the receivers would not need the page link?
- revert page link addition to page info result
- add authorisation check for deletion action
NobodysNightmare
left a comment
There was a problem hiding this comment.
LGTM. I did a final click test and this also looks good. Later on we can discuss whether we want to include some additional context in the dialog, because right now it's not as helpful as it could be and very much only whitespace:
E.g. we could repeat the name of the page that's being linked to. But that's certainly something for "later".
Ticket
73354
What are you trying to accomplish?
What approach did you choose and why?
Hint
This PR is based on #23142, so the changes of the other still polutes the diff. Please review and merge the other first.
The major focus of this PR and the discussion involed is:
page_link_componentvalidate the input it gets? e.g. if there an action refined:remove, but the page info does not contain a page link entity, should we raise a meaningful message?