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

Add subscription for submitter in agenda #3523

Merged
merged 3 commits into from
Apr 10, 2024
Merged
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 @@ -9,6 +9,10 @@ import { pollModelRequest } from '../polls/polls.subscription';
import { ViewListOfSpeakers, ViewTopic } from './modules';

export const AGENDA_LIST_ITEM_SUBSCRIPTION = `agenda_list`;
export const AGENDA_LIST_ITEM_MINIMAL_SUBSCRIPTION = `agenda_list_minimal`;
export const TOPIC_ITEM_SUBSCRIPTION = `topic_detail`;
export const TOPIC_ITEM_DUPLICATE_SUBSCRIPTION = `topic_detail`;
export const LIST_OF_SPEAKERS_SUBSCRIPTION = `los_detail`;

export const agendaItemFollow: FollowList<any> = [
{
Expand Down Expand Up @@ -59,6 +63,10 @@ export const getAgendaListSubscriptionConfig: SubscriptionConfigGenerator = (id:
{
idField: `list_of_speakers_id`,
...listOfSpeakersSpeakerCountSubscription
},
{
idField: `submitter_ids`,
fieldset: FULL_FIELDSET
}
]
}
Expand All @@ -70,8 +78,6 @@ export const getAgendaListSubscriptionConfig: SubscriptionConfigGenerator = (id:
subscriptionName: AGENDA_LIST_ITEM_SUBSCRIPTION
});

export const AGENDA_LIST_ITEM_MINIMAL_SUBSCRIPTION = `agenda_list_minimal`;

export const getAgendaListMinimalSubscriptionConfig: SubscriptionConfigGenerator = (id: Id) => ({
modelRequest: {
viewModelCtor: ViewMeeting,
Expand All @@ -92,8 +98,6 @@ export const getAgendaListMinimalSubscriptionConfig: SubscriptionConfigGenerator
subscriptionName: AGENDA_LIST_ITEM_MINIMAL_SUBSCRIPTION
});

export const TOPIC_ITEM_SUBSCRIPTION = `topic_detail`;

export const getTopicDetailSubscriptionConfig: SubscriptionConfigGenerator = (...ids: Id[]) => ({
modelRequest: {
viewModelCtor: ViewTopic,
Expand Down Expand Up @@ -121,7 +125,7 @@ export const getTopicDuplicateSubscriptionConfig: SubscriptionConfigGenerator =
ids,
fieldset: FULL_FIELDSET
},
subscriptionName: TOPIC_ITEM_SUBSCRIPTION
subscriptionName: TOPIC_ITEM_DUPLICATE_SUBSCRIPTION
});

export const listOfSpeakersSpeakerCountSubscription = {
Expand All @@ -140,8 +144,6 @@ export const listOfSpeakersSpeakerCountSubscription = {
]
};

export const LIST_OF_SPEAKERS_SUBSCRIPTION = `los_detail`;

export const getListOfSpeakersDetailSubscriptionConfig: SubscriptionConfigGenerator = (id: Id) => ({
modelRequest: {
viewModelCtor: ViewListOfSpeakers,
Expand Down
Loading