- Implemented a comprehensive end-to-end testing script for the Sag module's HTTP API, covering various functionalities including case creation, updates, and file uploads. - Introduced a safe HTML sanitizer utility to ensure safe rendering of HTML content in the BMC Hub UI. - Added database migrations for new features including WAN connection marking for wall outlets, permanent audit trails for supplier invoices, and dedicated permissions for the Sag module. - Created a migration center for manual subscription and invoice migrations with relevant tables and indexes. - Added tests for migration center functionalities, ensuring stability and correctness of the new features.
21 lines
666 B
Python
21 lines
666 B
Python
"""Jinja views for the migration centre."""
|
|
from fastapi import APIRouter, Depends, Request
|
|
from fastapi.responses import HTMLResponse
|
|
from fastapi.templating import Jinja2Templates
|
|
|
|
from app.core.auth_dependencies import require_permission
|
|
|
|
router = APIRouter()
|
|
templates = Jinja2Templates(directory="app")
|
|
|
|
|
|
@router.get("/migration-center", response_class=HTMLResponse)
|
|
async def migration_center(
|
|
request: Request,
|
|
current_user: dict = Depends(require_permission("migration_center.view")),
|
|
):
|
|
return templates.TemplateResponse(
|
|
"modules/migration_center/templates/index.html",
|
|
{"request": request, "current_user": current_user},
|
|
)
|