Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Background:

Problem Statement :

For existing users, already content DB is created so, categories filed will not be there and we are using content.category1 so, it will throw undefined error

Key Design Problem:

Update content DB keys BMGS to category1, category2, category3 and category4. The new DB will be created for new user with category1,….category4 but for existing user we have to write a migrate code for DB update with category[i]

export interface Content {
    identifier: string;
    name: string;
    appIcon: string;
    description: string;
    pkgVersion: string;
    status: string;
    size: string;
    owner: string;
    creator: string;
    subject: string | string[];
    board: string;
    medium: string | string[];
    publisher: string;
    me_totalRatingsCount: number;
    me_averageRating: string;
    me_totalDownloads: string;
    copyright: string;
    copyrightYear: string;
    license: string;
    licenseDetails: LicenseDetails;
    expires: string;
    downloadUrl: string;
    variants: {
        [key: string]: any;
    };
    artifactUrl: string;
    language: string[];
    gradeLevel: string[];
    osId: string;
    contentType: string;
    resourceType: string;
    mimeType: ContentMimeType;
    artifactMimeType: string;
    versionKey: string;
    contentEncoding: string;
    contentDisposition: string;
    contentTypesCount: string;
    lastPublishedOn: string;
    createdOn: string;
    createdBy: string;
    channel: string;
    screenshots: string[];
    audience: any;
    pragma: string[];
    attributions: string[];
    dialcodes: string[];
    childNodes: string[];
    previewUrl: string;
    framework: string;
    creators: string;
    contributors: string;
    streamingUrl: string;
    totalScore: any;
    altMsg?: AltMsg[];
    organisation?: string;
    author?: string;
    collaborators?: string;
    originData?: OriginData;
    origin?: string;
    totalQuestions?: number;
    itemSetPreviewUrl?: string;
    leafNodes?: string[];
    leafNodesCount?: number;
    primaryCategory?: string;
    trackable?: Trackable;
    userConsent?: UserConsent;
    additionalCategories?: string[];
    forumId?: string;
    se_boards?: string;
    se_mediums?: string | string[];
    se_gradeLevels?: string[];
    se_subjects?: string | string[];
    transcripts?: Transcript[];
}
  • No labels