feat(DTFS2-7498): fetch amendments eligibility criteria from db #4155
30 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 1
- Added 30
Complexity increasing per file
==============================
- dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts 2
- gef-ui/server/controllers/amendments/eligibility-criteria/get-eligibility.ts 1
See the complete overview on Codacy
Annotations
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L1
Unable to resolve path to module 'mongodb'.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L7
Unsafe call of an `error` type typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L7
Unsafe member access .getCollection on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L7
Unsafe return of an error typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L15
Unsafe assignment of an error typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L17
Unsafe call of an `error` type typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L18
Unsafe assignment of an error typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L18
Unsafe member access .find on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L19
Unsafe member access .sort on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L20
Unsafe member access .limit on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L21
Unsafe member access .toArray on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L24
Unsafe construction of an any type value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L27
Unsafe return of an error typed value.
Check failure on line 44 in dtfs-central-api/src/services/portal/facility-amendment.service.ts
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.service.ts#L44
Unsafe assignment of an error typed value.
Check failure on line 46 in dtfs-central-api/src/services/portal/facility-amendment.service.ts
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.service.ts#L46
Unsafe assignment of an error typed value.
Check failure on line 48 in dtfs-central-api/src/services/portal/facility-amendment.service.ts
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.service.ts#L48
Unsafe call of an `error` type typed value.
Check failure on line 48 in dtfs-central-api/src/services/portal/facility-amendment.service.ts
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.service.ts#L48
Unsafe member access .map on an `error` typed value.
Check failure on line 59 in dtfs-central-api/src/services/portal/facility-amendment.service.ts
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.service.ts#L59
Unsafe assignment of an error typed value.
Check failure on line 1 in gef-ui/component-tests/partials/amendments/eligibility.component-test.ts
codacy-production / Codacy Static Code Analysis
gef-ui/component-tests/partials/amendments/eligibility.component-test.ts#L1
Unable to resolve path to module '@ukef/dtfs2-common'.
codacy-production / Codacy Static Code Analysis
gef-ui/server/controllers/amendments/eligibility-criteria/get-eligibility.ts#L44
Unsafe member access .eligibilityCriteria on an `error` typed value.
codacy-production / Codacy Static Code Analysis
gef-ui/server/controllers/amendments/eligibility-criteria/get-eligibility.ts#L49
Unsafe assignment of an error typed value.
codacy-production / Codacy Static Code Analysis
gef-ui/server/controllers/amendments/eligibility-criteria/get-eligibility.ts#L49
Unsafe member access .eligibilityCriteria on an `error` typed value.
codacy-production / Codacy Static Code Analysis
gef-ui/server/controllers/amendments/eligibility-criteria/get-eligibility.ts#L55
Unsafe assignment of an error typed value.
Check failure on line 1 in gef-ui/server/types/view-models/amendments/eligibility-view-model.ts
codacy-production / Codacy Static Code Analysis
gef-ui/server/types/view-models/amendments/eligibility-view-model.ts#L1
Unable to resolve path to module '@ukef/dtfs2-common'.
Check failure on line 51 in gef-ui/test-helpers/mock-amendment.ts
codacy-production / Codacy Static Code Analysis
gef-ui/test-helpers/mock-amendment.ts#L51
Unsafe member access .eligibilityCriteria on an `error` typed value.