Skip to content

Forum and Help Requests Implementation Plan

asyabetulkeskin edited this page Apr 7, 2026 · 1 revision

Implementation Plan — Forum and Help Requests Subgroup

1. Scope Definition

This implementation plan outlines the responsibilities and deliverables of the Forum and Help Requests Subgroup.

The scope includes:

  • Community forum post creation and browsing
  • Global, standard, and urgent forum flows
  • Post comments, voting, reposting, and reporting
  • Image attachment support for forum posts
  • Help request creation and lifecycle management
  • Help-request comments and expert-response workflow
  • Standalone help-offer creation and browsing
  • Hub-based filtering and role-aware behavior
  • Cross-platform access through web and mobile clients
  • Push-notification support for urgent or assistance-related events

The scope excludes:

  • Direct user-to-user messaging
  • Full moderation dashboard and admin workflows
  • Automated volunteer/request matching engine
  • Offline synchronization for forum and help-request content
  • Advanced search infrastructure and large-scale pagination

2. System Overview

The forum and help-request subsystem is designed to support both community discussion and actionable neighborhood assistance.

The subsystem is divided into two related domains:

  • Forum: community discussion, announcements, urgent broadcasts, reposting, and interaction
  • Help Requests: concrete assistance requests, expert participation, and standalone offers of help

Both domains are served by a shared Django REST backend and consumed by:

  • React-based web frontend
  • Android mobile application

3. Forum Domain Overview

Objective

To provide a structured discussion area for neighborhood communication.

Description

The forum allows users to browse and create posts under different visibility and urgency contexts.

Forum Types

  • GLOBAL
  • STANDARD
  • URGENT

Functional Behavior

  • Global posts are not tied to a specific hub
  • Standard and urgent posts are associated with a hub
  • Users can browse posts by forum type
  • Users can view post details and engagement information
  • The system supports both list and detail representations of posts

4. Forum Post Creation and Management

Objective

To enable authenticated users to create and manage forum posts.

Description

Users create posts with a title, content, forum type, and optional image attachments.

Functional Behavior

  • The system allows authenticated users to create posts
  • The system validates hub requirements based on forum type
  • The system stores post author, forum type, content, and media references
  • Authors can update their own posts
  • Authors can delete their own posts
  • Hidden or removed states can be represented at the backend level

Endpoint Summary

  • GET /forum/posts/
  • POST /forum/posts/
  • GET /forum/posts/{id}/
  • PUT /forum/posts/{id}/
  • DELETE /forum/posts/{id}/

5. Forum Images

Objective

To support media attachments in community posts.

Description

Forum images are uploaded separately and then referenced from the post payload.

Functional Behavior

  • The system accepts multipart image uploads
  • The system validates allowed image types
  • The system applies per-file size limits
  • The system stores uploaded files and returns media URLs
  • The post payload stores image URLs as a list

Endpoint

  • POST /forum/upload/

6. Forum Interaction Features

Objective

To support community engagement and moderation-oriented interaction.

Description

Users can interact with posts through comments, voting, reposting, and reporting.

Functional Behavior

  • Users can add comments to forum posts
  • Comment counts are maintained efficiently
  • Comment authors can delete their own comments
  • Users can upvote or downvote posts
  • Repeating the same vote removes it
  • Switching vote type updates the counters accordingly
  • Users can repost another user’s post
  • Users cannot repost their own post
  • Users can report inappropriate posts
  • Reaching the report threshold can automatically hide a post

Endpoint Summary

  • GET /forum/posts/{id}/comments/
  • POST /forum/posts/{id}/comments/
  • DELETE /forum/comments/{id}/
  • POST /forum/posts/{id}/vote/
  • POST /forum/posts/{id}/repost/
  • POST /forum/posts/{id}/report/

7. Forum Notification Behavior

Objective

To improve awareness of urgent community announcements.

Description

Urgent forum posts can trigger push notifications to relevant users.

Functional Behavior

  • Urgent posts can trigger notification delivery
  • Hub-specific urgent posts target users in the same hub
  • The post author is excluded from recipient selection
  • Notification delivery uses device push tokens where available

8. Help Requests Domain Overview

Objective

To support concrete assistance needs in the neighborhood.

Description

Help requests are separate from forum discussion and represent actionable cases requiring response.

Functional Behavior

  • Users can create help requests with:
    • Category
    • Urgency
    • Title
    • Description
    • Optional images
    • Optional coordinates
    • Optional location text
  • Requests can belong to a hub or remain general
  • Requests track their lifecycle through status values

Status Model

  • OPEN
  • EXPERT_RESPONDING
  • RESOLVED

9. Help Request Creation and Management

Objective

To allow users to open, view, update, resolve, and delete help requests.

Description

The system provides CRUD-style access to help requests, with status updates handled through dedicated workflow rules.

Functional Behavior

  • Authenticated users can create help requests
  • The system may auto-assign the user’s hub when appropriate
  • Authors can update their own help requests
  • Authors can delete their own help requests
  • Authors can mark their help requests as resolved
  • Only the RESOLVED transition is directly accepted from the dedicated status endpoint

Endpoint Summary

  • GET /help-requests/
  • POST /help-requests/
  • GET /help-requests/{id}/
  • PUT /help-requests/{id}/
  • DELETE /help-requests/{id}/
  • PATCH /help-requests/{id}/status/

