-
Notifications
You must be signed in to change notification settings - Fork 351
Fix profiler tab with new content structure #7999
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
Conversation
{{ self.table_row('class', collector.data('structure').objectClass) }} | ||
{{ self.table_row('path', collector.data('structure').path) }} | ||
{{ self.table_row('nodeType', collector.data('structure').nodeType) }} | ||
{{ self.table_row('internal', collector.data('structure').internal ? 'yes' : 'no') }} |
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.
Is there already something like "internal" in the new system?
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.
No this is still missing 😞
f60653a
to
d2d35c0
Compare
@Prokyonn You're the expert on the new content structure. Can you have a look at this and tell me if this migration is correct? |
$structureObject = $params['structure']; | ||
if ($request->attributes->has('object')) { | ||
$object = $request->attributes->get('object'); | ||
if ($object instanceof PageDimensionContent) { |
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 think we should make it more flexible, so that it works also for custom content-bundle entities.
So we should check the interfaces individually, e.g.
instanceof WorkflowInterface --> getWorkflowPublished
instanceof ShadowInterface --> shadowLocales
instanceof WebspaceInterface --> webspace
instanceof TemplateInterface --> template
....
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.
Yes makes sense. I did that. Can you check if it's modular enough?
5843427
to
af31254
Compare
1e6aa85
to
a701d8f
Compare
@mamazu Thank you! |
What's in this PR?
Updating the profiler bar to use the new content entity.
Why?
Otherwise the profiler bar will just be empty.