add some logs
This commit is contained in:
parent
f01056853a
commit
35876c353d
@ -28,6 +28,7 @@ import { ViewModeService } from './view-mode.service';
|
|||||||
import { Core } from '@pdftron/webviewer';
|
import { Core } from '@pdftron/webviewer';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
import { NGXLogger } from 'ngx-logger';
|
||||||
import Annotation = Core.Annotations.Annotation;
|
import Annotation = Core.Annotations.Annotation;
|
||||||
|
|
||||||
const DELTA_VIEW_TIME = 10 * 60 * 1000; // 10 minutes;
|
const DELTA_VIEW_TIME = 10 * 60 * 1000; // 10 minutes;
|
||||||
@ -56,6 +57,7 @@ export class FileDataService {
|
|||||||
private readonly _textHighlightsService: TextHighlightService,
|
private readonly _textHighlightsService: TextHighlightService,
|
||||||
private readonly _toaster: Toaster,
|
private readonly _toaster: Toaster,
|
||||||
private readonly _router: Router,
|
private readonly _router: Router,
|
||||||
|
private readonly _logger: NGXLogger,
|
||||||
) {
|
) {
|
||||||
this.annotations$ = this.#annotations$;
|
this.annotations$ = this.#annotations$;
|
||||||
this.visibleAnnotations$ = this._viewModeService.viewMode$.pipe(
|
this.visibleAnnotations$ = this._viewModeService.viewMode$.pipe(
|
||||||
@ -107,6 +109,8 @@ export class FileDataService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._logger.debug('[ANNOTATIONS] Load annotations');
|
||||||
|
|
||||||
await this.loadViewedPages(file);
|
await this.loadViewedPages(file);
|
||||||
await this.loadRedactionLog();
|
await this.loadRedactionLog();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import { UserService } from '../user.service';
|
|||||||
import { FilesMapService } from '@services/entity-services/files-map.service';
|
import { FilesMapService } from '@services/entity-services/files-map.service';
|
||||||
import { map, mapTo, switchMap, tap } from 'rxjs/operators';
|
import { map, mapTo, switchMap, tap } from 'rxjs/operators';
|
||||||
import { DossierStatsService } from '@services/dossiers/dossier-stats.service';
|
import { DossierStatsService } from '@services/dossiers/dossier-stats.service';
|
||||||
|
import { NGXLogger } from 'ngx-logger';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
@ -13,6 +14,7 @@ import { DossierStatsService } from '@services/dossiers/dossier-stats.service';
|
|||||||
export class FilesService extends EntitiesService<File, IFile> {
|
export class FilesService extends EntitiesService<File, IFile> {
|
||||||
constructor(
|
constructor(
|
||||||
protected readonly _injector: Injector,
|
protected readonly _injector: Injector,
|
||||||
|
protected readonly _logger: NGXLogger,
|
||||||
private readonly _userService: UserService,
|
private readonly _userService: UserService,
|
||||||
private readonly _filesMapService: FilesMapService,
|
private readonly _filesMapService: FilesMapService,
|
||||||
private readonly _dossierStatsService: DossierStatsService,
|
private readonly _dossierStatsService: DossierStatsService,
|
||||||
@ -34,6 +36,7 @@ export class FilesService extends EntitiesService<File, IFile> {
|
|||||||
map(_file => new File(_file, this._userService.getNameForId(_file.assignee), file.routerPath)),
|
map(_file => new File(_file, this._userService.getNameForId(_file.assignee), file.routerPath)),
|
||||||
switchMap(_file => this._dossierStatsService.getFor([dossierId]).pipe(mapTo(_file))),
|
switchMap(_file => this._dossierStatsService.getFor([dossierId]).pipe(mapTo(_file))),
|
||||||
map(_file => this._filesMapService.replace([_file])),
|
map(_file => this._filesMapService.replace([_file])),
|
||||||
|
tap(() => this._logger.debug('[FILE] Loaded')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"ADMIN_CONTACT_NAME": null,
|
"ADMIN_CONTACT_NAME": null,
|
||||||
"ADMIN_CONTACT_URL": null,
|
"ADMIN_CONTACT_URL": null,
|
||||||
"API_URL": "https://dev-05.iqser.cloud/redaction-gateway-v1",
|
"API_URL": "https://dev-08.iqser.cloud/redaction-gateway-v1",
|
||||||
"APP_NAME": "RedactManager",
|
"APP_NAME": "RedactManager",
|
||||||
"AUTO_READ_TIME": 3,
|
"AUTO_READ_TIME": 3,
|
||||||
"BACKEND_APP_VERSION": "4.4.40",
|
"BACKEND_APP_VERSION": "4.4.40",
|
||||||
@ -17,7 +17,7 @@
|
|||||||
"MAX_RETRIES_ON_SERVER_ERROR": 3,
|
"MAX_RETRIES_ON_SERVER_ERROR": 3,
|
||||||
"OAUTH_CLIENT_ID": "redaction",
|
"OAUTH_CLIENT_ID": "redaction",
|
||||||
"OAUTH_IDP_HINT": null,
|
"OAUTH_IDP_HINT": null,
|
||||||
"OAUTH_URL": "https://dev-05.iqser.cloud/auth/realms/redaction",
|
"OAUTH_URL": "https://dev-08.iqser.cloud/auth/realms/redaction",
|
||||||
"RECENT_PERIOD_IN_HOURS": 24,
|
"RECENT_PERIOD_IN_HOURS": 24,
|
||||||
"SELECTION_MODE": "structural",
|
"SELECTION_MODE": "structural",
|
||||||
"MANUAL_BASE_URL": "https://docs.redactmanager.com/preview"
|
"MANUAL_BASE_URL": "https://docs.redactmanager.com/preview"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user