Skip to content

[WIP] Add searchusername method to Postgres player repository#170

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/add-search-username-method
Draft

[WIP] Add searchusername method to Postgres player repository#170
Copilot wants to merge 5 commits intomainfrom
copilot/add-search-username-method

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 15, 2025

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

Create a method on the Postgres player repository called searchusername. This should take a search string and a top int and return a slice of up to top unique uuids that have been registered as having names matching the search term. The implementation should use trigram similarity to sort the matches with a secondary sort on the last time the user was recorded with that username.
Add table tests for this method that set up a schema with a given list of db entries and then queries with a search term and top value and asserts the result.

Create an app method that simply wraps this method, and create very simple tests for it. Refer to e.g. the app method for get tags for inspiration.

Then create a get endpoint that serves this app method. Add simple tests for the endpoint. Refer to the get tags endpoint for inspiration.


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

Copilot stopped work on behalf of Amund211 due to an error December 15, 2025 15:30
Copilot AI and others added 4 commits December 15, 2025 15:46
Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
…mment

Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
@Amund211 Amund211 marked this pull request as ready for review December 15, 2025 16:00
Copilot AI review requested due to automatic review settings December 15, 2025 16:00
@Amund211 Amund211 marked this pull request as draft December 15, 2025 16:00
@Amund211 Amund211 review requested due to automatic review settings December 15, 2025 16:00
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