-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
[Bugfix] Too many embedded layers cause php to hit max_execution_time #4093
Conversation
bd5c234
to
b4c0680
Compare
I guess it should be backported to 3.7 right ? 3.6 as well ? |
I think 3.7. Don't know for 3.6 Thanks a lot |
I ran cy.get('.liz-project-title:contains("Test tags: nature, flower")')
.prev('.liz-project')
.children('.liz-project-desc').as('all-metadata') //<------- fails to get children('.liz-project-desc') Should I update the test file too? Seems not related to this pr. |
the same on this pr #4024 |
It's a work in progress already, you can skip this failing test. |
b4c0680
to
133c994
Compare
133c994
to
e8a3eec
Compare
can you please wait to merge this one? I've found another part that cause the same issue, pretty much the same behavior, and I would try to fix that part too. |
e8a3eec
to
f6e5a76
Compare
46704be
to
8a272a4
Compare
@mind84 you have requested to do not merged. You have marked the PR as Ready to review, yesterday. It is really ready to review and merged ? |
Yes, I've done all changes, thanks |
8a272a4
to
0682f07
Compare
i remove my approval, need to review the changes |
0682f07
to
a8464eb
Compare
7efff39
to
9ce7a9d
Compare
Let us know when this PR is finished, so the review can be done, we see you are still pushing on the branch |
9ce7a9d
to
c21d33f
Compare
c21d33f
to
ccb7f0e
Compare
The code is not changed since @rldhont approval |
There a lot of merged PR today, do not worry for now about all these latest commits. |
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.
Thanks a lot
There are cases where a project might embed several layers from another project.
In this scenario Lizmap loads the same project (embedded project) multiple times for each of these layers and this behavior could cause php to hit
max_execution_time
if there are many embedded layers.To fix that I've grouped the embedded layers and load the related QGIS embedded project once.
Test note
I haven't add php unit tests since seems to me that the current tests already covers this changes. Of course, if you think that more tests are needed, I'll add them.
Funded by Faunalia