Skip to content

Comments

Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 1 | New Feature: Unfollow#150

Open
RahwaZeslusHaile wants to merge 1 commit intoCodeYourFuture:mainfrom
RahwaZeslusHaile:unfollow-feature
Open

Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 1 | New Feature: Unfollow#150
RahwaZeslusHaile wants to merge 1 commit intoCodeYourFuture:mainfrom
RahwaZeslusHaile:unfollow-feature

Conversation

@RahwaZeslusHaile
Copy link

Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 1 | New Feature: Unfollow

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Feat: Add unfollow functionality

Summary

Adds the ability for users to unfollow other users.

Changes

  • Adds POST /unfollow/<follow_username> endpoint.
  • Implements unfollow logic in the data layer.
  • Updates profile UI to support unfollow action.

Testing

  • Manual smoke test:
    • Follow a user
    • Unfollow the same user
    • Verify follow list updates correctly

Notes

This PR contains only the unfollow-related commit after cleanup.
Please review my work — thank you!

@RahwaZeslusHaile RahwaZeslusHaile added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 18, 2026
Copy link

@OracPrime OracPrime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only comment is that in theory unfollow show be a DELETE of a follow, but that makes things complicated as DELETEs don't have bodies, so you'd need to URLencode the username onto the URL as well. So don't bother with it this time!

@OracPrime OracPrime added Reviewed Volunteer to add when completing a review with trainee action still to take. Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants