Feat/Add video request feature and display request list#280
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request introduces a new video request feature. It adds a dedicated Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant B as Browser
participant V as RequestVideoView
participant DB as Database
U->>B: Navigate to /videos/request/
B->>V: Sends GET request for video request form
V-->>B: Returns video request form
U->>B: Fills and submits the form
B->>V: POST /videos/request/ with form data
V->>V: Validate form data
alt Data is valid
V->>DB: Create new VideoRequest record
DB-->>V: Confirmation of save
V-->>B: Redirect to success page
else Data is invalid
V-->>B: Re-render form with error messages
end
sequenceDiagram
participant B as Browser
participant EV as EducationalVideosListView
participant UV as UploadedVideosListView
participant RV as RequestedVideosListView
participant DB as Database
B->>EV: GET request for videos page
EV->>UV: Retrieve uploaded videos data
UV->>DB: Query for uploaded videos
DB-->>UV: Return uploaded videos list
EV->>RV: Retrieve requested videos data
RV->>DB: Query for video request records
DB-->>RV: Return video requests list
EV->>B: Return combined context with videos and requests
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🚨 Missing Issue LinkThis pull request appears to not reference any GitHub issue. As per our workflow requirements, all PRs should address an existing issue. This ensures:
How to Fix ThisPlease link this PR to an existing issue using one of these methods:
This PR will be automatically closed. Feel free to reopen it once you've linked it to an issue or added appropriate labels. Thank you for your contribution! |
🚨 Missing Issue LinkThis pull request appears to not reference any GitHub issue. As per our workflow requirements, all PRs should address an existing issue. This ensures:
How to Fix ThisPlease link this PR to an existing issue using one of these methods:
This PR will be automatically closed. Feel free to reopen it once you've linked it to an issue or added appropriate labels. Thank you for your contribution! |
|
Fixes : #254 |
Fixes : #254
This PR implements the ability for someone to request an educational video.
Features Implemented
Added
web/views.py.web/models.py.web/forms.py.web/templates/videos/request_video.html.Displayed the list of video requests.
web/views.py.web/templates/videos/list.html.Summary by CodeRabbit