-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Move packages #23135
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
base: main
Are you sure you want to change the base?
Move packages #23135
Conversation
""" WalkthroughThis change removes the standalone Possibly related PRs
Suggested labels
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (23)
💤 Files with no reviewable changes (6)
✅ Files skipped from review due to trivial changes (14)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms (12)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
ghost/core/core/shared/events/index.js (1)
15-23
: Export new post-related events from shared index.
Theindex.js
now includes exports forPostDeletedEvent
and all bulk post event classes. Confirm that each event file (e.g.,PostsBulkAddTagsEvent.js
) defines a named export matching the property used here (.PostsBulkAddTagsEvent
). If any module exports a default, adjust it to a named export for compatibility.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (13)
.docker/Dockerfile
(0 hunks)compose.yml
(0 hunks)ghost/core/core/server/services/Users.js
(1 hunks)ghost/core/core/server/services/posts/PostsService.js
(1 hunks)ghost/core/core/shared/events/index.js
(1 hunks)ghost/core/package.json
(0 hunks)ghost/core/test/unit/shared/events/post-events.test.ts
(1 hunks)ghost/post-events/.eslintrc.js
(0 hunks)ghost/post-events/README.md
(0 hunks)ghost/post-events/package.json
(0 hunks)ghost/post-events/src/index.ts
(0 hunks)ghost/post-events/test/.eslintrc.js
(0 hunks)ghost/post-events/tsconfig.json
(0 hunks)
💤 Files with no reviewable changes (9)
- ghost/post-events/README.md
- ghost/core/package.json
- .docker/Dockerfile
- ghost/post-events/tsconfig.json
- compose.yml
- ghost/post-events/test/.eslintrc.js
- ghost/post-events/.eslintrc.js
- ghost/post-events/package.json
- ghost/post-events/src/index.ts
🧰 Additional context used
🧬 Code Graph Analysis (3)
ghost/core/core/server/services/Users.js (1)
ghost/core/core/server/services/posts/PostsService.js (2)
require
(2-2)require
(8-15)
ghost/core/core/server/services/posts/PostsService.js (1)
ghost/core/core/server/services/Users.js (2)
require
(8-8)require
(10-10)
ghost/core/core/shared/events/index.js (10)
ghost/core/core/server/services/Users.js (2)
require
(8-8)require
(10-10)ghost/core/core/server/services/posts/PostsService.js (2)
require
(2-2)require
(8-15)ghost/core/core/frontend/services/sitemap/SiteMapManager.js (1)
require
(2-2)ghost/core/core/server/services/VerificationTrigger.js (1)
require
(3-3)ghost/core/core/server/services/members-events/EventStorage.js (1)
require
(1-1)ghost/core/core/frontend/web/site.js (2)
require
(5-5)require
(19-19)ghost/core/core/server/services/comments/CommentsService.js (1)
require
(3-3)ghost/core/core/server/services/staff/StaffService.js (1)
require
(1-1)ghost/core/core/server/services/members-events/LastSeenAtUpdater.js (3)
require
(1-1)require
(3-3)require
(4-4)ghost/core/core/server/services/url/Resources.js (1)
require
(4-4)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: Ghost-CLI tests
- GitHub Check: Unit tests (Node 22.13.1)
- GitHub Check: Regression tests (Node 20.11.1, sqlite3)
- GitHub Check: Unit tests (Node 20.11.1)
- GitHub Check: Database tests (Node 20.11.1, sqlite3)
- GitHub Check: Regression tests (Node 20.11.1, mysql8)
- GitHub Check: Database tests (Node 22.13.1, mysql8)
- GitHub Check: Database tests (Node 20.11.1, mysql8)
- GitHub Check: i18n
- GitHub Check: Lint
🔇 Additional comments (3)
ghost/core/core/server/services/Users.js (1)
10-10
: Correct import path for post events.
The import ofPostsBulkAddTagsEvent
has been updated to use the local shared events module (../../shared/events
) instead of the external@tryghost/post-events
package. The relative path is correct given the file’s location (server/services
), and it aligns with changes in other service files.ghost/core/core/server/services/posts/PostsService.js (1)
15-15
: Align event imports to local shared module.
Redirecting event imports to../../../shared/events
ensures the post event classes are sourced from the consolidated core codebase. The relative path is accurate for theposts
subdirectory and matches the structure used inUsers.js
.ghost/core/test/unit/shared/events/post-events.test.ts (1)
3-9
: Update test imports to local event files.
The test now imports each post event class directly from its specific file undercore/shared/events
, replacing grouped imports from the removed package. The relative paths (e.g.,../../../../core/shared/events/PostsBulkAddTagsEvent
) correctly resolve from the test directory. This maintains test coverage without altering test logic.
fix https://linear.app/ghost/issue/ENG-2382/member-attribution - this commit moves the lib code and tests to the core folder so we can colocate code in one place rather than splitting it out across packages, which increases the cognitive load and overhead
052422b
to
733891e
Compare
fix https://linear.app/ghost/issue/ENG-2383/tiers - this commit moves the lib code and tests to the core folder so we can colocate code in one place rather than splitting it out across packages, which increases the cognitive load and overhead
0ea8f65
to
257eca9
Compare
fix https://linear.app/ghost/issue/ENG-2384/link-replacer - this commit moves the lib code and tests to the core folder so we can colocate code in one place rather than splitting it out across packages, which increases the cognitive load and overhead
60567a5
to
8208fb8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #23135 +/- ##
==========================================
- Coverage 71.84% 71.83% -0.01%
==========================================
Files 1435 1435
Lines 99367 99333 -34
Branches 12201 12199 -2
==========================================
- Hits 71388 71354 -34
Misses 26989 26989
Partials 990 990
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fix https://linear.app/ghost/issue/ENG-2385/offers - this commit moves the lib code and tests to the core folder so we can colocate code in one place rather than splitting it out across packages, which increases the cognitive load and overhead
6d5f035
to
04a298e
Compare
fix https://linear.app/ghost/issue/ENG-2381/post-events