Skip to content

Commit

Permalink
feat(APIM-582): remove unused endpoint GET /constants/spi (#427)
Browse files Browse the repository at this point in the history
### Introduction
SPI tool required new constants and instead of updating MDM API all
constants were moved to SPI tool environment variables.
Now endpoint GET /constants/spi can be removed

### Resolution
Removing endpoint and module.

### Misc
Simple Jest config change to make it easier to find errors
  • Loading branch information
avaitonis committed Aug 24, 2023
2 parents 62a8fa4 + bced547 commit b431841
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 385 deletions.
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const config: JestConfigWithTsJest = {
...defaultSettings,
},
],
reporters: [['default', { summaryThreshold: 1 }]],
};

export default config;
55 changes: 0 additions & 55 deletions src/modules/constants/constants.controller.test.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/modules/constants/constants.controller.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/modules/constants/constants.module.ts

This file was deleted.

45 changes: 0 additions & 45 deletions src/modules/constants/constants.service.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/modules/constants/dto/get-constants-spi-query.dto.ts

This file was deleted.

45 changes: 0 additions & 45 deletions src/modules/constants/entities/constants-spi.entity.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/modules/mdm.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Module } from '@nestjs/common';
import { AuthModule } from '@ukef/auth/auth.module';
import { DatabaseModule } from '@ukef/database/database.module';
import { ConstantsModule } from '@ukef/modules/constants/constants.module';
import { CurrenciesModule } from '@ukef/modules/currencies/currencies.module';
import { CustomersModule } from '@ukef/modules/customers/customers.module';
import { ExposurePeriodModule } from '@ukef/modules/exposure-period/exposure-period.module';
Expand All @@ -17,7 +16,6 @@ import { YieldRatesModule } from '@ukef/modules/yield-rates/yield-rates.module';
imports: [
AuthModule,
DatabaseModule,
ConstantsModule,
CurrenciesModule,
CustomersModule,
ExposurePeriodModule,
Expand All @@ -32,7 +30,6 @@ import { YieldRatesModule } from '@ukef/modules/yield-rates/yield-rates.module';
exports: [
AuthModule,
DatabaseModule,
ConstantsModule,
CurrenciesModule,
CustomersModule,
ExposurePeriodModule,
Expand Down
103 changes: 0 additions & 103 deletions test/constants/constants.spi.api-test.ts

This file was deleted.

0 comments on commit b431841

Please sign in to comment.