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

[Refactor] qa 해결 #500

Merged
merged 14 commits into from
Mar 20, 2025
Merged

[Refactor] qa 해결 #500

merged 14 commits into from
Mar 20, 2025

Conversation

rtttr1
Copy link
Contributor

@rtttr1 rtttr1 commented Mar 3, 2025

해당 이슈 번호

closed #495


체크리스트

  • 🔀 PR 제목의 형식을 잘 작성했나요? e.g. [feat] PR을 등록한다.
  • 💯 테스트는 잘 통과했나요?
  • 🏗️ 빌드는 성공했나요?
  • 🧹 불필요한 코드는 제거했나요?
  • ✅ 컨벤션을 지켰나요?
  • 💭 이슈는 등록했나요?
  • 🏷️ 라벨은 등록했나요?
  • 💻 git rebase를 사용했나요?
  • 🙇‍♂️ 리뷰어를 지정했나요?
  • ✨ 저는 (common/shared)로 분리했어요.

📌 내가 알게 된 부분


💎 PR Point


204 delete 긴급 처방

현재 204로 delete 성공이 되는 api에서 오류가 발생합니다..!
원인으로는 서버에서 삭제로직 실행 후 빈 응답값을 전달하는데 그 빈 응답값에 oas가 접근을 하려고 해서 나는 것으로 추정하고 있습니다.
일단 급하게 불을 끄고자 현재 204로 응답값이 오는 delete api들을 보이는대로 oas를 사용하지 않고 axios를 사용하는 코드로 변경해주었습니다. 혹시 빠진 api가 있으면 알려주시면 처리 마저 해두겠습니다!

datepicker 클릭 오류 해결

문제상황은 다음과 같습니다.

  1. Datepicker를 클릭했을때 click 이벤트가 실행되어 DatePicker가 언마운트 된다.
  2. 이벤트 버블링이 일어나서 부모요소인 TimeblockBar에 걸려있는 click 이벤트가 실행된다.
  3. 이때 클릭되었던 Datepicker 요소는 이미 언마운트가 된 이후이기 때문에 TimeblockBar의 내부 요소로 인식하지 못한다.
  4. 결과적으로 TimeblockBar도 outsideClick으로 인해 닫히게 된다.

따라서 stopPropagation으로 버블링을 막아서 해결했습니다!

그 외에는 자잘한 qa들 처리했습니다!

📌스크린샷 (선택)

Copy link

github-actions bot commented Mar 3, 2025

🚀 Storybook 확인하기 🚀

Copy link

github-actions bot commented Mar 4, 2025

🚀 Storybook 확인하기 🚀

Copy link

github-actions bot commented Mar 4, 2025

🚀 Storybook 확인하기 🚀

Copy link
Member

@wuzoo wuzoo left a comment

Choose a reason for hiding this comment

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

QA 고생많았습니다 !!

const { mutate: deleteTeamMutate } = useMutation({
mutationFn: ({ teamId }: { teamId: number }) => deleteTeam(teamId),
onSuccess: async () => {
await queryClient.invalidateQueries({
Copy link
Member

Choose a reason for hiding this comment

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

async await 필요 없을 것 같아요 !

Comment on lines +37 to +40
onClick={(e) => {
e.stopPropagation();
setSelectedDate(date);
}}
Copy link
Member

Choose a reason for hiding this comment

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

고생하셨네요👍

Copy link
Contributor

@Bowoon1216 Bowoon1216 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

},
onError: (error) => {
createToast(TIMEBLOCK.ERROR.DELETE, 'error');
console.log(error);
Copy link
Contributor

Choose a reason for hiding this comment

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

콘솔 있습니당!

onError: () => createToast(NOTE.ERROR.DELETE, 'error'),
onError: (error) => {
createToast(NOTE.ERROR.DELETE, 'error');
console.log(error);
Copy link
Contributor

Choose a reason for hiding this comment

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

여기두!

Copy link

github-actions bot commented Mar 5, 2025

🚀 Storybook 확인하기 🚀

Copy link
Member

@namdaeun namdaeun left a comment

Choose a reason for hiding this comment

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

큐에이 고생많으셨어유 !!

Copy link

github-actions bot commented Mar 5, 2025

🚀 Storybook 확인하기 🚀

Copy link

github-actions bot commented Mar 5, 2025

🚀 Storybook 확인하기 🚀

Copy link

🚀 Storybook 확인하기 🚀

@rtttr1 rtttr1 merged commit 388d01b into develop Mar 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

최종 QA
4 participants