10. Help Request Images and Location Support

Objective

To provide richer situational context for assistance requests.

Description

Help requests may include uploaded images and location metadata.

Functional Behavior

  • The system accepts image uploads for help requests
  • The system validates image types and size constraints
  • The request payload can include image URLs
  • The request payload can include latitude and longitude
  • The request payload can include a human-readable location description

Endpoint

  • POST /help-requests/upload/

11. Help Request Comments and Expert Workflow

Objective

To support conversation and expert intervention around a request.

Description

Help-request comments form the main response thread for each request. Expert comments affect request status.

Functional Behavior

  • Users can list comments for a help request
  • Users can add comments to a help request
  • Comment counts are maintained as denormalized counters
  • Comment authors can delete their own comments
  • When an expert comments on an open request, the system promotes the request status to EXPERT_RESPONDING
  • If the last expert comment is removed and the request is not resolved, the system can revert the status to OPEN
  • Resolved requests are not reverted by expert-comment logic

Endpoint Summary

  • GET /help-requests/{id}/comments/
  • POST /help-requests/{id}/comments/
  • DELETE /help-requests/comments/{id}/

12. Help Offers

Objective

To let users advertise available skills and resources independently of a specific request.

Description

Help offers are standalone entries that describe what a user can provide to the neighborhood.

Functional Behavior

  • Users can create help offers
  • Offers can be filtered by hub and category
  • Offers store:
    • Category
    • Skill or resource
    • Description
    • Availability
  • Authors can delete their own offers

Endpoint Summary

  • GET /help-offers/
  • POST /help-offers/
  • DELETE /help-offers/{id}/

13. Notification Behavior for Help Requests

Objective

To notify relevant experts when new assistance requests are created.

Description

When a new help request is created in a hub, experts in that hub may receive push notifications.

Functional Behavior

  • The system targets expert users in the same hub
  • The author is excluded from notification recipients
  • Requests without a hub are not broadcast to all experts
  • Notification delivery uses stored device push tokens

14. Web Application Implementation

Components

  • ForumPage
  • PostCreatePage
  • PostDetailPage
  • MyPostsPage
  • HelpRequestsPage
  • HelpRequestCreatePage
  • HelpRequestDetailPage
  • Shared API service layer

Responsibilities

  • Display forum tabs and sorting options
  • Support post creation and interaction
  • Show comments, votes, reposts, and reports
  • Display and create help requests
  • Display and create help offers
  • Handle image upload flows
  • Respect authenticated user state and selected hub context

15. Mobile Application Implementation

Components

  • ForumActivity
  • CreatePostActivity
  • PostDetailActivity
  • HelpRequestListActivity
  • CreateHelpRequestActivity
  • HelpRequestDetailActivity
  • HelpOfferListActivity
  • CreateHelpOfferActivity
  • Retrofit API layer and domain models

Responsibilities

  • Support forum browsing and creation
  • Support help-request browsing and creation
  • Support comments, deletion, and resolution actions
  • Support help-offer browsing and creation
  • Support image-upload workflows
  • Support notification-aware mobile usage

16. Backend Implementation

Responsibilities

  • Define forum and help-request domain models
  • Enforce hub, role, and ownership rules
  • Maintain denormalized counters safely
  • Handle image-upload validation
  • Handle status transitions for help requests
  • Implement push-notification hooks
  • Provide consistent API contracts for both web and mobile clients

Key Apps

  • forum
  • help_requests

Key Backend Concerns

  • Author-only update/delete rules
  • Role-aware expert workflow
  • Atomic counter updates
  • Filterable list endpoints
  • JSON-based image URL storage
  • Push notification integration

17. Validation and Error Handling

Objective

To maintain data integrity and user-facing clarity.

Functional Behavior

  • The system validates required fields on create and update
  • The system enforces hub requirements for non-global forum posts
  • The system rejects duplicate reposts
  • The system rejects duplicate reports on the same post by the same user
  • The system restricts destructive actions to content owners
  • The system restricts help-request resolution to the author
  • The system returns structured API error responses

18. Cross-Platform Consistency

Objective

To ensure that forum and help-request behavior remains aligned across web and mobile clients.

Principles

  • Shared backend endpoints
  • Shared request/response structure
  • Consistent role handling
  • Consistent hub-based filtering
  • Comparable content lifecycle rules on both clients

19. Deliverables

The Forum and Help Requests Subgroup delivers:

  • Functional forum subsystem
  • Functional help-request subsystem
  • Post CRUD with engagement features
  • Help-request CRUD with status workflow
  • Help offers
  • Image upload support
  • Hub-based filtering
  • Mobile and web client integration
  • Push-notification integration for selected events

20. Current Limitations

The following limitations remain in the current implementation:

  • No direct messaging flow between requester and helper
  • No automated matchmaking between requests and offers
  • No full admin moderation dashboard yet
  • No offline-first queue/sync model for user-generated forum or help-request content
  • No advanced search, pagination, or large-scale content management layer yet

21. Future Extensions

The following features are planned but not included in the current implementation:

  • Direct communication between matched users
  • Advanced moderation and abuse-management tools
  • Search and pagination improvements
  • Recommendation or matching logic for offers and requests
  • Offline draft creation and deferred synchronization
  • Richer notification preferences and delivery controls

Clone this wiki locally