Skip to content

fix: exclude sentinel user from search results and correct stale test expectations#136

Merged
grillinr merged 2 commits intoadd-commentsfrom
copilot/sub-pr-128-again
Mar 6, 2026
Merged

fix: exclude sentinel user from search results and correct stale test expectations#136
grillinr merged 2 commits intoadd-commentsfrom
copilot/sub-pr-128-again

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

Two TestAPI/User_Tests cases for GET /users/search were failing due to a query bug and stale expected values.

Changes

  • SearchUsers query — added AND id > 0 to exclude the deleted_user sentinel (id=-1) inserted during test setup, which was leaking into results for any prefix starting with "d"
  • Test expectationsq=dev and q=d&count=100 expected dev_user1's original bio, but an earlier test in the same sequence (PUT /users/dev_user1) mutates it to "Updated developer bio." before the search cases run; updated expected bodies to match
-- before
WHERE LOWER(username) LIKE LOWER($1)

-- after
WHERE LOWER(username) LIKE LOWER($1) AND id > 0

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…t expectations

Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>
Copilot AI changed the title [WIP] Add messages tab and conversation UI fix: exclude sentinel user from search results and correct stale test expectations Mar 6, 2026
@grillinr grillinr marked this pull request as ready for review March 6, 2026 03:16
@grillinr grillinr merged commit c0fd89d into add-comments Mar 6, 2026
@grillinr grillinr deleted the copilot/sub-pr-128-again branch March 6, 2026 03:17
grillinr added a commit that referenced this pull request Mar 7, 2026
* wip: add messaging

* feat: add messages tab

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: derive WebSocket URL from API_BASE_URL in conversation screen (#130)

* Initial plan

* fix: use API_BASE_URL for WebSocket URL in conversation screen

Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>

* fix: merge reconnection logic from base branch while keeping API_BASE_URL approach

Co-authored-by: elifouts <116454864+elifouts@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>
Co-authored-by: elifouts <116454864+elifouts@users.noreply.github.com>
Co-authored-by: Eli Fouts <eligfouts@gmail.com>

* feat: enhance MessageBubble and MessageComposer components

- Added authorLabel prop to MessageBubble for displaying message authors.
- Improved styling in MessageBubble for better visual consistency.
- Updated MessageComposer to include layout animations for dynamic height adjustments.
- Refactored input handling in MessageComposer to optimize performance.
- Removed unused terminal animation code from MyHeader component.
- Added terminal icon mapping in IconSymbol for better icon management.

* fix: safe router navigation encoding and /users/search test coverage (#133)

* fix: exclude sentinel user from search results and correct stale test expectations (#136)

* Initial plan

* fix: exclude deleted_user sentinel from search results and update test expectations

Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Nathan Grilliot <grillinr.mail.uc.edu>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>
Co-authored-by: elifouts <116454864+elifouts@users.noreply.github.com>
Co-authored-by: Eli Fouts <eligfouts@gmail.com>
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.

2 participants