NetworkView: API routing fix, logout button, audit trail, port/notes editor tracking
- Fix frontend API base path (VITE_API_BASE env var, GraphPage hardcoded /api) - Add logout button to NetworkView sidebar (clears portal SSO) - Add AuditTrail component: inline change history on all entity pages - DB migration: add updated_at, last_edited_by to ports table - DB migration: add notes_last_edited_by, notes_updated_at to all entity tables - Backend: track actor on port create/update; notes editor on entity PUT - Frontend: extend types, MarkdownEditor shows last editor, port modal/list show last editor - Fix port CREATE TABLE definition to include new columns upfront - Add try/catch in handleSavePort to surface API errors in modal
This commit is contained in:
+3
-1
@@ -359,8 +359,9 @@ if module_enabled "digiserver"; then
|
||||
ADMIN_USERNAME=admin \
|
||||
ADMIN_PASSWORD=admin123 \
|
||||
PORTAL_JWT_SECRET=change-this-jwt-secret-in-production \
|
||||
PORTAL_LOGOUT_URL="http://localhost:${NGINX_PORT}/logout" \
|
||||
"$ROOT/digiserver-v2/.venv/bin/gunicorn" \
|
||||
--bind "0.0.0.0:$DIGISERVER_PORT" \
|
||||
--bind "127.0.0.1:$DIGISERVER_PORT" \
|
||||
--workers 2 \
|
||||
--timeout 120 \
|
||||
--chdir "$ROOT/digiserver-v2" \
|
||||
@@ -378,6 +379,7 @@ if module_enabled "itassets"; then
|
||||
SQLALCHEMY_DATABASE_URI="sqlite:///$ROOT/IT_asset_management/data/itassets.db" \
|
||||
PORTAL_JWT_SECRET=change-this-jwt-secret-in-production \
|
||||
PORTAL_LOGIN_URL="http://localhost:${NGINX_PORT}/login" \
|
||||
PORTAL_LOGOUT_URL="http://localhost:${NGINX_PORT}/logout" \
|
||||
FLASK_APP=run.py \
|
||||
"$ROOT/IT_asset_management/.venv/bin/python" "$ROOT/IT_asset_management/run.py"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user