Skip to content

Instantly share code, notes, and snippets.

@Joelkw
Joelkw / Code_insights_experimental_mapping_type.md
Last active July 26, 2022 22:25
Code_insights_experimental_mapping_type.md

Code Insights Experimental Mapping Type - 3.42 and up

This is an EXPERIMENTAL prototype. Unlike the rest of the code insights product, we make no guarantees that the data returned is fully accurate (in many case, it will be, but we haven't exhaustively tested it). There are also many UX dead-ends, bumps, and error states not perfectly handled yet.

image

This prototype is the first portion of the work in sourcegraph/sourcegraph#33632 .

This insights type helps answer questions like:

  • What repositories change the most for any specific search target (heatmap-like questions)? What changes the most/least?
@Joelkw
Joelkw / Code_insights_prototype_usage_guide.md
Last active November 14, 2022 18:24
Quickstart guide to Sourcegraph code insights prototypes

Sourcegraph Search Query Code Insights [Prototype] - documentation

This document is no longer relevant and is 10 months out of date: Code Insights is now in beta. If you are customer/early access user, please reach out to your Sourcegraph contact for documentation.

This is a prototype (Considerations)

This is a prototype, and it's not yet optimized.

For example, a search insight runs all the search queries on the frontend and tries to cache them – it may take awhile on first view but less time on subsequent views. The number of queries to run is (number of repos in your repo list) x (number of steps). The number of steps is currently hardcoded to 7. If you're running into loading time issues, first try limiting the number of repos. >