mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-309] fix circular dependency
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -104,7 +104,7 @@ jobs:
|
|||||||
run: npm run check-circ-deps
|
run: npm run check-circ-deps
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run: npm run build:prod-e2e
|
run: npm run build:prod
|
||||||
|
|
||||||
- name: Run specs (unit tests)
|
- name: Run specs (unit tests)
|
||||||
run: npm run test:headless
|
run: npm run test:headless
|
||||||
|
@@ -16,12 +16,12 @@ import {
|
|||||||
appReducers,
|
appReducers,
|
||||||
storeModuleConfig,
|
storeModuleConfig,
|
||||||
} from '../../app.reducer';
|
} from '../../app.reducer';
|
||||||
|
import { CorrelationIdService } from '../../correlation-id/correlation-id.service';
|
||||||
|
import { OrejimeService } from '../../shared/cookies/orejime.service';
|
||||||
import {
|
import {
|
||||||
CORRELATION_ID_COOKIE,
|
CORRELATION_ID_COOKIE,
|
||||||
CorrelationIdService,
|
CORRELATION_ID_OREJIME_KEY,
|
||||||
} from '../../correlation-id/correlation-id.service';
|
} from '../../shared/cookies/orejime-configuration';
|
||||||
import { OrejimeService } from '../../shared/cookies/orejime.service';
|
|
||||||
import { CORRELATION_ID_OREJIME_KEY } from '../../shared/cookies/orejime-configuration';
|
|
||||||
import { CookieServiceMock } from '../../shared/mocks/cookie.service.mock';
|
import { CookieServiceMock } from '../../shared/mocks/cookie.service.mock';
|
||||||
import { RouterStub } from '../../shared/testing/router.stub';
|
import { RouterStub } from '../../shared/testing/router.stub';
|
||||||
import { RestRequestMethod } from '../data/rest-request-method';
|
import { RestRequestMethod } from '../data/rest-request-method';
|
||||||
|
@@ -12,12 +12,10 @@ import {
|
|||||||
storeModuleConfig,
|
storeModuleConfig,
|
||||||
} from '../app.reducer';
|
} from '../app.reducer';
|
||||||
import { UUIDService } from '../core/shared/uuid.service';
|
import { UUIDService } from '../core/shared/uuid.service';
|
||||||
|
import { CORRELATION_ID_COOKIE } from '../shared/cookies/orejime-configuration';
|
||||||
import { CookieServiceMock } from '../shared/mocks/cookie.service.mock';
|
import { CookieServiceMock } from '../shared/mocks/cookie.service.mock';
|
||||||
import { SetCorrelationIdAction } from './correlation-id.actions';
|
import { SetCorrelationIdAction } from './correlation-id.actions';
|
||||||
import {
|
import { CorrelationIdService } from './correlation-id.service';
|
||||||
CORRELATION_ID_COOKIE,
|
|
||||||
CorrelationIdService,
|
|
||||||
} from './correlation-id.service';
|
|
||||||
|
|
||||||
describe('CorrelationIdService', () => {
|
describe('CorrelationIdService', () => {
|
||||||
let service: CorrelationIdService;
|
let service: CorrelationIdService;
|
||||||
|
@@ -16,13 +16,14 @@ import {
|
|||||||
} from '../core/services/window.service';
|
} from '../core/services/window.service';
|
||||||
import { UUIDService } from '../core/shared/uuid.service';
|
import { UUIDService } from '../core/shared/uuid.service';
|
||||||
import { OrejimeService } from '../shared/cookies/orejime.service';
|
import { OrejimeService } from '../shared/cookies/orejime.service';
|
||||||
import { CORRELATION_ID_OREJIME_KEY } from '../shared/cookies/orejime-configuration';
|
import {
|
||||||
|
CORRELATION_ID_COOKIE,
|
||||||
|
CORRELATION_ID_OREJIME_KEY,
|
||||||
|
} from '../shared/cookies/orejime-configuration';
|
||||||
import { isEmpty } from '../shared/empty.util';
|
import { isEmpty } from '../shared/empty.util';
|
||||||
import { SetCorrelationIdAction } from './correlation-id.actions';
|
import { SetCorrelationIdAction } from './correlation-id.actions';
|
||||||
import { correlationIdSelector } from './correlation-id.selector';
|
import { correlationIdSelector } from './correlation-id.selector';
|
||||||
|
|
||||||
export const CORRELATION_ID_COOKIE = 'CORRELATION-ID';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service to manage the correlation id, an id used to give context to server side logs
|
* Service to manage the correlation id, an id used to give context to server side logs
|
||||||
*/
|
*/
|
||||||
|
@@ -9,7 +9,6 @@ import {
|
|||||||
} from '../../core/google-recaptcha/google-recaptcha.service';
|
} from '../../core/google-recaptcha/google-recaptcha.service';
|
||||||
import { LANG_COOKIE } from '../../core/locale/locale.service';
|
import { LANG_COOKIE } from '../../core/locale/locale.service';
|
||||||
import { NativeWindowRef } from '../../core/services/window.service';
|
import { NativeWindowRef } from '../../core/services/window.service';
|
||||||
import { CORRELATION_ID_COOKIE } from '../../correlation-id/correlation-id.service';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cookie for has_agreed_end_user
|
* Cookie for has_agreed_end_user
|
||||||
@@ -26,6 +25,8 @@ export const MATOMO_COOKIE = 'dsMatomo';
|
|||||||
|
|
||||||
export const CORRELATION_ID_OREJIME_KEY = 'correlation-id';
|
export const CORRELATION_ID_OREJIME_KEY = 'correlation-id';
|
||||||
|
|
||||||
|
export const CORRELATION_ID_COOKIE = 'CORRELATION-ID';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Orejime configuration
|
* Orejime configuration
|
||||||
* For more information see https://github.com/empreinte-digitale/orejime
|
* For more information see https://github.com/empreinte-digitale/orejime
|
||||||
|
Reference in New Issue
Block a user