File tree Expand file tree Collapse file tree 7 files changed +1
-214
lines changed
libs/data-access-layer/src/old/apps/profiles_worker Expand file tree Collapse file tree 7 files changed +1
-214
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,7 @@ import {
33 calculateAllMemberLeafAggregates ,
44 calculateAllOrganizationLeafAggregates ,
55} from './activities/calculateLeafSegmentAggregates'
6- import {
7- getAffiliationsLastCheckedAt ,
8- getLLMResult ,
9- getMemberIdsForAffiliationUpdates ,
10- updateAffiliationsLastCheckedAt ,
11- } from './activities/common'
6+ import { getLLMResult } from './activities/common'
127import {
138 createMemberBotSuggestion ,
149 createMemberNoBot ,
@@ -45,9 +40,6 @@ import {
4540
4641export {
4742 updateMemberAffiliations ,
48- getAffiliationsLastCheckedAt ,
49- getMemberIdsForAffiliationUpdates ,
50- updateAffiliationsLastCheckedAt ,
5143 syncMember ,
5244 syncOrganization ,
5345 findMembersInOrganization ,
Original file line number Diff line number Diff line change 11import { LlmService } from '@crowd/common_services'
22import { pgpQx } from '@crowd/data-access-layer'
3- import {
4- getAffiliationsLastCheckedAt as getAffiliationsLastCheckedAtDAL ,
5- getAllMemberIdsPaginated ,
6- getMemberIdsWithRecentRoleChanges ,
7- updateAffiliationsLastCheckedAt as updateAffiliationsLastCheckedAtOfTenant ,
8- } from '@crowd/data-access-layer/src/old/apps/profiles_worker'
93import { ILlmResponse , LlmQueryType } from '@crowd/types'
104
115import { svc } from '../main'
126
13- export async function getAffiliationsLastCheckedAt ( ) : Promise < string > {
14- return getAffiliationsLastCheckedAtDAL ( svc . postgres . writer )
15- }
16-
17- export async function getMemberIdsForAffiliationUpdates (
18- affiliationsLastChecked : string ,
19- limit : number ,
20- offset : number ,
21- ) : Promise < string [ ] > {
22- if ( ! affiliationsLastChecked ) {
23- return getAllMemberIdsPaginated ( svc . postgres . writer , limit , offset )
24- }
25-
26- return getMemberIdsWithRecentRoleChanges (
27- svc . postgres . writer ,
28- affiliationsLastChecked ,
29- limit ,
30- offset ,
31- )
32- }
33-
34- export async function updateAffiliationsLastCheckedAt ( ) : Promise < void > {
35- await updateAffiliationsLastCheckedAtOfTenant ( svc . postgres . writer )
36- }
37-
387export async function getLLMResult (
398 queryType : LlmQueryType ,
409 prompt : string ,
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ export interface MemberUpdateInput {
88 syncToOpensearch ?: boolean
99}
1010
11- export interface IRecalculateAffiliationsForNewRolesInput {
12- offset ?: number
13- }
14-
1511export interface ProcessMemberBotSuggestionWithLLMInput {
1612 memberId : string
1713}
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { calculateProjectGroupMemberAggregates } from './workflows/member/calcul
44import { calculateProjectMemberAggregates } from './workflows/member/calculateProjectMemberAggregates'
55import { memberUpdate } from './workflows/member/memberUpdate'
66import { processMemberBotAnalysisWithLLM } from './workflows/member/processMemberBotAnalysisWithLLM'
7- import { recalculateAffiliationsForNewRoles } from './workflows/member/recalculateAffiliationsForNewRoles'
87import { refreshMemberDisplayAggregates } from './workflows/member/refreshMemberDisplayAggregates'
98import { calculateProjectGroupOrganizationAggregates } from './workflows/organization/calculateProjectGroupOrganizationAggregates'
109import { calculateProjectOrganizationAggregates } from './workflows/organization/calculateProjectOrganizationAggregates'
@@ -14,7 +13,6 @@ import { refreshOrganizationDisplayAggregates } from './workflows/organization/r
1413export {
1514 memberUpdate ,
1615 organizationUpdate ,
17- recalculateAffiliationsForNewRoles ,
1816 refreshMemberDisplayAggregates ,
1917 refreshOrganizationDisplayAggregates ,
2018 processMemberBotAnalysisWithLLM ,
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments