-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 오류나는 Dockerfile 수정 (#295) * refactor: 필요없는 러너 서포터 필드 삭제 * refactor: 필요없는 ChattingCount 필드 삭제 * feat: RunnerTechnicalTag 관련 클래스 추가 * refactor: SupporterTechnicalTag 빌더 생성자 접근제한자 private 으로 변경 * feat: SupporterRunnerPost 엔티티 생성 * refactor: dev CI 스크립트 변경 * refactor: dev CD 스크립트 변경 * refactor: deploy CI 스크립트 변경 * refactor: deploy CD 스크립트 변경 * Auth ArgumentResolver 익명 null 반환 변경 (#271) * refactor: Auth ArgumentResolver 익명 null 반환 변경 * refactor: AuthSupporterPrincipal 내부 속성 변경 * refactor: docker container timezone 변경 * feat: Dockerfile 타임존 설정 * feat: jar 타임존 설정 * fix: Dockerfile 오류 해결 --------- Co-authored-by: HyunSeo Park (Hyena) <[email protected]> * feat: Runner 의 프로필 수정 기능 구현 * fix: 충돌 해결 * refactor: ClientErrorCode 수정 * refactor: RunnerProfileRequest 위치 변경 및 이름 수정 * refactor: setter 삭제 * refactor: RunnerProfileController 수정 및 redirectUri 추가 * refactor: RunnerProfileService 의 코드 RunnerService 로 이동 * fix: TechnicalTag, RunnerTechnicalTag 중복 저장 해결 * test: RunnerProfileServiceTest 수정 * docs: RunnerProfileUpdateApi RestDocs 작성 * refactor: ClientErrorCode static import 추가 * test: RunnerProfileAssuredUpdateTest 작성 * refactor: RunnerUpdateRequest 컨벤션에 맞도록 수정 * refactor: ServiceTestConfig 컨벤션에 맞도록 수정 * refactor: request 전체를 보내지 않도록 수정 * feat: runner의 introduction 기본값 설정 * style: 사용하지 않는 주석 제거 * test: RunnerServiceTest로 이동 및 테스트 코드 작성 * refactor: Runner 프로필 수정 기능 컨벤션에 맞도록 수정 및 리팩터링 * fix: DDL 오류 수정 * refactor: runner, support에서 Introduction null 체크 * test: service 테스트에서 Response 를 의존하지 않도록 작성 * test: service 테스트에서 Response 를 의존하지 않도록 작성 * refactor: 컨벤션에 맞도록 수정 --------- Co-authored-by: Jeonghoon Park <[email protected]> Co-authored-by: HyunSeo Park (Hyena) <[email protected]>
- Loading branch information
1 parent
d02d408
commit 837403c
Showing
19 changed files
with
494 additions
and
12 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
backend/baton/src/docs/asciidoc/RunnerProfileUpdateApi.adoc
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,30 @@ | ||
ifndef::snippets[] | ||
:snippets: ../../../build/generated-snippets | ||
endif::[] | ||
:doctype: investment | ||
:icons: font | ||
:source-highlighter: highlight.js | ||
:toc: left | ||
:toclevels: 2 | ||
:sectlinks: | ||
:operation-http-request-title: Example Request | ||
:operation-http-response-title: Example Response | ||
|
||
== *러너 프로필 수정* | ||
|
||
=== *러너 프로필 수정 API* | ||
|
||
==== *Http Request* | ||
include::{snippets}/../../build/generated-snippets/runner-profile-update-api-test/update-runner-profile/http-request.adoc[] | ||
|
||
==== *Http Request Headers* | ||
include::{snippets}/../../build/generated-snippets/runner-profile-update-api-test/update-runner-profile/request-headers.adoc[] | ||
|
||
==== *Http Request Body* | ||
include::{snippets}/../../build/generated-snippets/runner-profile-update-api-test/update-runner-profile/request-body.adoc[] | ||
|
||
==== *Http Response* | ||
include::{snippets}/../../build/generated-snippets/runner-profile-update-api-test/update-runner-profile/http-response.adoc[] | ||
|
||
==== *Http Response Headers* | ||
include::{snippets}/../../build/generated-snippets/runner-profile-update-api-test/update-runner-profile/response-headers.adoc[] |
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
2 changes: 2 additions & 0 deletions
2
...on/src/main/java/touch/baton/domain/runner/controller/response/RunnerProfileResponse.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
19 changes: 19 additions & 0 deletions
19
backend/baton/src/main/java/touch/baton/domain/runner/service/dto/RunnerUpdateRequest.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,19 @@ | ||
package touch.baton.domain.runner.service.dto; | ||
|
||
import touch.baton.domain.common.exception.validator.ValidNotNull; | ||
|
||
import java.util.List; | ||
|
||
import static touch.baton.domain.common.exception.ClientErrorCode.COMPANY_IS_NULL; | ||
import static touch.baton.domain.common.exception.ClientErrorCode.NAME_IS_NULL; | ||
import static touch.baton.domain.common.exception.ClientErrorCode.RUNNER_TECHNICAL_TAGS_ARE_NULL; | ||
|
||
public record RunnerUpdateRequest(@ValidNotNull(clientErrorCode = NAME_IS_NULL) | ||
String name, | ||
@ValidNotNull(clientErrorCode = COMPANY_IS_NULL) | ||
String company, | ||
String introduction, | ||
@ValidNotNull(clientErrorCode = RUNNER_TECHNICAL_TAGS_ARE_NULL) | ||
List<String> technicalTags | ||
) { | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...rc/main/java/touch/baton/domain/technicaltag/repository/RunnerTechnicalTagRepository.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,15 @@ | ||
package touch.baton.domain.technicaltag.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Modifying; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import touch.baton.domain.runner.Runner; | ||
import touch.baton.domain.technicaltag.RunnerTechnicalTag; | ||
|
||
public interface RunnerTechnicalTagRepository extends JpaRepository<RunnerTechnicalTag, Long> { | ||
|
||
@Modifying(clearAutomatically = true, flushAutomatically = true) | ||
@Query("DELETE FROM RunnerTechnicalTag rt WHERE rt.runner = :runner") | ||
int deleteByRunner(@Param("runner") final Runner runner); | ||
} |
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.