feat(DTFS2-7498): fetch amendments eligibility criteria from db #4155
81 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 4
- Added 81
Complexity increasing per file
==============================
- dtfs-central-api/test-helpers/test-data/eligibility-criteria-amendments.ts 1
- dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.test.ts 1
- dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts 2
Clones added
============
- dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.test.ts 1
- dtfs-central-api/api-tests/v1/portal-facility-amendments/amendment-patch.api-test.ts 1
- dtfs-central-api/api-tests/v1/portal-facility-amendments/amendment-put.api-test.ts 5
See the complete overview on Codacy
Annotations
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.test.ts#L16
Unsafe assignment of an error typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.test.ts#L26
Unsafe call of an `error` type typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.test.ts#L35
Unsafe member access .ELIGIBILITY_CRITERIA_AMENDMENTS on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.test.ts#L40
Unsafe assignment of an error typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.test.ts#L40
Unsafe member access .CASH on an `error` typed value.
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#L2
Unable to resolve path to module '@ukef/dtfs2-common'.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/repositories/portal/eligibility-criteria-amendments.repo.ts#L10
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#L10
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#L22
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.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.upsertPortalFacilityAmendmentDraft.service.test.ts#L2
Unable to resolve path to module '@ukef/dtfs2-common'.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.upsertPortalFacilityAmendmentDraft.service.test.ts#L116
Unsafe member access .type on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.upsertPortalFacilityAmendmentDraft.service.test.ts#L139
Unsafe assignment of an error typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/src/services/portal/facility-amendment.upsertPortalFacilityAmendmentDraft.service.test.ts#L141
Unsafe member access .criteria on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/test-helpers/test-data/eligibility-criteria-amendments.ts#L1
Unable to resolve path to module 'mongodb'.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/test-helpers/test-data/eligibility-criteria-amendments.ts#L9
Unsafe member access .CASH on an `error` typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/test-helpers/test-data/eligibility-criteria-amendments.ts#L16
Unsafe assignment of an error typed value.
codacy-production / Codacy Static Code Analysis
dtfs-central-api/test-helpers/test-data/eligibility-criteria-amendments.ts#L16
Unsafe call of an `error` type typed value.
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#L51
Unsafe assignment of an error typed value.
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.
Check failure on line 1 in utils/mock-data-loader/clean-all-tables-gef.js
codacy-production / Codacy Static Code Analysis
utils/mock-data-loader/clean-all-tables-gef.js#L1
Unable to resolve path to module '@ukef/dtfs2-common'.
Check failure on line 1 in utils/mock-data-loader/gef/eligibilityCriteriaAmendments.js
codacy-production / Codacy Static Code Analysis
utils/mock-data-loader/gef/eligibilityCriteriaAmendments.js#L1
Unable to resolve path to module '@ukef/dtfs2-common'.
Check failure on line 1 in utils/mock-data-loader/insert-mocks-gef.js
codacy-production / Codacy Static Code Analysis
utils/mock-data-loader/insert-mocks-gef.js#L1
Unable to resolve path to module '@ukef/dtfs2-common'.