Skip to content

fix: ci - #1175

Closed
kachelle wants to merge 2 commits into
dev-null-sh:productionfrom
kachelle:fix/suggested-users-handle
Closed

fix: ci#1175
kachelle wants to merge 2 commits into
dev-null-sh:productionfrom
kachelle:fix/suggested-users-handle

Conversation

@kachelle

@kachelle kachelle commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

#990 and #886 merged after #1157 dropped the username from users, so they still looked it up there. They now use the profile handle.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Suggested-user lookups and dismissals now use profile handles to identify accounts, making these actions consistent with the handles shown on profiles.
    • Suggested-user requests can now find the intended profile by its handle, including when the account username differs.

dev-null-sh#990 looked users up by the username column, which dev-null-sh#1156 moved to profiles,
so a profile context or a dismissal answered 500 or ignored the profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Walkthrough

The suggested-user API now validates and resolves users through profile handles. The dismissal route binds users by handle. Related tests now use handles in fixtures and profile-context requests; the API query parameter remains named username.

Changes: Suggested-user profile handle lookup

Layer / File(s) Summary
Profile-handle lookup and route binding
app/Http/Requests/ListApiSuggestedUsersRequest.php, routes/api.php, tests/Feature/Controllers/Api/SuggestedUserControllerTest.php, tests/Feature/Controllers/UserControllerTest.php
The request validates username against profiles.handle for user profiles and resolves context through the profile handle. The dismissal route binds by handle. Related test fixtures and profile-context values now use handles.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • dev-null-sh/dev-null.sh#1095 — The changed lookup uses profile handles for suggested-user discovery, but this PR does not add GitHub-based sourcing.
  • dev-null-sh/dev-null.sh#897 — The PR changes suggested-user lookup, but the changes do not establish that the suggested-follow list-state behavior is fixed.

Possibly related PRs

Suggested reviewers: taldres, hbenabdallah

Merge Risk: Moderate · up to 66e40

Update the dismissal tests to pass profile handles so CI validates the changed route contract.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

dev-null-sh#1157 dropped the username from users.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kachelle kachelle changed the title fix: find suggested users by their profile handle fix: ci Oct 26, 2026
@kachelle
kachelle marked this pull request as ready for review October 26, 2026 21:10
@kachelle

Copy link
Copy Markdown
Contributor Author

Closing, #1178 already fixed this the same way. Thanks @mnapoli for jumping on it so fast!

@kachelle kachelle closed this Oct 26, 2026
@kachelle
kachelle deleted the fix/suggested-users-handle branch October 26, 2026 21:16
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