Skip to content

Suggesting repos to users in home panels

Warren Gifford requested to merge ak/homepanelsfeature into main

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

  1. Get the user's git history
  2. Get the user's search history
  3. If the user has git history, then show the git history
  4. If the user has no git history, then check if the user has search history
  5. If the user has search history, then show the search history
  6. 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:

123

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.

Merge request reports

Loading