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

feat : 결과 저장하는 로직 추가 #64

Merged
merged 22 commits into from
Mar 31, 2024
Merged

Conversation

LeeJeongGi
Copy link
Member

@LeeJeongGi LeeJeongGi commented Mar 30, 2024

이벤트 처리후 데이터 저장하는 부분 추가했습니다!!

  1. 템플릿 생성시 method가 get이라면 body json 빈 값으로 담도록 수정했습니다. (검증 패스)
    빈 값으로 넘겼더니 json으로 변환 처리 하는 부분이 여러군대 있어서 최초 저장시 {} 으로 저장 되도록 수정했습니다.
  2. 기존 doOnComplete 에 구현하기로 했는데 알아보니 완료된 시점엔 데이터 스트림에 반환 받은 값이 없어 변수에 담아두기 보단
    subscribe 에서 처리 하도록 구현 하였습니다.

Copy link

📝 Test code-coverage reports

File Coverage [75%] 🍏
TestTemplate.java 100% 🍏
TestMttfb.java 100% 🍏
JsonMapper.java 100% 🍏
TestResultTemplateApiController.java 100% 🍏
RandomUtils.java 91.02% 🍏
PerftestController.java 75% 🍏
TestTemplateApiController.java 67.96% 🍏
TestResultService.java 64.57% 🍏
TemplateUtils.java 35%
TestResult.java 18.18%
Total Project Coverage 72.82% 🍏

Copy link
Member

@ghkdqhrbals ghkdqhrbals left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@LeeJeongGi
Copy link
Member Author

테스트 코드좀 추가해야겠네요 ㅋㅋ 18%로 라니,,😂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분에서 Transaction 단위로 이루어졌으면 좋겠습니다.

만약 saveTps 후 saveMttfb 가 오류날 시, 기존 저장된 Tps 는 롤백이 불가능 할 것 같아요!

Copy link

📝 Test code-coverage reports

File Coverage [75%] 🍏
TestTemplate.java 100% 🍏
TestMttfb.java 100% 🍏
JsonMapper.java 100% 🍏
TestResultTemplateApiController.java 100% 🍏
RandomUtils.java 91.02% 🍏
PerftestController.java 75% 🍏
TestTemplateApiController.java 67.96% 🍏
TestResultService.java 64.57% 🍏
TemplateUtils.java 35%
TestResult.java 18.18%
Total Project Coverage 70.8% 🍏

Copy link

📝 Test code-coverage reports

File Coverage [78.28%] 🍏
TestTemplate.java 100% 🍏
TestMttfb.java 100% 🍏
JsonMapper.java 100% 🍏
TestResultTemplateApiController.java 100% 🍏
RandomUtils.java 91.02% 🍏
TemplateUtils.java 87.5% 🍏
PerftestController.java 75% 🍏
TestTemplateApiController.java 67.96% 🍏
TestResultService.java 64.57% 🍏
TestResult.java 18.18%
Total Project Coverage 73.2% 🍏

Copy link

📝 Test code-coverage reports

File Coverage [78.28%] 🍏
TestTemplate.java 100% 🍏
TestMttfb.java 100% 🍏
JsonMapper.java 100% 🍏
TestResultTemplateApiController.java 100% 🍏
RandomUtils.java 91.02% 🍏
TemplateUtils.java 87.5% 🍏
PerftestController.java 75% 🍏
TestTemplateApiController.java 67.96% 🍏
TestResultService.java 64.57% 🍏
TestResult.java 18.18%
Total Project Coverage 73.2% 🍏

@LeeJeongGi LeeJeongGi merged commit 4be50ce into develop Mar 31, 2024
1 check passed
@LeeJeongGi LeeJeongGi deleted the feature/save-result branch March 31, 2024 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants