Suggesting repos to users in home panels
Created by: AdhamKhalifa
Closes #36424 (closed)
Description
This feature hypothesizes that showing better suggestions to the panels in the case of a user doesn't have search history will result in more interaction with the panels, which will in help new users when they use Sourcegraph.
This work will only affect logged-in users. These logged-in users can be on either sourcegraph.com or on-premise instances. The feature includes the following:
Compute Endpoint This function will be used to get the results of a user search query without the need to use the streaming search API. It should allow you to get the search history using a query including the authenticated user’s email.
Feature Flag An experimental feature flag will be created to toggle this feature on and off to control whether it’s available for users or not.
Algorithm
- Get the user's git history
- Get the user's search history
- If the user has git history, then show the git history
- If the user has no git history, then check if the user has search history
- If the user has search history, then show the search history
- If the user has no search history, then show the empty display
This is how the feature looks on the homepage of a logged-in user:
Test plan
Will test the algorithm by trying the case when a user has no search history, but has git commit history. And another case when the used doesn't have git history or any search history
App preview:
Check out the client app preview documentation to learn more.