Skip to content
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

refactor(routes): Remove parentId parameter from page routes #948

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Oct 17, 2023

The parentId has been been superfluous information all the time for all routes except "create new page". If we need the parent, it's better to retrieve it from the pageId instead of trusting the client that they passed the right parentId.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

@mejo- mejo- force-pushed the refactor/page_routes branch 3 times, most recently from 935449d to ec81a64 Compare October 17, 2023 16:17
@mejo- mejo- marked this pull request as ready for review October 17, 2023 16:52
The `parentId` has been been superfluous information all the time for
all routes except "create new page". If we need the parent, it's better
to retrieve it from the `pageId` instead of trusting the client that
they passed the right `parentId`.

Signed-off-by: Jonas <[email protected]>
@mejo- mejo- force-pushed the refactor/page_routes branch from ec81a64 to 4ad8293 Compare October 23, 2023 08:02
@mejo- mejo- merged commit 962fc5b into main Oct 23, 2023
34 of 36 checks passed
@delete-merged-branch delete-merged-branch bot deleted the refactor/page_routes branch October 23, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants