-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 에픽 생성, 수정 API에 우선순위 데이터(rankValue)추가
- lexorank 패키지 설치 - epic 엔티티 - rankValue 프로퍼티 추가 - 에픽의 rankValue가 project에서 고유하도록 유니크 제약조건 추가 - project 레포지토리, project 서비스, epic컨트롤러에 rankValue 정보 추가 - Epic DTO에 rankValue 정보 추가 - LexoRank형식인지 검증할 수 있는 IsLexoRankValue 데코레이터 추가 - E2E 테스트 - 에픽, 스토리, 태스크, 백로그 테스트에 rankValue정보 추가 - 에픽 테스트에 rankValue update테스트 추가
- Loading branch information
1 parent
d9d44e9
commit c13ae07
Showing
15 changed files
with
212 additions
and
60 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { registerDecorator } from 'class-validator'; | ||
|
||
export function IsLexoRankValue() { | ||
return function (object: Object, propertyName: string) { | ||
registerDecorator({ | ||
name: 'IsLexoRankValue', | ||
target: object.constructor, | ||
propertyName: propertyName, | ||
options: { message: 'invalid LexoRank format' }, | ||
validator: { | ||
validate(value: any) { | ||
const lexorankPattern = new RegExp(`^[012]\\|.*`, 'i'); | ||
return lexorankPattern.test(value); | ||
}, | ||
}, | ||
}); | ||
}; | ||
} |
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
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.