-
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: 이슈 라벨 Enum 추가 및 컨버터 등록 * refactor: assigneeDto from 메서드 사용 및 카카오 이미지 url 추가 * refactor: assigneeDto member 패키지 밑으로 이동하면서 리펙터링 * feat(EpicFactory): 라벨 추가 * feat: 라벨 추가 및 생성자 관련 SuperBuilder로 리펙터링 * refactor: superBuilder 지우고 생성자로 다시 변경 story와 task 같은 경우 생성할때 추가적인 로직이 존재하기 때문에 단순화를 위해 생성자로 다시 사용합니다 * feat: 라벨 추가 및 assigneeDto관련 리펙터링 * style: assigneeDto 패키지 임포트 경로 수정 * refactor(SimpleIssueResponse): label 추가 * feat: storyFactory, taskFactory label 추가 * refactor: 스프린트들 조회시 스프린트 상태도 반환하도록 수정 * refactor: 스키마에 라벨 추가
- Loading branch information
1 parent
c50c062
commit af14c00
Showing
24 changed files
with
225 additions
and
162 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
12 changes: 12 additions & 0 deletions
12
src/main/java/dynamicquad/agilehub/global/util/StringToIssueLabelConverter.java
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,12 @@ | ||
package dynamicquad.agilehub.global.util; | ||
|
||
import dynamicquad.agilehub.issue.domain.IssueLabel; | ||
import org.springframework.core.convert.converter.Converter; | ||
|
||
public class StringToIssueLabelConverter implements Converter<String, IssueLabel> { | ||
|
||
@Override | ||
public IssueLabel convert(String source) { | ||
return IssueLabel.parsing(source); | ||
} | ||
} |
3 changes: 0 additions & 3 deletions
3
src/main/java/dynamicquad/agilehub/global/util/StringToIssueTypeConverter.java
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
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
17 changes: 17 additions & 0 deletions
17
src/main/java/dynamicquad/agilehub/issue/domain/IssueLabel.java
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,17 @@ | ||
package dynamicquad.agilehub.issue.domain; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import java.util.stream.Stream; | ||
|
||
public enum IssueLabel { | ||
NONE, PLAN, DESIGN, DEVELOP, TEST, FEEDBACK; | ||
|
||
@JsonCreator | ||
public static IssueLabel parsing(String value) { | ||
return Stream.of(IssueLabel.values()) | ||
.filter(label -> label.toString().equalsIgnoreCase(value)) | ||
.findFirst() | ||
.orElse(NONE); | ||
} | ||
|
||
} |
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.