-
Notifications
You must be signed in to change notification settings - Fork 731
Added the Git integration to segments, and tweaks for the GitHub integration #994
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
Added the Git integration to segments, and tweaks for the GitHub integration #994
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good apart from that one question
|
||
const context = await getUserContext(tenantId) | ||
const segmentRepository = new SegmentRepository(context) | ||
context.currentSegments = [await segmentRepository.findById(event.segments[0])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we use all segments from event.segments
?
Where is this event.segments
coming from? From python worker?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the Git integration. Since it's an integration, it will only ever be 1 segment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to send only one segment in the first place?
Changes proposed ✍️
What
🤖 Generated by Copilot at 13424bc
This pull request adds segment support to the backend services and repositories, allowing multiple git integrations per platform and segment. It also changes the order of the streams created by the
GithubIntegrationService
and links the activities to their conversations. It also adds some console logs for debugging purposes.
🤖 Generated by Copilot at 13424bc
Why
How
🤖 Generated by Copilot at 13424bc
memberRepository.ts
,sequelizeRepository.ts
, link, link)Checklist ✅
Feature
,Improvement
, orBug
.