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

빅챗 스프레드 시트 생성 후 GOGO 이모지를 누른 사람들을 일괄 등록하도록 기능 구현 (#89) #90

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hepheir
Copy link
Member

@hepheir hepheir commented Aug 1, 2024

fixes #89

빅챗 시트가 생성되기 이전에 등록을 시도한 사람들에 대하여, 시트 생성 직후 일괄 추가하도록 하였습니다.

!!! 실제 슬렉 환경에서는 테스트 해보지 않았습니다.

@hepheir hepheir changed the title test: 빅챗 스프레드 시트 생성이 완료되기 전 GOGO 이모지를 누른 사람들이 누락되는지 검사하는 테스트 작성 (#89) 빅챗 스프레드 시트 생성 후 GOGO 이모지를 누른 사람들을 일괄 등록하도록 기능 구현 (#89) Aug 1, 2024
Comment on lines +49 to +52
self.gs_client.append_row(worksheet_id, member.transform_for_spreadsheet())
finally:
if error_message:
self.slack_client.send_message(msg=error_message, ts=self.ts)
Copy link
Member Author

Choose a reason for hiding this comment

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

사용자가 시트에 추가 된 뒤, 슬렉으로 사용자 정보를 보내주는 부분은 가져오지 못했네요.
해당 부분에 대한 수정이 추가로 필요할 것 같습니다.

@roeniss roeniss requested review from sudosubin and roeniss and removed request for sudosubin and roeniss August 2, 2024 08:23
@roeniss
Copy link
Contributor

roeniss commented Aug 2, 2024

@sudosubin 님이 최종 리뷰어인걸로 하시죠 (한명밖에 안넣어짐..) 저도 리뷰는 하겠습니다

Copy link
Contributor

@roeniss roeniss left a comment

Choose a reason for hiding this comment

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

동시성이 깔끔하게 해결되지 못한 부분들이 있는것 같은데 코멘트 체크 부탁드립니다 🙇

Comment on lines +101 to +102
def get_emoji(self, channel: str, ts: str, emoji_name: str) -> Optional[Reaction]:
"""channel에 있는 ts 시간에 발송된 메시지에 사용자들이 남긴 반응 목록을 가져온다.
Copy link
Contributor

Choose a reason for hiding this comment

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

이렇게 하면 정확히 "ts 시간에" 남긴 반응만 가져오지 않나요? 밀리세컨드 단위로 찍히는 것 같아서요

Comment on lines +34 to +37
reaction = self.slack_client.get_emoji(
channel=channel,
timestamp=self.ts,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

이 라인을 지나간 직후에 생성되는 이모지는 어떻게 되는걸까요? 여전히 하나의 처리되지 못한 이모지로 남게 될까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

고고 이모지를 너무 빨리 눌러서 빅챗 참가 실패하는 버그 대응
2 participants