Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement comprehensive mentee model with media and achievements #152

Open
8 tasks
Madhawa97 opened this issue Aug 16, 2024 · 4 comments
Open
8 tasks

Implement comprehensive mentee model with media and achievements #152

Madhawa97 opened this issue Aug 16, 2024 · 4 comments
Labels
backend A backend task priority: medium Medium priority task

Comments

@Madhawa97
Copy link
Member

Description:
Enhance the mentee model to include media content (blogs, etc.) and achievements, storing them in a single table with a type identifier.

Tasks:

  • Design new database schema
  • Implement database migrations
  • Create new API endpoints
  • Update existing endpoints
  • Implement data validation
  • Write unit tests

Acceptance Criteria:

  • Design and implement a new database table mentee_content with fields (Feel free to alter if needed):
    • id (primary key)
    • mentee_id (foreign key to mentee table)
    • type (enum: 'media', 'achievement')
    • title
    • description
    • url (for media content)
    • date_added
  • Create API endpoints for:
    • Adding new media/achievement
    • Updating existing media/achievement
    • Deleting media/achievement
    • Fetching all media/achievements for a mentee
  • Implement proper validation for the new endpoints
  • Update the mentee profile endpoint to include media and achievements
  • Implement sorting and filtering options for media and achievements
  • Update the mentor profile endpoint to include mentee information with their media and achievements
  • Implement proper error handling for all new and updated endpoints
  • Write unit tests for the new functionality

Additional Information:

  • Ensure proper indexing on the new table for efficient queries
  • Consider implementing pagination for fetching media and achievements
  • Update API documentation to reflect these changes

Related Dependencies or References:

@Disura-Randunu
Copy link
Contributor

@anjula-sack shall i work on this?

@anjula-sack
Copy link
Member

@Disura-Randunu There's another high priority issue to be done. Maybe you can work on it. I'll create the issue

@Disura-Randunu
Copy link
Contributor

@Disura-Randunu There's another high priority issue to be done. Maybe you can work on it. I'll create the issue

ok

@rdwaynedehoedt
Copy link

@Madhawa97 @anjula-sack shall i work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend A backend task priority: medium Medium priority task
Projects
Status: No status
Development

No branches or pull requests

4 participants