Skip to content

feat(feedback): implémentation complète du formulaire de feedback - #6

Open
georgegale228 wants to merge 1 commit into
python-togo:mainfrom
georgegale228:feedback2026
Open

feat(feedback): implémentation complète du formulaire de feedback#6
georgegale228 wants to merge 1 commit into
python-togo:mainfrom
georgegale228:feedback2026

Conversation

@georgegale228

Copy link
Copy Markdown

Add a comprehensive feedback collection system for Python Togo events. Participants can now submit their reviews via a public endpoint, and administrators can manage these entries through an authenticated API.

Changes Made
New Endpoints

  • POST /api/feedback — Public endpoint allowing any participant to submit feedback without authentication
  • POST /api/v2/feedbacks/send — Admin endpoint to create feedback
  • GET /api/v2/feedbacks — Retrieve all feedback (admin)
  • GET /api/v2/feedbacks/{id} — Retrieve a single feedback by ID (admin)
  • PUT /api/v2/feedbacks/{id} — Update a feedback entry (admin)
  • DELETE /api/v2/feedbacks/{id} — Delete a feedback entry (admin)

Data Models (Pydantic)

  • FeedbackBase — Creation schema with the following fields: sex, age, profession, country, python_level, heard, rating (1-5), overall, favorite, improvements, comments, days (JSONB)
  • FeedbackSummary — Read schema
  • FeedbackUpdate — Partial update schema
  • FeedbacksList — Paginated feedback list

Database

  • Created the feedbacks table with automatic migration
  • Columns: demographic data, Python level, rating, overall experience, strengths, improvements, comments, event days (JSONB)

Utilities

  • app/utils/feedback.py — Asynchronous CRUD functions for feedback management

@georgegale228 georgegale228 changed the title feat : feedback 2026 implementé feat(feedback): implémentation complète du formulaire de feedback Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant