Skip to content

feat: architectural refactor for deployment and multi-user session management#170

Open
Omdeepb69 wants to merge 2 commits intoc2siorg:mainfrom
Omdeepb69:feat/centralize-api-layer-session-scaffolding
Open

feat: architectural refactor for deployment and multi-user session management#170
Omdeepb69 wants to merge 2 commits intoc2siorg:mainfrom
Omdeepb69:feat/centralize-api-layer-session-scaffolding

Conversation

@Omdeepb69
Copy link
Copy Markdown

This PR significantly modernizes the GDB-UI architecture to fulfill two core GSoC objectives: First Deployment and Multi-user Session Management.

Key Changes:

Centralized API Layer: Replaced hardcoded backend URLs across all React components with a centralized Axios singleton (

webapp/src/services/api.js
).
Environment Configuration: Introduced .env support for Vite, allowing the app to be deployment-ready without modifying the source code.
Session Scaffolding: Refactored the Flask backend (

gdbui_server/main.py
) to move away from global singletons. It now uses a session dictionary mapping X-Session-ID headers to isolated GDB processes, enabling multiple users to debug concurrently in the future.
UX & Routing: Fixed initial blank-page issues by implementing automatic redirects from the root and /login routes to the debugger dashboard.
Verification:

Successfully verified backend stability with 20/20 pytest passing.
Confirmed frontend connectivity through npm run dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant