Skip to content
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

Fix motion list structure level #2828

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not want to add new fieldsets because within the subscriptions we do not have any direct reference to these and therefore cannot see which fields will be subscribed.

Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ export class MeetingUserRepositoryService extends BaseMeetingRelatedRepository<V

public override getFieldsets(): Fieldsets<MeetingUser> {
const groupFields: TypedFieldset<MeetingUser> = [`group_ids`, `meeting_id`, `user_id`];
const participantListFieldsMinimal: TypedFieldset<MeetingUser> = groupFields.concat([
const nameFields: TypedFieldset<MeetingUser> = groupFields.concat([`structure_level`, `number`]);
const participantListFieldsMinimal: TypedFieldset<MeetingUser> = nameFields.concat([
`vote_delegated_to_id`,
`vote_delegations_from_ids`,
`vote_weight`,
`structure_level`,
`number`,
`comment`,
`user_id`
]);
Expand All @@ -38,6 +37,7 @@ export class MeetingUserRepositoryService extends BaseMeetingRelatedRepository<V
return {
[DEFAULT_FIELDSET]: detailFields,
groups: groupFields,
name: nameFields,
participantListMinimal: participantListFieldsMinimal,
all: detailFields.concat(participantListFieldsMinimal)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ export const getMotionListSubscriptionConfig: SubscriptionConfigGenerator = (id:
follow: [
{
idField: `meeting_user_id`,
follow: [{ idField: `user_id`, ...UserFieldsets.FullNameSubscription }]
follow: [
{
idField: `user_id`,
fieldset: [...UserFieldsets.FullNameSubscription.fieldset, `meeting_user_ids`]
bastianjoel marked this conversation as resolved.
Show resolved Hide resolved
}
],
fieldset: `name`
}
]
}
Expand Down