feat: architectural refactor for deployment and multi-user session management#170
Open
Omdeepb69 wants to merge 2 commits intoc2siorg:mainfrom
Open
feat: architectural refactor for deployment and multi-user session management#170Omdeepb69 wants to merge 2 commits intoc2siorg:mainfrom
Omdeepb69 wants to merge 2 commits intoc2siorg:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.