-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ImportData): refactors the notification of the Import Data P…
…rogress to the sockets.
- Loading branch information
1 parent
9fe5f12
commit a3e25a2
Showing
24 changed files
with
250 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
import { Global, Module } from '@nestjs/common'; | ||
import { CqrsModule } from '@nestjs/cqrs'; | ||
import { ImportProgressHandler } from 'modules/events/import-data-progress/import-progress.handler'; | ||
import { ImportProgressEmitter } from 'modules/events/import-data-progress/import-progress.emitter'; | ||
import { WebSocketsModule } from 'modules/notifications/websockets/websockets.module'; | ||
import { ImportProgressSocket } from 'modules/events/import-data-progress/import-progress.socket'; | ||
import { ImportProgressTrackerFactory } from 'modules/events/import-data-progress/import-progress.tracker.factory'; | ||
import { CacheModule } from '@nestjs/cache-manager'; | ||
|
||
@Global() | ||
@Module({ | ||
imports: [CqrsModule, WebSocketsModule], | ||
providers: [ | ||
ImportProgressHandler, | ||
ImportProgressEmitter, | ||
ImportProgressSocket, | ||
ImportProgressTrackerFactory, | ||
], | ||
exports: [ | ||
ImportProgressEmitter, | ||
ImportProgressTrackerFactory, | ||
ImportProgressSocket, | ||
CqrsModule, | ||
], | ||
imports: [CqrsModule, WebSocketsModule, CacheModule.register()], /// Might be problematic | ||
providers: [ImportProgressSocket], | ||
exports: [ImportProgressSocket, CqrsModule], | ||
}) | ||
export class AppEventsModule {} |
68 changes: 0 additions & 68 deletions
68
api/src/modules/events/import-data-progress/import-progress.emitter.ts
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
api/src/modules/events/import-data-progress/import-progress.handler.ts
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
api/src/modules/events/import-data-progress/import-progress.tracker.factory.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
api/src/modules/geo-coding/progress-tracker/geo-coding.progress-tracker.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.