-
-
Notifications
You must be signed in to change notification settings - Fork 428
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
The /generate_gform endpoint currently returns a raw JSON response containing only responderUri, while web and extension clients expect a structured object with form_link.
This causes inconsistent handling and can result in undefined URL opening behavior.
Current Behavior
- Backend returns non-uniform response shape.
- Frontend/extension tries to read
result.form_link. - In some flows, URL resolution is inconsistent.
Expected Behavior
- Backend should return a consistent JSON contract:
form_linkedit_link
- Clients should open
form_linkreliably. - Invalid payloads should return clear
400errors.
Proposed Fix
- Normalize backend response schema in
/generate_gform. - Add input validation for
qa_pairstype. - Remove server-side browser tab opening side effect.
- Add backward-compatible URL handling in clients for legacy and new response formats.
Steps to Reproduce
- Generate questions in EduAid web or extension.
- Click "Generate Google Form".
- Observe response parsing mismatch (backend vs consumer expectation).
Logs and Screenshots
No response
Environment Details
- Backend: Flask
- Clients: EduAid Web + Extension
Impact
Medium - Feature works but has issues
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working