refactor: Phase 1.4 - Remove Old Monolithic Structure#115
Merged
JacobCoffee merged 9 commits intomainfrom Nov 23, 2025
Merged
Conversation
All code has been migrated to services: - Bot code → services/bot/ - API code → services/api/ - Shared code → packages/byte-common/ This completes Phase 1.4 of the microservices migration.
Remove references to the old monolithic byte_bot directory structure that no longer exists after the microservices migration.
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR completes Phase 1.4 of the microservices migration by deleting the legacy monolithic byte_bot/ codebase and cleaning up the remaining configuration reference in .gitignore, leaving only the new services- and packages-based structure in use. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
🚅 Environment byte-pr-115 in byte has no services deployed. |
Contributor
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- Now that the entire byte_bot/ tree is removed, it’s worth running a quick repo-wide search for
byte_botto catch any remaining import paths, entry points, or config references that could cause runtime errors. - Double-check CI/build scripts (e.g., Makefiles, workflow YAMLs, packaging configs) for any commands that previously invoked
byte_bot/cli.pyor the old server entry points so they align fully with the new services layout.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Now that the entire byte_bot/ tree is removed, it’s worth running a quick repo-wide search for `byte_bot` to catch any remaining import paths, entry points, or config references that could cause runtime errors.
- Double-check CI/build scripts (e.g., Makefiles, workflow YAMLs, packaging configs) for any commands that previously invoked `byte_bot/cli.py` or the old server entry points so they align fully with the new services layout.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Remove [project] section and scripts that referenced deleted byte_bot/ directory. Convert to pure workspace configuration for microservices. Changes: - Remove [project], [project.scripts], and [project.entry-points] - Update coverage to only track byte-common - Update pytest to only cover byte-common - Update ty paths to exclude removed byte_bot/ - Update ruff src paths for new structure - Remove byte_bot-specific per-file-ignores
uv was looking for byte_bot_service/ based on project name but the actual module is byte_bot/. Configure build backend to use src/ as module root.
Change name from 'byte-bot-service' to 'byte-bot' to match the actual module name 'byte_bot' (uv converts hyphens to underscores).
Replace obsolete byte_bot.utils import with byte_common.utils.strings
Required for dateutil.zoneinfo import in litestar plugin
- Update docs/conf.py to not import from deleted byte_bot module - Update models.rst to reference byte_common.models instead - Add TODO note for full docs restructuring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes Phase 1.4 of the microservices migration by removing the old monolithic
byte_bot/directory and cleaning up related configuration.This PR removes all legacy code that has been successfully migrated to the new microservices architecture:
services/bot/services/api/packages/byte-common/Changes
Removed
byte_bot/directory (113 files, 15,550 lines)byte_bot/byte/)byte_bot/server/)byte_bot/cli.py)byte_bot/utils.py)Updated
.gitignore: Removed obsoletebyte_bot/path referencesTesting
Migration Progress
Notes
railway.jsonstill references old commands but will be updated in Phase 4 (Production Readiness)🤖 Generated with Claude Code
Summary by Sourcery
Remove the deprecated monolithic byte_bot implementation now that its functionality has been migrated to the new microservices structure.
Enhancements: