8000 minor #26270 [WebProfilerBundle] limit ajax request to 100 and remove… · symfony/symfony@4a9e5c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a9e5c7

Browse files
minor #26270 [WebProfilerBundle] limit ajax request to 100 and remove the last one (Simperfit)
This PR was merged into the 3.4 branch. Discussion ---------- [WebProfilerBundle] limit ajax request to 100 and remove the last one | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | none fix merge | License | MIT Merging back the bugfix to 3.4. Commits ------- 33bace4 [WebProfilerBundle] limit ajax request to 100 and remove the last one
2 parents b953e85 + 33bace4 commit 4a9e5c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@
122122
return;
123123
}
124124
125+
var nbOfAjaxRequest = tbody.rows.count();
126+
if (nbOfAjaxRequest >= 100) {
127+
tbody.deleteRow(nbOfAjaxRequest - 1);
128+
}
129+
125130
var request = requestStack[index];
126131
pendingRequests++;
127132
var row = document.createElement('tr');

0 commit comments

Comments
 (0)
0