[JIRA] (JENKINS-49965) Slow performance of warnings table if there are 1000 elements
Title: Message Title Ulli Hafner updated an issue Jenkins / JENKINS-49965 Slow performance of warnings table if there are 1000 elements Change By: Ulli Hafner Currently, the whole table is loaded into the clients client's browser using an Ajax call:JS side ([issues-detail.js|https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/webapp/js/issues-detail.js#L308]):{code}var tabToggleLink = $('a[data-toggle="tab"]');tabToggleLink.on('show.bs.tab', function (e) {var activeTab = $(e.target).attr('href');if (activeTab === (id + 'Content') && dataTable.data().length === 0) {view.getTableModel(id, function (t) { (function ($) { var table = $(id).DataTable(); table.rows.add(t.responseObject().data).draw() })(jQuery);});}});{code}Java side ([IssuesDetail|https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/core/model/IssuesDetail.java#L210]):{code} /** * Returns the UI model for the specified table. * * @param id * the ID of the table * * @return the UI model as JSON */@_javascript_Method@SuppressWarnings("unused") // Called by jelly viewpublic JSONObject getTableModel(final String id) {List> rows;if ("#issues".equals(id)) {rows = getIssuesModel().getContent(getIssues());}else {rows = getScmModel().getContent(getIssues());}return toJsonArray(rows);}{code}Pagination is currently only available on the client side:{code}var dataTable = table.DataTable({language: {emptyTable: "Loading - please wait ..."},pagingType: 'numbers', // Page number button onlyorder: [[1, 'asc']],columnDefs: [{targets: 0, // First column contains details buttonorderable: false}]});{code}For a larger number of issues it would make sense to replace this part of the code with a server side pagination:* Client rather requests the content of the selected page* Server returns a page of the current results (staring at the given position, using a given page size)
[JIRA] (JENKINS-49965) Slow performance of warnings table if there are 1000 elements
Title: Message Title Ulli Hafner updated an issue Jenkins / JENKINS-49965 Slow performance of warnings table if there are 1000 elements Change By: Ulli Hafner Currently, the whole table is loaded into the clients browser using an Ajax call:JS side ([issues-detail.js|https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/webapp/js/issues-detail.js#L308]):{code}var tabToggleLink = $('a[data-toggle="tab"]');tabToggleLink.on('show.bs.tab', function (e) {var activeTab = $(e.target).attr('href');if (activeTab === (id + 'Content') && dataTable.data().length === 0) {view.getTableModel(id, function (t) { (function ($) { var table = $(id).DataTable(); table.rows.add(t.responseObject().data).draw() })(jQuery);});}});{code}Java side ([IssuesDetail|https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/core/model/IssuesDetail.java#L210]):{code} /** * Returns the UI model for the specified table. * * @param id * the ID of the table * * @return the UI model as JSON */@_javascript_Method@SuppressWarnings("unused") // Called by jelly viewpublic JSONObject getTableModel(final String id) {List> rows;if ("#issues".equals(id)) {rows = getIssuesModel().getContent(getIssues());}else {rows = getScmModel().getContent(getIssues());}return toJsonArray(rows);}{code}Pagination is currently only available on the client side:{code}var dataTable = table.DataTable({language: {emptyTable: "Loading - please wait ..."},pagingType: 'numbers', // Page number button onlyorder: [[1, 'asc']],columnDefs: [{targets: 0, // First column contains details buttonorderable: false}]});{code}For a larger number of issues it would make sense to replace this part of the code with a server side pagination:* Client rather requests the content of the selected page* Server returns a page of the current results (staring at the given position, using a given page size)
[JIRA] (JENKINS-49965) Slow performance of warnings table if there are 1000 elements
Title: Message Title Ulli Hafner updated an issue Jenkins / JENKINS-49965 Slow performance of warnings table if there are 1000 elements Change By: Ulli Hafner Issue Type: Bug Improvement Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49965) Slow performance of warnings table if there are 1000 elements
Title: Message Title Ulli Hafner updated an issue Jenkins / JENKINS-49965 Slow performance of warnings table if there are 1000 elements Change By: Ulli Hafner Component/s: warnings-ng-plugin Component/s: analysis-core-plugin Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49965) Slow performance of warnings table if there are 1000 elements
Title: Message Title Ulli Hafner created an issue Jenkins / JENKINS-49965 Slow performance of warnings table if there are 1000 elements Issue Type: Bug Assignee: Ulli Hafner Components: analysis-core-plugin Created: 2018-03-06 21:53 Priority: Minor Reporter: Ulli Hafner Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google