Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export const getMediafilesListMinimalSubscriptionConfig: SubscriptionConfigGener
modelRequest: {
viewModelCtor: ViewMeeting,
ids: [id],
follow: [{ idField: `mediafile_ids` }, { idField: `meeting_mediafile_ids` }]
follow: [
{ idField: `mediafile_ids`, fieldset: [`id`, `owner_id`, `title`, `filename`] },
{ idField: `meeting_mediafile_ids`, fieldset: [] }
]
},
subscriptionName: MEDIAFILES_LIST_MINIMAL_SUBSCRIPTION
});
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export const getMotionWorkflowSubscriptionConfig: SubscriptionConfigGenerator =
modelRequest: {
viewModelCtor: ViewMeeting,
ids: [id],
fieldset: [],
follow: [{ idField: `motion_workflow_ids`, fieldset: FULL_FIELDSET }]
},
subscriptionName: MOTION_WORKFLOW_SUBSCRIPTION
Expand All @@ -123,7 +124,8 @@ export const getMotionWorkflowDetailSubscriptionConfig: SubscriptionConfigGenera
fieldset: [],
follow: [
{
idField: `state_ids`
idField: `state_ids`,
fieldset: []
}
]
},
Expand Down Expand Up @@ -265,6 +267,7 @@ export const getMotionOriginDetailSubscriptionConfig: SubscriptionConfigGenerato
{ idField: `state_id`, fieldset: FULL_FIELDSET },
{
idField: `submitter_ids`,
fieldset: `participantListMinimal`,
follow: [
{
idField: `meeting_user_id`,
Expand All @@ -273,8 +276,7 @@ export const getMotionOriginDetailSubscriptionConfig: SubscriptionConfigGenerato
idField: `user_id`,
fieldset: `participantList`
}
],
fieldset: `participantListMinimal`
]
}
]
}
Expand Down Expand Up @@ -353,15 +355,15 @@ export const getMotionForwardDataSubscriptionConfig: SubscriptionConfigGenerator
modelRequest: {
ids,
viewModelCtor: ViewMotion,
fieldset: [`reason`, `text`, `modified_final_version`, `all_origin_ids`],
follow: [
{
idField: `amendment_ids`,
fieldset: [`text`, `modified_final_version`, `amendment_paragraphs`],
follow: [{ idField: `change_recommendation_ids`, fieldset: FULL_FIELDSET }]
},
{ idField: `change_recommendation_ids`, fieldset: FULL_FIELDSET }
],
fieldset: [`reason`, `text`, `modified_final_version`, `all_origin_ids`]
]
},
subscriptionName: MOTION_FORWARD_DATA_SUBSCRIPTION
});
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const getStructureLevelListSubscriptionConfig: SubscriptionConfigGenerato
follow: [
{
idField: `structure_level_ids`,
fieldset: DEFAULT_FIELDSET
fieldset: [`color`, `id`, `meeting_id`, `name`]
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const getPollDetailSubscriptionConfig: SubscriptionConfigGenerator = (...
{
idField: `global_option_id`,
fieldset: FULL_FIELDSET,
follow: [{ idField: `vote_ids` }]
follow: [{ idField: `vote_ids`, fieldset: [] }]
},
{
idField: `entitled_group_ids`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { ViewProjection } from './view-projection';

export const PROJECTOR_CONTENT_FOLLOW: Follow = {
idField: `current_projection_ids`,
follow: [{ idField: `content_object_id` }],
fieldset: `content`
fieldset: `content`,
follow: [{ idField: `content_object_id` }]
};

export class ViewProjector extends BaseViewModel<Projector> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function getMeetingCreateFollowConfig(
): any {
return {
idField: idField,
follow: [{ idField: `committee_id`, fieldset: `name` }],
fieldset: [`name`]
fieldset: [`name`],
follow: [{ idField: `committee_id`, fieldset: `name` }]
};
}
Loading