Merge pull request #8241 from andrej-scinote/aj_SCI_11571

Fix full view repository table on tasks data fetching [SCI-11571]
This commit is contained in:
andrej-scinote 2025-02-14 12:50:52 +01:00 committed by GitHub
commit 31de10d463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,5 @@
/* eslint-disable no-param-reassign, no-use-before-define */
/* global DataTableHelpers PerfectScrollbar FilePreviewModal animateSpinner HelperModule
/* global GLOBAL_CONSTANTS DataTableHelpers PerfectScrollbar FilePreviewModal animateSpinner HelperModule
initAssignedTasksDropdown I18n prepareRepositoryHeaderForExport initReminderDropdown */
var MyModuleRepositories = (function() {
@ -348,6 +348,8 @@ var MyModuleRepositories = (function() {
json.state.columns.push({});
json.state.ColReorder.push(json.state.ColReorder.length);
}
json.state.start = 0;
json.state.length = GLOBAL_CONSTANTS.REPOSITORY_DEFAULT_PAGE_SIZE;
callback(json.state);
});
},

View file

@ -20,6 +20,7 @@ class GlobalConstantsController < ApplicationController
FILENAME_TRUNCATION_LENGTH: Constants::FILENAME_TRUNCATION_LENGTH,
FILE_MAX_SIZE_MB: Rails.configuration.x.file_max_size_mb,
REPOSITORY_LIST_ITEMS_PER_COLUMN: Constants::REPOSITORY_LIST_ITEMS_PER_COLUMN,
REPOSITORY_DEFAULT_PAGE_SIZE: Constants::REPOSITORY_DEFAULT_PAGE_SIZE,
REPOSITORY_CHECKLIST_ITEMS_PER_COLUMN: Constants::REPOSITORY_CHECKLIST_ITEMS_PER_COLUMN,
REPOSITORY_STOCK_UNIT_ITEMS_PER_COLUMN: Constants::REPOSITORY_STOCK_UNIT_ITEMS_PER_COLUMN,
HAS_UNSAVED_DATA_CLASS_NAME: 'has-unsaved-data',