From: Eric Biagiotti Date: Tue, 26 Nov 2019 18:49:04 +0000 (-0500) Subject: 15840: Adds comment to refactored tree construction X-Git-Tag: 2.0.0~27^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/ef8f1518f7d4537b63a5b0201ea10413a2712c0d?hp=9b00787011a52ad4a7fdff3a5e5d59a9fbd854b9 15840: Adds comment to refactored tree construction Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti --- diff --git a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts index 27e4d4e6..9d3ae861 100644 --- a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts +++ b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts @@ -28,6 +28,9 @@ export type CollectionPanelFilesAction = UnionOf async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { const files = await services.collectionService.files(uuid); + + // Given the array of directories and files, create the appropriate tree nodes, + // sort them, and add the complete url to each. const tree = createCollectionFilesTree(files); const sorted = sortFilesTree(tree); const mapped = mapTreeValues(services.collectionService.extendFileURL)(sorted);