refactor: migrate to monorepo structure#28
Merged
Conversation
- 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.
- 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.
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.
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
frontend/libs/shared/utils/src/lib/date.utils.ts: RemovedextractTimefunction, which formatted aDateobject intoHH:MMformat.frontend/libs/shared/utils/src/lib/file-size-formatter.utils.ts: RemovedformatFileSizeToStringfunction, which converted file sizes into human-readable strings.frontend/libs/shared/utils/src/lib/is-empty.utils.ts: RemovedisEmptyandisNotEmptyfunctions for checking object emptiness.frontend/libs/shared/utils/src/lib/marked.utils.ts: RemovedinitializeMarkdownfunction, which customizedmarkedfor rendering markdown with modals and tables.frontend/libs/shared/utils/src/lib/uuid.util.ts: RemovednewUidfunction, which generated random UUIDs.Infrastructure Setup
infrastructure/local-cluster-setup/k3d-cluster-config.yaml: Added configuration for setting up a local Kubernetes cluster usingk3d, including eviction policies and a local registry.infrastructure/local-cluster-setup/setup-k3d-cluster.sh: Added a script to create the Kubernetes cluster, configure Helm, and install an NGINX ingress controller.Project Documentation
infrastructure/CODE_OF_CONDUCT.md: Added a Contributor Covenant Code of Conduct to establish community standards and enforcement guidelines.infrastructure/CONTRIBUTING.md: Added a guide for contributors, outlining steps for making contributions and expectations during the review process.infrastructure/LICENSE: Added Apache License 2.0 to define terms for use, reproduction, and distribution of the project.