dev #17

Merged
edraft merged 31 commits from dev into master 2025-03-12 10:09:01 +01:00
3 changed files with 11 additions and 5 deletions
Showing only changes of commit 6f9f108f0b - Show all commits

View File

@ -13,7 +13,12 @@ logger = APILogger("api.ws")
class AuthenticatedGraphQLTransportWSHandler(GraphQLTransportWSHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, on_connect=self.on_connect, on_disconnect=self.on_disconnect, **kwargs)
super().__init__(
*args,
on_connect=self.on_connect,
on_disconnect=self.on_disconnect,
**kwargs,
)
@staticmethod
async def on_connect(ws: WebSocket, message: dict):
@ -34,5 +39,3 @@ class AuthenticatedGraphQLTransportWSHandler(GraphQLTransportWSHandler):
async def on_disconnect(ws: WebSocket):
logger.debug(f"WebSocket connection {ws.state.request_id} closed")
return True

View File

@ -73,7 +73,11 @@ class Logger:
structured_message["request"] = {
"url": str(request.url),
"method": request.method if request.scope == "http" else "ws",
"data": asyncio.create_task(request.body()) if request.scope == "http" else None,
"data": (
asyncio.create_task(request.body())
if request.scope == "http"
else None
),
}
return str(structured_message)

View File

@ -6,7 +6,6 @@ import {
} from 'src/app/core/base/page.columns';
import { TableColumn } from 'src/app/modules/shared/components/table/table.model';
import { User } from 'src/app/model/auth/user';
import { Group } from 'src/app/model/entities/group';
@Injectable()
export class UsersColumns extends PageColumns<User> {