Skip to content

ENG-1171 Remove migrateLeftSideBarSettings - #1419

Open
trangdoan982 wants to merge 1 commit into
mainfrom
eng-1171-remove-migrateleftsidebarsettings
Open

ENG-1171 Remove migrateLeftSideBarSettings#1419
trangdoan982 wants to merge 1 commit into
mainfrom
eng-1171-remove-migrateleftsidebarsettings

Conversation

@trangdoan982

@trangdoan982 trangdoan982 commented Sep 8, 2026

Copy link
Copy Markdown
Member
image

Left Sidebar setting is intact and functional

Scope check

  • Ran $scope-check against the ENG ticket and final diff.

  • Scope beyond Done When: None.

  • The removed sidebarMigrated / allPersonalSections fields, getAllLeftSidebarPersonalSectionConfigs and AllUsersPersonalSections had no consumers outside the deleted migration.

🤖 Generated with Claude Code


Devin Review

The left sidebar ran two one-time migrations on every mount. Each
self-skips via a marker block, but the check itself still costs
`getLeftSidebarSettings()` plus `getPageUidByPageTitle()` calls on
every load.

`migrateLeftSidebarSettings` converted sidebar entries stored as page
titles into page UIDs. Current write paths (`migrateFavorites`,
`addBlockToGlobalSection`, `addBlockToPersonalSection`) all store UIDs,
so the conversion has nothing left to do.

Removes the migration and the config fields that existed only to serve
it. `migrateFavorites` is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Sep 8, 2026

Copy link
Copy Markdown

ENG-1171

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
discourse-graph Skipped Skipped Sep 8, 2026 1:28am UTC

Request Review

@supabase

supabase Bot commented Sep 8, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

let root = wrapper.querySelector(`#${id}`) as HTMLDivElement;
if (!root) {
await migrateFavorites();
await migrateLeftSidebarSettings();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Legacy sidebar entries become unusable

Graphs upgrading directly from a pre-migration release keep title-encoded entries because mountLeftSidebar no longer converts them. ChildRow treats every page entry as a UID, leaving these entries blank and unable to open.

Prompt for agents
Preserve compatibility for graphs whose legacy Left Sidebar children still contain page titles. The removed call in apps/roam/src/components/LeftSidebarView.tsx previously converted global and every user's personal sidebar children before rendering and before block-prop migration could copy those values. Restore an equivalent one-time conversion path, or make the legacy and block-prop readers normalize titles to page UIDs before ChildRow receives them. Keep the fast path for already migrated UID data, and cover direct upgrades from releases predating ENG-1127, including users whose sidebar was not mounted while the old migration existed.
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@mdroidian
mdroidian requested a review from sid597 September 8, 2026 03:07
@mdroidian

Copy link
Copy Markdown
Member

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 59 minutes.

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: af1c307c-3624-47d2-a95d-798fee7d7c7a

📥 Commits

Reviewing files that changed from the base of the PR and between a8b8fee and 18de8d8.

📒 Files selected for processing (3)
  • apps/roam/src/components/LeftSidebarView.tsx
  • apps/roam/src/utils/getLeftSidebarSettings.ts
  • apps/roam/src/utils/migrateLeftSidebarSettings.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mdroidian

Copy link
Copy Markdown
Member

@sid597 could you review this PR please?

@mdroidian

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T05:58:37.985929Z 18de8d8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 18de8d8e18

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mdroidian mdroidian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you run dg-delegated-full-review on these changes please? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants