Background:
Jira ticket: - ED-1960Getting issue details... STATUS
Problem Statement :
Key Design Problem:
Search API’s: Search Api’s are using BMGS as Api’s request for searching, filtering and sorting. so removed BMGS and use category1 for board, category2 for medium, category3 for gradeLevel and category4 for subject.
export interface ContentRequest { uid?: string | string[]; primaryCategories: string[]; audience?: string[]; pragma?: string[]; exclPragma?: string[]; attachFeedback?: boolean; attachContentAccess?: boolean; attachContentMarker?: boolean; sortCriteria?: ContentSortCriteria[]; recentlyViewed?: boolean; localOnly?: boolean; resourcesOnly?: boolean; limit?: number; board?: string[]; medium?: string[]; grade?: string[]; dialcodes?: string[]; childNodes?: string[];
convert BMGS to category[i] for content aggregator.
this.contentService.getContents({ primaryCategories: (searchCriteria.primaryCategories && searchCriteria.primaryCategories.length && searchCriteria.primaryCategories) || (searchRequest.filters && searchRequest.filters.primaryCategory) || [], board: searchCriteria.board, medium: searchCriteria.medium, grade: searchCriteria.grade
Remove BMGS from get content handler and search content handler in SDK.
Change BMGS to category1-4 for content properties in client service.
Update the below request BMGS to category1…category4 in mobile and we have to change the request as category1….category4 for search filter and help section in mobile.
userPreferences: { board: this.profile.board, medium: this.profile.medium, gradeLevel: this.profile.grade, subject: this.profile.subject, }