-
Notifications
You must be signed in to change notification settings - Fork 27
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
EZP-29979: As a developer I would like to use getLocation method on ContentCreateSuccessView and ContentEditSuccessView #270
Conversation
…ontentCreateSuccessView and ContentEditSuccessView
Co-Authored-By: kmadejski <kmadejski@live.com>
Co-Authored-By: kmadejski <kmadejski@live.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, it breaks when trying to publish a previously saved draft.
I've used dev
env with debug enabled.
Steps:
- Login as admin
- Go to Content
- Start creating a Folder (enter "TestName" as name)
- Save draft
- Publish
It fails with:
Type error: Argument 1 passed to EzSystems\RepositoryForms\Content\View\ContentEditSuccessView::setLocation() must be an instance of eZ\Publish\API\Repository\Values\Content\Location, null given, called in /home/vagrant/ee_demo/vendor/ezsystems/repository-forms/lib/Content/View/Builder/ContentEditViewBuilder.php on line 126
I believe we shouldn't set the location to null there - it should be the location that was created when publish action was executed? (If it's possible).
@mnocon do you see any chance to give it another round of testing? 🙂 |
@kmadejski there is a chance 😉 But you're probably aware that 60% of our QA team is on sick leave and it complicates things a bit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that the ticket mentions ContentCreateSuccessView and ContentEditSuccessView only (and it works correctly for them), but wouldn't it make sense to implement LocationValueView
also for EzSystems\EzPlatformPageBuilder\View\PageView
, EzSystems\EzPlatformFormBuilder\View\FieldConfigurationView
and EzSystems\RepositoryForms\User\View\UserUpdateView
?
This way we would provide unified experience for developers across all these editing views.
Also, ping @DominikaK - not sure if it's something that is doc-worthy.
Good question @mnocon, honestly, I don't know. @ViniTou / @webhdx / @Nattfarinn / @andrerom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed with Kamil - the rest of the Views can be changed in a follow-up ticket (if decided so).
JIRA: https://jira.ez.no/browse/EZP-29979