Skip to content

Commit

Permalink
Merge pull request #45 from alkem-io/linkProfile
Browse files Browse the repository at this point in the history
do not retrieve tagset on link; version bump
  • Loading branch information
techsmyth authored Jul 8, 2024
2 parents e52333a + 153a81e commit 1bc7571
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 21 deletions.
18 changes: 18 additions & 0 deletions graphql/fragments/profile.no.tagset.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
fragment ProfileNoTagsetFields on Profile {
id
description
displayName
tagline
url
type
references {
description
name
uri
}
visuals {
uri
name
}
}

2 changes: 1 addition & 1 deletion graphql/fragments/space-ingest.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fragment SpaceIngest on Space {
id
uri
profile {
...ProfileFields
...ProfileNoTagsetFields
}

}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alkemio/space-ingest",
"version": "0.7.0",
"version": "0.8.1",
"description": "",
"author": "Alkemio Foundation",
"private": true,
Expand Down
66 changes: 49 additions & 17 deletions src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1148,8 +1148,10 @@ export type CommunicationAdminRoomResult = {
members: Array<Scalars['String']>;
};

export type CommunicationAdminUpdateRoomsJoinRuleInput = {
export type CommunicationAdminUpdateRoomStateInput = {
isPublic: Scalars['Boolean'];
isWorldVisible: Scalars['Boolean'];
roomID: Scalars['String'];
};

export type CommunicationRoom = {
Expand Down Expand Up @@ -2787,8 +2789,8 @@ export type Mutation = {
adminCommunicationEnsureAccessToCommunications: Scalars['Boolean'];
/** Remove an orphaned room from messaging platform. */
adminCommunicationRemoveOrphanedRoom: Scalars['Boolean'];
/** Allow updating the rule for joining rooms: public or invite. */
adminCommunicationUpdateRoomsJoinRule: Scalars['Boolean'];
/** Allow updating the state flags of a particular rule. */
adminCommunicationUpdateRoomState: Scalars['Boolean'];
/** Ingests new data into Elasticsearch from scratch. This will delete all existing data and ingest new data from the source. This is an admin only operation. */
adminSearchIngestFromScratch: Scalars['String'];
/** Reset the Authorization Policy on the specified AiServer. */
Expand Down Expand Up @@ -3127,8 +3129,8 @@ export type MutationAdminCommunicationRemoveOrphanedRoomArgs = {
orphanedRoomData: CommunicationAdminRemoveOrphanedRoomInput;
};

export type MutationAdminCommunicationUpdateRoomsJoinRuleArgs = {
changeRoomAccessData: CommunicationAdminUpdateRoomsJoinRuleInput;
export type MutationAdminCommunicationUpdateRoomStateArgs = {
roomStateData: CommunicationAdminUpdateRoomStateInput;
};

export type MutationAiServerCreateAiPersonaServiceArgs = {
Expand Down Expand Up @@ -3469,7 +3471,7 @@ export type MutationMoveContributionToCalloutArgs = {
};

export type MutationRefreshVirtualContributorBodyOfKnowledgeArgs = {
refreshData: RefreshVirtualContributorBodyOfKnowledgeInput;
deleteData: RefreshVirtualContributorBodyOfKnowledgeInput;
};

export type MutationRemoveCommunityRoleFromOrganizationArgs = {
Expand Down Expand Up @@ -4804,6 +4806,7 @@ export enum SearchResultType {
Space = 'SPACE',
User = 'USER',
Usergroup = 'USERGROUP',
Whiteboard = 'WHITEBOARD',
}

export type SearchResultUser = SearchResult & {
Expand Down Expand Up @@ -6218,7 +6221,7 @@ export type ResolversTypes = {
CommunicationAdminRemoveOrphanedRoomInput: CommunicationAdminRemoveOrphanedRoomInput;
CommunicationAdminRoomMembershipResult: ResolverTypeWrapper<CommunicationAdminRoomMembershipResult>;
CommunicationAdminRoomResult: ResolverTypeWrapper<CommunicationAdminRoomResult>;
CommunicationAdminUpdateRoomsJoinRuleInput: CommunicationAdminUpdateRoomsJoinRuleInput;
CommunicationAdminUpdateRoomStateInput: CommunicationAdminUpdateRoomStateInput;
CommunicationRoom: ResolverTypeWrapper<CommunicationRoom>;
CommunicationSendMessageToCommunityLeadsInput: CommunicationSendMessageToCommunityLeadsInput;
CommunicationSendMessageToOrganizationInput: CommunicationSendMessageToOrganizationInput;
Expand Down Expand Up @@ -6678,7 +6681,7 @@ export type ResolversParentTypes = {
CommunicationAdminRemoveOrphanedRoomInput: CommunicationAdminRemoveOrphanedRoomInput;
CommunicationAdminRoomMembershipResult: CommunicationAdminRoomMembershipResult;
CommunicationAdminRoomResult: CommunicationAdminRoomResult;
CommunicationAdminUpdateRoomsJoinRuleInput: CommunicationAdminUpdateRoomsJoinRuleInput;
CommunicationAdminUpdateRoomStateInput: CommunicationAdminUpdateRoomStateInput;
CommunicationRoom: CommunicationRoom;
CommunicationSendMessageToCommunityLeadsInput: CommunicationSendMessageToCommunityLeadsInput;
CommunicationSendMessageToOrganizationInput: CommunicationSendMessageToOrganizationInput;
Expand Down Expand Up @@ -9424,13 +9427,13 @@ export type MutationResolvers<
'orphanedRoomData'
>
>;
adminCommunicationUpdateRoomsJoinRule?: Resolver<
adminCommunicationUpdateRoomState?: Resolver<
ResolversTypes['Boolean'],
ParentType,
ContextType,
RequireFields<
MutationAdminCommunicationUpdateRoomsJoinRuleArgs,
'changeRoomAccessData'
MutationAdminCommunicationUpdateRoomStateArgs,
'roomStateData'
>
>;
adminSearchIngestFromScratch?: Resolver<
Expand Down Expand Up @@ -10027,7 +10030,7 @@ export type MutationResolvers<
ContextType,
RequireFields<
MutationRefreshVirtualContributorBodyOfKnowledgeArgs,
'refreshData'
'deleteData'
>
>;
removeCommunityRoleFromOrganization?: Resolver<
Expand Down Expand Up @@ -12493,6 +12496,19 @@ export type ProfileFieldsFragment = {
visuals: Array<{ uri: string; name: string }>;
};

export type ProfileNoTagsetFieldsFragment = {
id: string;
description?: any | undefined;
displayName: string;
tagline: string;
url: string;
type?: ProfileType | undefined;
references?:
| Array<{ description?: string | undefined; name: string; uri: string }>
| undefined;
visuals: Array<{ uri: string; name: string }>;
};

export type SpaceDetailsFragment = {
id: string;
nameID: string;
Expand Down Expand Up @@ -12603,7 +12619,6 @@ export type SpaceIngestFragment = {
tagline: string;
url: string;
type?: ProfileType | undefined;
tagset?: { tags: Array<string> } | undefined;
references?:
| Array<{
description?: string | undefined;
Expand Down Expand Up @@ -12921,7 +12936,6 @@ export type SpaceIngestQuery = {
tagline: string;
url: string;
type?: ProfileType | undefined;
tagset?: { tags: Array<string> } | undefined;
references?:
| Array<{
description?: string | undefined;
Expand Down Expand Up @@ -13035,7 +13049,6 @@ export type SpaceIngestQuery = {
tagline: string;
url: string;
type?: ProfileType | undefined;
tagset?: { tags: Array<string> } | undefined;
references?:
| Array<{
description?: string | undefined;
Expand Down Expand Up @@ -13149,7 +13162,6 @@ export type SpaceIngestQuery = {
tagline: string;
url: string;
type?: ProfileType | undefined;
tagset?: { tags: Array<string> } | undefined;
references?:
| Array<{
description?: string | undefined;
Expand Down Expand Up @@ -13215,6 +13227,25 @@ export const ProfileFieldsFragmentDoc = gql`
}
}
`;
export const ProfileNoTagsetFieldsFragmentDoc = gql`
fragment ProfileNoTagsetFields on Profile {
id
description
displayName
tagline
url
type
references {
description
name
uri
}
visuals {
uri
name
}
}
`;
export const SpaceIngestFragmentDoc = gql`
fragment SpaceIngest on Space {
id
Expand Down Expand Up @@ -13293,14 +13324,15 @@ export const SpaceIngestFragmentDoc = gql`
id
uri
profile {
...ProfileFields
...ProfileNoTagsetFields
}
}
}
}
}
}
${ProfileFieldsFragmentDoc}
${ProfileNoTagsetFieldsFragmentDoc}
`;
export const VisualFullFragmentDoc = gql`
fragment VisualFull on Visual {
Expand Down

0 comments on commit 1bc7571

Please sign in to comment.