Skip to content

Commit

Permalink
Remove tag ids from topic
Browse files Browse the repository at this point in the history
  • Loading branch information
luisa-beerboom committed Aug 8, 2023
1 parent 5480797 commit 8bce921
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
3 changes: 0 additions & 3 deletions client/src/app/domain/models/topics/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { HasAgendaItemId } from '../../interfaces/has-agenda-item-id';
import { HasAttachmentIds } from '../../interfaces/has-attachment-ids';
import { HasListOfSpeakersId } from '../../interfaces/has-list-of-speakers-id';
import { HasMeetingId } from '../../interfaces/has-meeting-id';
import { HasTagIds } from '../../interfaces/has-tag-ids';
import { BaseModel } from '../base/base-model';

/**
Expand All @@ -30,7 +29,6 @@ export class Topic extends BaseModel<Topic> {
`attachment_ids`,
`agenda_item_id`,
`list_of_speakers_id`,
`tag_ids`,
`meeting_id`
];
}
Expand All @@ -39,6 +37,5 @@ export interface Topic
HasAgendaItemId,
HasListOfSpeakersId,
HasAttachmentIds,
HasTagIds,
HasSequentialNumber,
HasPollIds {}
2 changes: 1 addition & 1 deletion client/src/app/gateways/repositories/agenda/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export function createAgendaItem(model: any): any {
agenda_parent_id: model.agenda_parent_id,
agenda_type: model.agenda_type,
agenda_weight: model.agenda_weight,
tag_ids: model.tag_ids
agenda_tag_ids: model.tag_ids
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export class TopicRepositoryService extends BaseAgendaItemAndListOfSpeakersConte
id: viewModel.id,
text: update.text,
title: update.title,
attachment_ids: update.attachment_ids || [],
tag_ids: update.tag_ids || []
attachment_ids: update.attachment_ids || []
};
return this.sendActionToBackend(TopicAction.UPDATE, payload);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ export const RELATIONS: Relation[] = [
// ########## Tags
...makeGenericM2M<ViewTag, HasTags>({
viewModel: ViewTag,
possibleViewModels: [ViewAgendaItem, ViewAssignment, ViewMotion, ViewTopic],
possibleViewModels: [ViewAgendaItem, ViewAssignment, ViewMotion],
viewModelField: `tagged`,
viewModelIdField: `tagged_ids`,
possibleViewModelsField: `tags`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { BaseProjectableViewModel } from 'src/app/site/pages/meetings/view-model
import { HasMeeting } from 'src/app/site/pages/meetings/view-models/has-meeting';

import { HasAttachment } from '../../../../mediafiles/view-models/has-attachment';
import { HasTags } from '../../../../motions/modules/tags/view-models/has-tags';
import { HasPolls, VotingTextContext } from '../../../../polls';

export class ViewTopic extends BaseProjectableViewModel<Topic> {
Expand Down Expand Up @@ -42,7 +41,6 @@ export class ViewTopic extends BaseProjectableViewModel<Topic> {
export interface ViewTopic
extends Topic,
HasAttachment,
HasTags,
HasAgendaItem,
HasListOfSpeakers,
HasMeeting,
Expand Down

0 comments on commit 8bce921

Please sign in to comment.