Skip to content
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

Major backend files structure change. #64

Merged
merged 10 commits into from
Dec 9, 2024

Conversation

ElemarJR
Copy link
Contributor

@ElemarJR ElemarJR commented Dec 9, 2024

No description provided.

- Introduced `pyrightconfig.json` for type checking configuration.
- Created `setup.py` files for `omni-api`, `omni-models`, and `omni-utils` packages.
- Added core utility functions in `omni_utils` for decorators, caching, and data manipulation.
- Implemented helper functions for formatting, slug generation, and week calculations.
- Enhanced logging capabilities with `ElkLogger` for request tracking in the API.
- Removed an unused line from `requirements.txt` to clean up dependencies.
- Deleted empty `__init__.py` files from `backend/models/src/base` and `backend/models/src/domain` to clean up the project structure.
- Introduced new files in `backend/models/src/omni_models` for `omnidatasets`, `omnimodels`, and various analytics modules, enhancing the organization of the codebase.
- Added multiple new datasets and analytics classes to improve data handling and analysis capabilities within the omni-models framework.
- Implemented new semantic models and domain classes to support enhanced functionality and data interactions across the application.
- Removed the "playground/src" directory from the Pyright configuration to streamline type checking.
- Updated import statements across multiple files to reflect the new structure under "omni_models" and "utils", enhancing code organization and maintainability.
- Consolidated imports in various modules, ensuring consistency and clarity in the codebase.
- Improved overall project structure by aligning imports with the new directory hierarchy.
- Updated `pyrightconfig.json` to include the new `shared/src` directory for improved type checking.
- Added `omni-shared` as a dependency in `setup.py` for both `api` and `models` to facilitate shared functionality.
- Refactored import statements across multiple files to utilize the new `omni_shared` module, enhancing code clarity and maintainability.
- Introduced new `globals.py` and `settings.py` in the `shared` directory to centralize shared configurations and global variables.
- Updated import paths across multiple files to utilize the new `omni_shared` and `omni_utils` modules, improving code organization and clarity.
- Replaced relative imports with absolute paths for better maintainability.
- Consolidated imports from `omni_utils.decorators` to streamline decorator usage throughout the codebase.
- Enhanced the `load_schema` function in `queries.py` to use a base directory path for schema file references, improving path management.
- Updated base image from Python 3.12 to 3.11 for compatibility.
- Changed working directory from /code to /app for better organization.
- Consolidated requirements files and installation commands for backend components.
- Enhanced the Dockerfile to include environment variables for Flask application.
- Streamlined the copy commands to reflect the new directory structure, improving clarity and maintainability.
- Updated import statements across multiple files to align with the new directory structure, improving code clarity and maintainability.
- Consolidated imports from various modules to streamline usage and ensure consistency throughout the codebase.
- Enhanced type checking configuration in `pyrightconfig.json` to reflect recent changes in project organization.
- Removed unused configurations and files to clean up the project structure and improve overall organization.
- Updated COPY commands in the Dockerfile to reflect the new directory structure, improving clarity and maintainability.
- Ensured that requirements files are copied from the correct paths, enhancing the build process for the backend.
@ElemarJR ElemarJR requested a review from dopic December 9, 2024 01:26
Copy link
Contributor

@dopic dopic left a comment

Choose a reason for hiding this comment

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

The Dockerfile looks good

@dopic dopic merged commit 656a7f1 into eximiaco-labs:main Dec 9, 2024
1 of 2 checks passed
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