[WEB-5845] chore: changing description field to description json (#8230)

* chore: migrating description to description json

* chore: replace description with description_json

* chore: updated migration file

* chore: updated the migration file

* chore: added description key in external endpoint

* chore: updated the migration file

* chore: updated the typo

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
Bavisetti Narayan 2026-01-22 18:23:59 +05:30 committed by GitHub
parent 6c8779c8d3
commit 2a29ab8d4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 85 additions and 54 deletions

View file

@ -59,7 +59,7 @@ export const usePageFallback = (args: TArgs) => {
await updatePageDescription({
description_binary: encodedBinary,
description_html: html,
description: json,
description_json: json,
});
} catch (error: any) {
console.error(error);

View file

@ -80,7 +80,7 @@ export class BasePage extends ExtendedBasePage implements TBasePage {
id: string | undefined;
name: string | undefined;
logo_props: TLogoProps | undefined;
description: object | undefined;
description_json: object | undefined;
description_html: string | undefined;
color: string | undefined;
label_ids: string[] | undefined;
@ -117,7 +117,7 @@ export class BasePage extends ExtendedBasePage implements TBasePage {
this.id = page?.id || undefined;
this.name = page?.name;
this.logo_props = page?.logo_props || undefined;
this.description = page?.description || undefined;
this.description_json = page?.description_json || undefined;
this.description_html = page?.description_html || undefined;
this.color = page?.color || undefined;
this.label_ids = page?.label_ids || undefined;
@ -142,7 +142,7 @@ export class BasePage extends ExtendedBasePage implements TBasePage {
id: observable.ref,
name: observable.ref,
logo_props: observable.ref,
description: observable,
description_json: observable.ref,
description_html: observable.ref,
color: observable.ref,
label_ids: observable,
@ -217,7 +217,7 @@ export class BasePage extends ExtendedBasePage implements TBasePage {
return {
id: this.id,
name: this.name,
description: this.description,
description_json: this.description_json,
description_html: this.description_html,
color: this.color,
label_ids: this.label_ids,