Add organization and task queue features
- Introduced new models for `Organization` and `ReviewTask` to manage organizations and review tasks. - Implemented API endpoints for CRUD operations on organizations and tasks, including scanning organizations for repositories and PRs. - Developed a background worker for sequential processing of review tasks with priority handling and automatic retries. - Created frontend components for managing organizations and monitoring task queues, including real-time updates and filtering options. - Added comprehensive documentation for organization features and quick start guides. - Fixed UI issues and improved navigation for better user experience.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
Простой скрипт для создания таблиц в БД
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
from app.database import engine, Base
|
||||
from app.models import Organization, ReviewTask, Repository, PullRequest, Review, Comment
|
||||
|
||||
|
||||
async def create_tables():
|
||||
"""Создать все таблицы"""
|
||||
async with engine.begin() as conn:
|
||||
# Создать все таблицы
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
print("✅ Таблицы созданы успешно!")
|
||||
print(" - organizations")
|
||||
print(" - review_tasks")
|
||||
print(" - repositories")
|
||||
print(" - pull_requests")
|
||||
print(" - reviews")
|
||||
print(" - comments")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(create_tables())
|
||||
|
||||
Reference in New Issue
Block a user