Skip to content

refactor: migrate to monorepo structure#28

Merged
a-klos merged 4 commits into
refactor/monorepofrom
dev/monorepo-migration
Jul 15, 2025
Merged

refactor: migrate to monorepo structure#28
a-klos merged 4 commits into
refactor/monorepofrom
dev/monorepo-migration

Conversation

@a-klos
Copy link
Copy Markdown
Member

@a-klos a-klos commented Jul 3, 2025

This pull request includes significant changes to the codebase, primarily focused on removing unused utility functions, adding new infrastructure setup files, and introducing project documentation. Below is a categorized summary of the most important changes:

Removal of Unused Utility Functions

Infrastructure Setup

Project Documentation

- Move all services to services/ directory
- Move shared libraries from rag-core-library submodule to libs/
- Move infrastructure content from rag-infrastructure submodule to infrastructure/
- Copy important tooling files (api-generator.sh, Makefile) to tools/
- Update api-generator.sh paths for new monorepo structure
- Clean up .git directories from copied content

This establishes the foundation for the monorepo migration while preserving all existing functionality.
@a-klos a-klos changed the base branch from main to refactor/monorepo July 3, 2025 10:54
@a-klos a-klos marked this pull request as ready for review July 3, 2025 10:54
@a-klos a-klos changed the title refactor!: migrate to monorepo structure refactor: migrate to monorepo structure Jul 3, 2025
a-klos added 3 commits July 3, 2025 12:57
- Deleted pyproject.toml which contained configurations for flake8, black, isort, pylint, and poetry dependencies.
- Removed rag-core-makefile that managed linting and lock updates for various libraries.
#30)

This pull request restructures the project by moving core libraries and
service-specific files into dedicated `libs` and `services` directories,
respectively. It updates paths across multiple files to reflect this new
directory structure and ensures that build, lint, and test processes are
aligned with the changes.

### Directory Restructuring

*
[`.github/workflows/lint-and-test.yml`](diffhunk://#diff-9a979a1e38ba79e2c75e54c4bf21fe1a2a1b935e1736666565f992e634dadd0fL82-R81):
Updated Dockerfile paths in the lint image build step to use the new
`services` directory structure.
*
[`Makefile`](diffhunk://#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52L4-R30):
Modified commands for linting, updating lock files, formatting with
`black`, and building Docker images to reflect the new `libs` and
`services` directories.
*
[`Tiltfile`](diffhunk://#diff-c2ee8653e1d6b85f0aadf87cd438a9250806c052877248442be4d434cbc52425L13-R13):
Updated context paths for Docker builds and live updates to point to the
new `libs` and `services` directories.
[[1]](diffhunk://#diff-c2ee8653e1d6b85f0aadf87cd438a9250806c052877248442be4d434cbc52425L13-R13)
[[2]](diffhunk://#diff-c2ee8653e1d6b85f0aadf87cd438a9250806c052877248442be4d434cbc52425L144-R144)
[[3]](diffhunk://#diff-c2ee8653e1d6b85f0aadf87cd438a9250806c052877248442be4d434cbc52425L185-R185)
[[4]](diffhunk://#diff-c2ee8653e1d6b85f0aadf87cd438a9250806c052877248442be4d434cbc52425L217-R217)
[[5]](diffhunk://#diff-c2ee8653e1d6b85f0aadf87cd438a9250806c052877248442be4d434cbc52425L261-R261)
[[6]](diffhunk://#diff-c2ee8653e1d6b85f0aadf87cd438a9250806c052877248442be4d434cbc52425L302-R322)

### Core Libraries

*
[`libs/Makefile`](diffhunk://#diff-f68dbc44be30d6e074943f5b0c5cd5ef6d8c65f24fded382bd3e363209be5c88R1-R25):
Added a new Makefile for managing linting, lock file updates,
formatting, and testing for core libraries in the `libs` directory.

### Dependency Updates

*
[`services/admin-backend/pyproject.toml`](diffhunk://#diff-7be99b3586ebefbb9757532b67d9bd826779bfe12db834326790c00f868238e7L93-R93):
Updated the path for `admin-api-lib` to point to the new `libs`
directory.
*
[`services/document-extractor/pyproject.toml`](diffhunk://#diff-bda9860363f25ca7829f0bc0121455b5cfea15f6ecc4e98d168aba411d9653c9L54-R54):
Updated the path for `extractor-api-lib` to point to the new `libs`
directory.
*
[`services/rag-backend/pyproject.toml`](diffhunk://#diff-575f4ba32d7ff340b37eb2f875cb9574553092b79335faadd5f3b6be662b6925L9-R9):
Updated the path for `rag-core-api` to point to the new `libs`
directory.
@a-klos a-klos merged commit 67e90d1 into refactor/monorepo Jul 15, 2025
2 checks passed
@a-klos a-klos deleted the dev/monorepo-migration branch July 15, 2025 10:36
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.

1 participant