Skip to content

Dev#100

Merged
dcloud347 merged 55 commits into
mainfrom
dev
Aug 4, 2025
Merged

Dev#100
dcloud347 merged 55 commits into
mainfrom
dev

Conversation

@dcloud347

Copy link
Copy Markdown
Contributor

This pull request introduces several updates, including environment configuration changes, API endpoint enhancements, and codebase simplifications. The most significant changes include adding new environment variables, refactoring API endpoints for authentication and repository management, and removing deprecated code. Below is a categorized summary of the most important changes:

Environment Configuration Updates

  • Added new environment variables for general settings (PROMETHEUS_ENVIRONMENT, PROMETHEUS_BACKEND_CORS_ORIGINS) and JWT authentication (PROMETHEUS_JWT_SECRET_KEY) in .github/workflows/pytest_and_coverage.yml, docker-compose.yml, docker-compose.win_mac.yml, and example.env. [1] [2] [3] [4] [5] [6] [7] [8]

API Endpoint Enhancements

  • Added a new login endpoint in prometheus/app/api/auth.py to facilitate user authentication and token generation.
  • Refactored the answer_issue endpoint in prometheus/app/api/issue.py to use a new response model (Response[IssueResponse]) and updated service calls for improved modularity. [1] [2] [3]
  • Refactored repository-related endpoints in prometheus/app/api/repository.py to improve error handling, modularity, and response consistency.

Documentation Updates

  • Updated the README.md to include instructions for generating a secure JWT secret key and corrected an API documentation link for the /issue/answer/ endpoint. [1] [2]

Codebase Simplification

  • Removed the deprecated create_db_and_tables and create_superuser methods from prometheus/app/db.py, as they are no longer required.
  • Replaced the ServiceCoordinator class with a dictionary-based service initialization in prometheus/app/dependencies.py for better modularity and maintainability.

@dcloud347 dcloud347 merged commit 6dd7a35 into main Aug 4, 2025
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.

1 participant