Skip to content

Renamed files to kebab-case - core - services - part 2#8

Open
tomerqodo wants to merge 2 commits intoaugment_full_base_renamed_files_to_kebab-case_-_core_-_services__-_part_2_pr7from
augment_full_head_renamed_files_to_kebab-case_-_core_-_services__-_part_2_pr7
Open

Renamed files to kebab-case - core - services - part 2#8
tomerqodo wants to merge 2 commits intoaugment_full_base_renamed_files_to_kebab-case_-_core_-_services__-_part_2_pr7from
augment_full_head_renamed_files_to_kebab-case_-_core_-_services__-_part_2_pr7

Conversation

@tomerqodo
Copy link
Copy Markdown

Benchmark PR from agentic-review-benchmarks#7

@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented Jan 26, 2026

🤖 Augment PR Summary

Summary: This PR continues the core/services rename effort by converting many server-side service modules to kebab-case filenames and updating all affected imports.

Changes:

  • Renamed a large set of service files (and related submodules/events) from PascalCase to kebab-case
  • Updated `require()`/`import` paths across API endpoints, services, and worker jobs to match new filenames
  • Adjusted service wrappers’ wiring (`index.js` files) to reference renamed implementations
  • Updated JSDoc/TypeScript import references used for type annotations
  • Updated unit/integration/e2e tests to import the renamed modules
  • Included minor whitespace cleanups and added missing trailing newlines in a few files

Technical Notes: The change is primarily mechanical but correctness depends on every updated import matching an on-disk filename (especially on case-sensitive filesystems).

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode Bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

const EmailEventProcessor = require('../email-service/EmailEventProcessor');
const MailgunProvider = require('./EmailAnalyticsProviderMailgun');
const EmailAnalyticsService = require('./email-analytics-service');
const EmailEventStorage = require('../email-service/email-event-storage');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

require('../email-service/email-event-storage') doesn’t match an existing file under services/email-service (it’s currently EmailEventStorage.js), so this will fail on case-sensitive filesystems. Same issue for email-event-processor.

Other Locations
  • ghost/core/core/server/services/email-analytics/email-analytics-service-wrapper.js:13

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

const WellKnownController = require('./controllers/well-known-controller');

const {EmailSuppressedEvent} = require('../../email-suppression-list/email-suppression-list');
const MagicLink = require('../../lib/magic-link/magic-link');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

require('../../lib/magic-link/magic-link') doesn’t correspond to a file in services/lib/magic-link (currently MagicLink.js), so this will throw "Cannot find module" on case-sensitive filesystems.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

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