-
Notifications
You must be signed in to change notification settings - Fork 4.4k
chore: page import logic update, page with existing git sync id gets updated instead of new import #41350
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
Conversation
WalkthroughReplaces the previous unconditional import flow with a Git-aware conditional path in NewPageImportableServiceCEImpl: introduces Changes
Sequence Diagram(s)sequenceDiagram
participant Controller
participant NewPageImportService as ImportService
participant NewPageService as PageService
participant GitStore
Controller->>ImportService: request import pages (appIds)
alt Application not Git-connected
ImportService->>ImportService: gitSyncToPagesFromAllBranchesMono = empty map
ImportService->>ImportService: proceed with bulk import using updatedSlugPagesToImport
ImportService-->>Controller: import result
else Application Git-connected
ImportService->>PageService: findAllByApplicationIds(appIds)
PageService-->>ImportService: pages (filter gitSyncId)
ImportService->>GitStore: (optional) use git projection TODO
ImportService->>ImportService: build gitSyncToPagesFromAllBranchesMono (cached)
ImportService->>ImportService: combine with updatedSlugPagesToImport (Mono.zip)
ImportService-->>Controller: git-aware import result
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Points to review:
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
Description
Tip
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.
Fixes #
Issue Numberor
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.MobileResponsive"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/18967193496
Commit: 893949f
Cypress dashboard.
Tags:
@tag.MobileResponsiveSpec:
Fri, 31 Oct 2025 08:53:28 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Chores