Repository navigation
Feat/config logging - #84
Merged
Merged
Conversation
Move shared configuration, logging, error, and CourtListener service modules under backend/app, update imports across the application, and add core dependencies for the refactored backend.
Add `.env` to `.gitignore` so environment-specific configuration and secrets are not committed.
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 refactors core configuration, error handling, and logging for the application, migrating them to a new structure under
backend/app/core/, simplifying settings, and improving maintainability. It also updates imports throughout the codebase to use the new configuration and error modules, and introduces a new.envtemplate for environment variables.Core Infrastructure Refactor and Improvements:
.envtemplate file for environment variables, guiding users to provide necessary configuration for the application and external APIs.core/config.pywith a new, simplified settings module atbackend/app/core/config.py, using Pydantic'sBaseSettingsfor environment-based configuration, and providing a cachedget_settings()accessor. [1] [2]backend/app/core/errors.pywith base and specialized exception classes, replacing the oldcore/exceptions.py. [1] [2]backend/app/core/logging.pyusingstructlogfor structured logging, and removed the oldcore/logging.py. [1] [2]Codebase-wide Import Updates:
backend/app/core/. [1] [2] [3] [4] [5] [6] [7] [8]Service File Organization:
services/courtlistener.pytobackend/app/services/courtlistener.pyand updated relevant imports.These changes modernize and standardize the application's configuration, logging, and error handling, making it easier to maintain and extend.