We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193a8d5 commit 6d303dcCopy full SHA for 6d303dc
1 file changed
backend/src/database/repositories/memberRepository.ts
@@ -294,11 +294,9 @@ class MemberRepository {
294
const HIGH_CONFIDENCE_LOWER_BOUND = 0.9
295
const MEDIUM_CONFIDENCE_LOWER_BOUND = 0.7
296
297
- const currentSegments = SequelizeRepository.getSegmentIds(options)
298
-
299
- const segmentIds = (
300
- await new SegmentRepository(options).getSegmentSubprojects(currentSegments)
301
- ).map((s) => s.id)
+ // Member segments are aggregated at each hierarchy level (group -> project -> subproject).
+ // Match the selected segment ID directly; do not expand to leaf subprojects.
+ const segmentIds = SequelizeRepository.getSegmentIds(options)
302
303
if (segmentIds.length === 0) {
304
return args.countOnly
0 commit comments