Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestStatus 저장 시 매칭되지 않는 정보 저장 #90

Open
ghkdqhrbals opened this issue Apr 13, 2024 · 0 comments
Open

TestStatus 저장 시 매칭되지 않는 정보 저장 #90

ghkdqhrbals opened this issue Apr 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ghkdqhrbals
Copy link
Member

ghkdqhrbals commented Apr 13, 2024

일단 먼저 아래는 Test 정보가 저장되는 엔티티입니다.

public class TestStatus extends BaseTime {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "test_result_id", referencedColumnName = "id", nullable = false)
    private TestResult testResult;

    @Enumerated(EnumType.STRING)
    private HttpStatusCode code;

    private Integer count;

    @Lob
    private String message;

}

여기서 HttpStatusCode 를 저장하고 있는데, 해당 Enum 을 확인해보면 아래와 같이 설계되어있습니다.

public enum HttpStatusCode {
    GET,
    POST,
    PATCH,
    PUT,
    DELETE
}

의도한 바는 200, 204, 400, 404 와 같은 Http 상태코드가 저장되도록 int 형태입니다. 따라서 이 부분에서 수정이 필요할 것 같습니다!

일단 이 부분은 제외하고 사용자에게 데이터를 표시하도록 조치하겠습니다. // TODO 로 표시해놓고 추후 이 이슈를 해결하도록 할게요.

@ghkdqhrbals ghkdqhrbals added the bug Something isn't working label Apr 13, 2024
@ghkdqhrbals ghkdqhrbals self-assigned this Apr 13, 2024
@ghkdqhrbals ghkdqhrbals added the wontfix This will not be worked on label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants