-
Notifications
You must be signed in to change notification settings - Fork 4
ENG-1519: Add legacy-to-blockprops migration, remove backedBy from schemea #876
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
Changes from all commits
cd16a66
b97def3
14e72c9
def877f
29f99fc
f62b3f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,10 @@ import type { json } from "~/utils/getBlockProps"; | |
| import INITIAL_NODE_VALUES from "~/data/defaultDiscourseNodes"; | ||
| import DEFAULT_RELATIONS_BLOCK_PROPS from "~/components/settings/data/defaultRelationsBlockProps"; | ||
| import { getAllDiscourseNodes } from "./accessors"; | ||
| import { | ||
| migrateGraphLevel, | ||
| migratePersonalSettings, | ||
| } from "./migrateLegacyToBlockProps"; | ||
| import { | ||
| DiscourseNodeSchema, | ||
| getTopLevelBlockPropsConfig, | ||
|
|
@@ -147,7 +151,6 @@ const initSingleDiscourseNode = async ( | |
| tag: node.tag || "", | ||
| graphOverview: node.graphOverview ?? false, | ||
| canvasSettings: node.canvasSettings || {}, | ||
| backedBy: "user", | ||
| }); | ||
|
|
||
| setBlockProps(pageUid, nodeData, false); | ||
|
|
@@ -256,6 +259,8 @@ export type InitSchemaResult = { | |
|
|
||
| export const initSchema = async (): Promise<InitSchemaResult> => { | ||
| const blockUids = await initSettingsPageBlocks(); | ||
| await migrateGraphLevel(blockUids); | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This runs before |
||
| const nodePageUids = await initDiscourseNodePages(); | ||
| await migratePersonalSettings(blockUids); | ||
| return { blockUids, nodePageUids }; | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving away from
getFormattedConfigTree()