diff --git a/apps/red-ui/src/app/screens/file/service/file-download.service.ts b/apps/red-ui/src/app/screens/file/service/file-download.service.ts index 224058c29..2a4fde98b 100644 --- a/apps/red-ui/src/app/screens/file/service/file-download.service.ts +++ b/apps/red-ui/src/app/screens/file/service/file-download.service.ts @@ -12,7 +12,6 @@ import { FileType } from '../model/file-type'; import { FileDataModel } from '../model/file-data.model'; import { AppStateService } from '../../../state/app-state.service'; import { PermissionsService } from '../../../common/service/permissions.service'; -import { FileData } from '@nrwl/workspace/src/core/file-utils'; @Injectable({ providedIn: 'root' @@ -83,7 +82,7 @@ export class FileDownloadService { default: fileObs$ = fetch() ? of(fetch()) - : this._fileUploadControllerService.downloadOriginalFile(fileStatus.fileId, true, fileStatus.added, 'body').pipe( + : this._fileUploadControllerService.downloadOriginalFile(fileStatus.fileId, true, fileStatus.lastUploaded, 'body').pipe( tap((data) => { saveTo(data); }) diff --git a/apps/red-ui/src/app/screens/project-overview-screen/bulk-actions/bulk-actions.component.ts b/apps/red-ui/src/app/screens/project-overview-screen/bulk-actions/bulk-actions.component.ts index 2272baf8e..f58537fd5 100644 --- a/apps/red-ui/src/app/screens/project-overview-screen/bulk-actions/bulk-actions.component.ts +++ b/apps/red-ui/src/app/screens/project-overview-screen/bulk-actions/bulk-actions.component.ts @@ -108,7 +108,6 @@ export class BulkActionsComponent { } public setToUnderApproval() { const promises = this.selectedFiles.map((file) => this._fileActionService.setFileUnderApproval(file).toPromise()); - console.log(promises.length); Promise.all(promises).then(() => { this.reload.emit(); diff --git a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts index 933e1630d..97709d1bc 100644 --- a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts +++ b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts @@ -213,7 +213,7 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy { label: humanize(status) }); }); - console.log(statusFilters); + statusFilters.sort((a, b) => StatusSorter[a.key] - StatusSorter[b.key]); this.statusFilters = processFilters(this.statusFilters, statusFilters); diff --git a/libs/red-cache/src/lib/caches/cache-api.service.ts b/libs/red-cache/src/lib/caches/cache-api.service.ts index 1503b1b58..c46571a26 100644 --- a/libs/red-cache/src/lib/caches/cache-api.service.ts +++ b/libs/red-cache/src/lib/caches/cache-api.service.ts @@ -245,7 +245,6 @@ export class CacheApiService { const expires = response.headers.get('_expires'); try { if (parseInt(expires, 10) < now) { - console.log('remove cache', key); cache.delete(key); } } catch (e) {} diff --git a/libs/red-cache/src/lib/caches/cache-utils.ts b/libs/red-cache/src/lib/caches/cache-utils.ts index eee34867d..5e684f920 100644 --- a/libs/red-cache/src/lib/caches/cache-utils.ts +++ b/libs/red-cache/src/lib/caches/cache-utils.ts @@ -33,7 +33,6 @@ export async function wipeCaches(logoutDependant: boolean = false) { export async function wipeCacheEntry(cacheName: string, entry: string) { caches.open(cacheName).then((cache) => { - console.log('delete:', entry); cache.delete(entry, { ignoreSearch: false }); }); } diff --git a/libs/red-ui-http/src/lib/model/fileStatus.ts b/libs/red-ui-http/src/lib/model/fileStatus.ts index ef6f9f88a..55b6d9a56 100644 --- a/libs/red-ui-http/src/lib/model/fileStatus.ts +++ b/libs/red-ui-http/src/lib/model/fileStatus.ts @@ -62,6 +62,10 @@ export interface FileStatus { * Date and time when the file was last updated. */ lastUpdated?: string; + /** + * Date and time when the file was last uploaded. + */ + lastUploaded: string; /** * The number of times the file has been analyzed. */