[DURACOM-309] fix circular dependency

This commit is contained in:
Andrea Barbasso
2025-05-14 17:38:50 +02:00
parent f1a1aebe33
commit 887bf0d266
5 changed files with 13 additions and 13 deletions

View File

@@ -104,7 +104,7 @@ jobs:
run: npm run check-circ-deps
- name: Run build
run: npm run build:prod-e2e
run: npm run build:prod
- name: Run specs (unit tests)
run: npm run test:headless

View File

@@ -16,12 +16,12 @@ import {
appReducers,
storeModuleConfig,
} from '../../app.reducer';
import { CorrelationIdService } from '../../correlation-id/correlation-id.service';
import { OrejimeService } from '../../shared/cookies/orejime.service';
import {
CORRELATION_ID_COOKIE,
CorrelationIdService,
} from '../../correlation-id/correlation-id.service';
import { OrejimeService } from '../../shared/cookies/orejime.service';
import { CORRELATION_ID_OREJIME_KEY } from '../../shared/cookies/orejime-configuration';
CORRELATION_ID_OREJIME_KEY,
} from '../../shared/cookies/orejime-configuration';
import { CookieServiceMock } from '../../shared/mocks/cookie.service.mock';
import { RouterStub } from '../../shared/testing/router.stub';
import { RestRequestMethod } from '../data/rest-request-method';

View File

@@ -12,12 +12,10 @@ import {
storeModuleConfig,
} from '../app.reducer';
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 { SetCorrelationIdAction } from './correlation-id.actions';
import {
CORRELATION_ID_COOKIE,
CorrelationIdService,
} from './correlation-id.service';
import { CorrelationIdService } from './correlation-id.service';
describe('CorrelationIdService', () => {
let service: CorrelationIdService;

View File

@@ -16,13 +16,14 @@ import {
} from '../core/services/window.service';
import { UUIDService } from '../core/shared/uuid.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 { SetCorrelationIdAction } from './correlation-id.actions';
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
*/

View File

@@ -9,7 +9,6 @@ import {
} from '../../core/google-recaptcha/google-recaptcha.service';
import { LANG_COOKIE } from '../../core/locale/locale.service';
import { NativeWindowRef } from '../../core/services/window.service';
import { CORRELATION_ID_COOKIE } from '../../correlation-id/correlation-id.service';
/**
* 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_COOKIE = 'CORRELATION-ID';
/**
* Orejime configuration
* For more information see https://github.com/empreinte-digitale/orejime