Skip to content

Custom urls without phpcr (Admin Panel) #7570

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

Open
wants to merge 12 commits into
base: 3.0
Choose a base branch
from

Conversation

mamazu
Copy link
Contributor

@mamazu mamazu commented Aug 23, 2024

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets closes #7566
Related issues/PRs -
License MIT
Documentation PR -

What's in this PR?

Replacing the custom url implementation of phpcr with some doctrine entities.

Why?

phpcr should be removed in the next major version and we can really simplify the logic here.

Todo

Admin (Prio 1)

  • Path cleanup (eg. * will be replaced with -)
  • Don't add url to history if it's already in there
  • Fix serialization
  • Performance Tests
  • Fix and write new tests

@mamazu mamazu marked this pull request as draft August 23, 2024 09:22
@mamazu mamazu changed the base branch from 2.6 to 3.0 August 23, 2024 09:22
@mamazu mamazu force-pushed the custom-urls-without-phpcr branch 11 times, most recently from 021bead to 0201ae6 Compare August 29, 2024 18:42
@mamazu mamazu force-pushed the custom-urls-without-phpcr branch 3 times, most recently from be94c3e to 28f8007 Compare September 6, 2024 14:23
@mamazu mamazu force-pushed the custom-urls-without-phpcr branch from 703af71 to 088c517 Compare September 6, 2024 18:26
@mamazu mamazu force-pushed the custom-urls-without-phpcr branch 5 times, most recently from 81d25db to 129c7b7 Compare September 16, 2024 10:42
Comment on lines +66 to +68
<custom-urls>
<custom-url>localhost/*</custom-url>
</custom-urls>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove before merging.

@mamazu mamazu force-pushed the custom-urls-without-phpcr branch 2 times, most recently from eba27cb to 44bb7b6 Compare October 3, 2024 16:10
@mamazu mamazu force-pushed the custom-urls-without-phpcr branch from 44bb7b6 to 6b6ae67 Compare October 20, 2024 15:51
@mamazu mamazu force-pushed the custom-urls-without-phpcr branch from cffa861 to cea63a4 Compare January 8, 2025 12:54
/**
* @internal
*/
final class CustomUrlTrashSubscriber implements EventSubscriberInterface
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nothing CustomUrl specific. Maybe this makes sense to move to the trash bundle itself.

@mamazu mamazu force-pushed the custom-urls-without-phpcr branch 2 times, most recently from 30a03d1 to 6427a30 Compare June 19, 2025 14:14
@mamazu
Copy link
Contributor Author

mamazu commented Jun 19, 2025

Also, I'm currently copying over request/response JSON from the 2.6 branch to keep the Backwards compatibility and I notice that the endpoint also returns a 200 in case of an error and then just a JSON with the error information:
image

Do we want to keep that behavior? Or risk a BC break for this?

@alexander-schranz
Copy link
Member

notice that the endpoint also returns a 200 in case of an error

Sure should be then a 4** status code to show a proper error messag ein the frontend.

@mamazu mamazu force-pushed the custom-urls-without-phpcr branch 9 times, most recently from 776a63f to a8e604c Compare June 26, 2025 10:15
@mamazu mamazu force-pushed the custom-urls-without-phpcr branch 2 times, most recently from d837730 to 67d541e Compare June 26, 2025 12:50
@mamazu mamazu force-pushed the custom-urls-without-phpcr branch from 67d541e to 02a8716 Compare June 26, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CustomUrl without PHPCR
3 participants