-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into parsu_ci_testing
Signed-off-by: Purshottam Patidar <parsuboy666@gmail.com>
- Loading branch information
Showing
19 changed files
with
4,775 additions
and
7,536 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
secrets: | ||
GH_PACKAGES: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_prod_api: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsDefined } from 'class-validator'; | ||
|
||
export class UpdateCellDto { | ||
@ApiProperty({ | ||
description: 'Record index', | ||
}) | ||
@IsDefined() | ||
index: number; | ||
|
||
@ApiProperty({ | ||
description: 'Record values to update', | ||
}) | ||
@IsDefined() | ||
record: Record<string, any>; | ||
|
||
@ApiProperty({ | ||
description: 'Update value flags', | ||
}) | ||
@IsDefined() | ||
updated: Record<string, boolean>; | ||
} |
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 was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
apps/api/src/app/review/usecases/update-cell/update-cell.command.ts
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class UpdateCellCommand { | ||
index: number; | ||
|
||
record: Record<string, any>; | ||
|
||
updated: Record<string, boolean>; | ||
} |
7 changes: 4 additions & 3 deletions
7
apps/api/src/app/review/usecases/update-cell/update-cell.usecase.ts
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,11 +1,12 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { DalService, RecordEntity } from '@impler/dal'; | ||
import { DalService } from '@impler/dal'; | ||
import { UpdateCellCommand } from './update-cell.command'; | ||
|
||
@Injectable() | ||
export class UpdateRecord { | ||
constructor(private dalService: DalService) {} | ||
|
||
async execute(_uploadId: string, record: RecordEntity) { | ||
await this.dalService.updateRecord(_uploadId, record.index, record); | ||
async execute(_uploadId: string, data: UpdateCellCommand) { | ||
await this.dalService.updateRecord(_uploadId, data.index, data.record, data.updated); | ||
} | ||
} |
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
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.