fix:keine features wurden in app.py registriert
This commit is contained in:
parent
f9d2f2061e
commit
f2fb7fd739
3 changed files with 11 additions and 22 deletions
10
app.py
10
app.py
|
|
@ -297,6 +297,16 @@ async def lifespan(app: FastAPI):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(f"Bootstrap check failed (may already be initialized): {str(e)}")
|
logger.warning(f"Bootstrap check failed (may already be initialized): {str(e)}")
|
||||||
|
|
||||||
|
# Register all feature definitions in RBAC catalog (for /api/features/ endpoint)
|
||||||
|
try:
|
||||||
|
from modules.security.rbacCatalog import getCatalogService
|
||||||
|
from modules.system.registry import registerAllFeaturesInCatalog
|
||||||
|
catalogService = getCatalogService()
|
||||||
|
registerAllFeaturesInCatalog(catalogService)
|
||||||
|
logger.info("Feature catalog registration completed")
|
||||||
|
except Exception as e:
|
||||||
|
logger.error(f"Feature catalog registration failed: {e}")
|
||||||
|
|
||||||
# Get event user for feature lifecycle (system-level user for background operations)
|
# Get event user for feature lifecycle (system-level user for background operations)
|
||||||
rootInterface = getRootInterface()
|
rootInterface = getRootInterface()
|
||||||
eventUser = rootInterface.getUserByUsername("event")
|
eventUser = rootInterface.getUserByUsername("event")
|
||||||
|
|
|
||||||
15
config.ini
15
config.ini
|
|
@ -36,12 +36,6 @@ Web_Crawl_RETRY_DELAY = 2
|
||||||
# Web Research configuration
|
# Web Research configuration
|
||||||
Web_Research_MAX_DEPTH = 2
|
Web_Research_MAX_DEPTH = 2
|
||||||
Web_Research_MAX_LINKS_PER_DOMAIN = 4
|
Web_Research_MAX_LINKS_PER_DOMAIN = 4
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
<<<<<<< Updated upstream
|
|
||||||
Web_Research_CRAWL_TIMEOUT_MINUTES = 10
|
|
||||||
=======
|
|
||||||
>>>>>>> feat/chatbot-althaus-integration
|
|
||||||
Web_Research_CRAWL_TIMEOUT_MINUTES = 10
|
Web_Research_CRAWL_TIMEOUT_MINUTES = 10
|
||||||
|
|
||||||
# STAC API Connector configuration (Swiss Topo)
|
# STAC API Connector configuration (Swiss Topo)
|
||||||
|
|
@ -49,13 +43,4 @@ Connector_StacSwisstopo_BASE_URL = https://data.geo.admin.ch/api/stac/v1
|
||||||
Connector_StacSwisstopo_TIMEOUT = 30
|
Connector_StacSwisstopo_TIMEOUT = 30
|
||||||
Connector_StacSwisstopo_MAX_RETRIES = 3
|
Connector_StacSwisstopo_MAX_RETRIES = 3
|
||||||
Connector_StacSwisstopo_RETRY_DELAY = 1.0
|
Connector_StacSwisstopo_RETRY_DELAY = 1.0
|
||||||
<<<<<<< HEAD
|
|
||||||
Connector_StacSwisstopo_ENABLE_CACHE = True
|
Connector_StacSwisstopo_ENABLE_CACHE = True
|
||||||
=======
|
|
||||||
Connector_StacSwisstopo_ENABLE_CACHE = True
|
|
||||||
|
|
||||||
# Tavily AI Connector configuration (Web Search & Research)
|
|
||||||
# Get your API key from https://tavily.com
|
|
||||||
# Connector_AiTavily_API_SECRET = your_tavily_api_key_here
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
>>>>>>> feat/chatbot-althaus-integration
|
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,6 @@ from fastapi import APIRouter, HTTPException, Depends, Body, Request, Query, Pat
|
||||||
from modules.auth import limiter, getCurrentUser
|
from modules.auth import limiter, getCurrentUser
|
||||||
|
|
||||||
# Import models
|
# Import models
|
||||||
<<<<<<< Updated upstream:modules/routes/routeRealEstate.py
|
|
||||||
from modules.datamodels.datamodelUam import User
|
|
||||||
from modules.datamodels.datamodelPagination import PaginationParams, PaginatedResponse, PaginationMetadata
|
|
||||||
from modules.datamodels.datamodelRealEstate import (
|
|
||||||
=======
|
|
||||||
from modules.datamodels.datamodelPagination import (
|
from modules.datamodels.datamodelPagination import (
|
||||||
PaginationParams,
|
PaginationParams,
|
||||||
PaginatedResponse,
|
PaginatedResponse,
|
||||||
|
|
@ -31,8 +26,7 @@ from modules.datamodels.datamodelPagination import (
|
||||||
)
|
)
|
||||||
from modules.interfaces.interfaceDbApp import getRootInterface
|
from modules.interfaces.interfaceDbApp import getRootInterface
|
||||||
from modules.interfaces.interfaceFeatures import getFeatureInterface
|
from modules.interfaces.interfaceFeatures import getFeatureInterface
|
||||||
from .datamodelFeatureRealEstate import (
|
from modules.features.realEstate.datamodelFeatureRealEstate import (
|
||||||
>>>>>>> Stashed changes:modules/features/realEstate/routeFeatureRealEstate.py
|
|
||||||
Projekt,
|
Projekt,
|
||||||
Parzelle,
|
Parzelle,
|
||||||
Dokument,
|
Dokument,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue