Discussion: Backend/Frontend Integration for Assignment and Quiz Management UI #159
Replies: 5 comments
-
|
Hey Jose, thanks for the detailed breakdown—super helpful! The UI looks great so far, and I really appreciate how you laid out each backend integration point clearly. Here are my quick thoughts on the open questions:
As for the flow, your suggested chain of Let me know if we want to sync on payload examples—I’d be happy to help flesh those out! 🔧 Thanks again for kicking this off so thoughtfully! |
Beta Was this translation helpful? Give feedback.
-
|
Hi Jose!
I don’t think it should be associated, and that the student should be assigned after. This would make it easier for tutors to reuse assignments.
I think it should be created with a separate manual POST request, for the situation where an assignment doesn’t have a quiz.
I think the backend should auto-increment this, maybe implement a randomized order even? Frontend should be able to edit the order but maybe initially incremented would be best.
An array of choices (like a, b, c, d) would be convenient but ultimately is not essential.
It would add complexity to embed it, a PATCH makes more sense. Let me know if you need anything else from a backend perspective! |
Beta Was this translation helpful? Give feedback.
-
|
Hey Jose! Here are my thoughts regarding your key questions for the team: 1. Endpoint Structure
2. Nested Object Creation
3. Editing SupportPriority Order:
4. Validation RulesField-Specific Rules:
5. Permission EnforcementImplementation:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @AbdulAlharbi!Really appreciate your thoughtful feedback and for helping clarify these backend integration points. Your input definitely brings more structure to how we move forward with connecting everything.
Sounds like we're aligned on the core flow ( Let’s definitely sync on example payloads soon—I’ll start drafting a few and will loop you in once I have a baseline ready to review together. Thanks again for helping shape this integration roadmap. Looking forward to shipping a really clean experience end-to-end! |
Beta Was this translation helpful? Give feedback.
-
Thanks @aviendha-andrusReally appreciate your detailed responses and backend perspective—it’s incredibly helpful to align on this before moving forward with implementation.
Thanks again for weighing in! Your insights make the backend/frontend handoff much smoother. I’ll sync again once I start wiring up real API endpoints and will keep you posted if I hit any edge cases or need clarification on response formats. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
📢 Discussion: Backend/Frontend Integration for Assignment and Quiz Management UI
Context
The Assignment and Quiz Management UI has been implemented and merged into
main. The interface enables tutors to:The frontend currently uses mock data for testing, but is structured in alignment with the expected backend schema. All views and form logic are encapsulated within a single
AssignmentCreate.jsxcomponent and styled modularly throughAssignmentCreate.css.🔧 Backend Preparation
Based on the Django models for
Assignment,Quiz,Question,Choice, andSolution, we are looking to align frontend data handling with backend expectations. Below are key items requiring clarification:Assignment
title,description,assignment_type,deadline,student(nullable),upload_record(nullable)student_idbe included in the POST request during assignment creation, or should the association happen afterward?Quiz
assignment,num_of_questions,attempts,time_limit(optional)Question
quiz,question_type,order_of_question,question_text,pointsorder_of_question, or will the backend auto-increment this?Choice
choice_textandis_correctvalues for MC questions/choices/endpoint?Solution
choiceIDs are capturedshort_answer_textis included❓ Key Questions for the Team
student,upload_record, orassignment_typecombinations)?💬 Let Us Know
Assignment,Quiz,Question,Solution)question.order_of_questionis critical, or if the backend will determine orderingAssignment→Quiz→Questions→Choices→SolutionsLooking forward to aligning frontend and backend more closely in the next iteration. Let me know if example payloads or diagrams would help solidify expectations.
Related PR: #155
Please check out this PR to see the screenshots taken of the current website. and to see the flow of the pages with the constructed UML
Beta Was this translation helpful? Give feedback.
All reactions