-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase performance on instances with large number of repositories by using the same limiting semantics we use on the search page. The difference is that this limiting is done entirely in neogrok, as zoekt has no scoring/truncating parameters for repository search. So this limit does nothing to reduce API bandwith, only to help render performance. Rendering an HTML table with 5000 rows is simply too expensive to do on every keypress. Make the table sortable by columns. Clarify the table layout and expand the documentation to describe what shards are.
- Loading branch information
Showing
12 changed files
with
394 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"neogrok": minor | ||
--- | ||
|
||
Enhance the repositories list page, making it more performant on instances with large numbers of repositories, and make columns sortable by clicking on their headers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script lang="ts"> | ||
import Link from "$lib/link.svelte"; | ||
import type { Repository } from "$lib/server/zoekt-list-repositories"; | ||
export let branches: Repository["branches"]; | ||
export let commitUrlTemplate: string | null; | ||
// Abbreviate git hashes. Helps make the very wide table a bit narrower. | ||
const abbreviateVersion = (v: string) => | ||
/^[a-z0-9]{40}$/.test(v) ? v.slice(0, 8) : v; | ||
</script> | ||
|
||
{#each branches as { name: branchName, version }} | ||
{branchName}@<span class="font-mono"> | ||
{#if commitUrlTemplate} | ||
<Link to={commitUrlTemplate.replaceAll("{{.Version}}", version)} | ||
>{abbreviateVersion(version)}</Link | ||
> | ||
{:else} | ||
{abbreviateVersion(version)} | ||
{/if} | ||
</span> | ||
{/each} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script lang="ts"> | ||
import Link from "$lib/link.svelte"; | ||
export let name: string; | ||
export let url: string | null; | ||
</script> | ||
|
||
<div class="text-left"> | ||
{#if url}<Link to={url}>{name}</Link>{:else}{name}{/if} | ||
</div> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.