Skip to content

Commit ad91f6b

Browse files
changelog + small nits
1 parent 1b23391 commit ad91f6b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.env.development

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
44

55
# Zoekt
66
ZOEKT_WEBSERVER_URL="http://localhost:6070"
7-
# SHARD_MAX_MATCH_COUNT=10000
8-
# TOTAL_MAX_MATCH_COUNT=100000
97
# The command to use for generating ctags.
108
CTAGS_COMMAND=ctags
119
# logging, strict

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
### Changed
1414
- Remove spam "login page loaded" log. [#552](https://github.com/sourcebot-dev/sourcebot/pull/552)
15+
- Improved search performance for unbounded search queries. [#555](https://github.com/sourcebot-dev/sourcebot/pull/555)
1516

1617
### Added
1718
- Added support for passing db connection url as seperate `DATABASE_HOST`, `DATABASE_USERNAME`, `DATABASE_PASSWORD`, `DATABASE_NAME`, and `DATABASE_ARGS` env vars. [#545](https://github.com/sourcebot-dev/sourcebot/pull/545)

docs/docs/configuration/environment-variables.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,13 @@ The following environment variables allow you to configure your Sourcebot deploy
2828
| `REDIS_REMOVE_ON_FAIL` | `100` | <p>Controls how many failed jobs are allowed to remain in Redis queues</p> |
2929
| `REPO_SYNC_RETRY_BASE_SLEEP_SECONDS` | `60` | <p>The base sleep duration (in seconds) for exponential backoff when retrying repository sync operations that fail</p> |
3030
| `GITLAB_CLIENT_QUERY_TIMEOUT_SECONDS` | `600` | <p>The timeout duration (in seconds) for GitLab client queries</p> |
31-
| `SHARD_MAX_MATCH_COUNT` | `10000` | <p>The maximum shard count per query</p> |
3231
| `SMTP_CONNECTION_URL` | `-` | <p>The url to the SMTP service used for sending transactional emails. See [this doc](/docs/configuration/transactional-emails) for more info.</p> |
3332
| `SOURCEBOT_ENCRYPTION_KEY` | Automatically generated at startup if no value is provided. Generated using `openssl rand -base64 24` | <p>Used to encrypt connection secrets and generate API keys.</p> |
3433
| `SOURCEBOT_PUBLIC_KEY_PATH` | `/app/public.pem` | <p>Sourcebot's public key that's used to verify encrypted license key signatures.</p> |
3534
| `SOURCEBOT_LOG_LEVEL` | `info` | <p>The Sourcebot logging level. Valid values are `debug`, `info`, `warn`, `error`, in order of severity.</p> |
3635
| `SOURCEBOT_STRUCTURED_LOGGING_ENABLED` | `false` | <p>Enables/disable structured JSON logging. See [this doc](/docs/configuration/structured-logging) for more info.</p> |
3736
| `SOURCEBOT_STRUCTURED_LOGGING_FILE` | - | <p>Optional file to log to if structured logging is enabled</p> |
3837
| `SOURCEBOT_TELEMETRY_DISABLED` | `false` | <p>Enables/disables telemetry collection in Sourcebot. See [this doc](/docs/overview.mdx#telemetry) for more info.</p> |
39-
| `TOTAL_MAX_MATCH_COUNT` | `100000` | <p>The maximum number of matches per query</p> |
40-
| `ZOEKT_MAX_WALL_TIME_MS` | `10000` | <p>The maximum real world duration (in milliseconds) per zoekt query</p> |
4138

4239
### Enterprise Environment Variables
4340
| Variable | Default | Description |

packages/web/src/app/[domain]/search/page.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { AnimatedResizableHandle } from "@/components/ui/animatedResizableHandle
2626
import { useFilteredMatches } from "./components/filterPanel/useFilterMatches";
2727
import { Button } from "@/components/ui/button";
2828
import { ImperativePanelHandle } from "react-resizable-panels";
29-
import { AlertTriangleIcon, FilterIcon } from "lucide-react";
29+
import { AlertTriangleIcon, BugIcon, FilterIcon } from "lucide-react";
3030
import { useHotkeys } from "react-hotkeys-hook";
3131
import { useLocalStorage } from "@uidotdev/usehooks";
3232
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
@@ -301,13 +301,17 @@ const PanelGroup = ({
301301
<TooltipTrigger asChild>
302302
<InfoCircledIcon className="w-4 h-4 mr-2" />
303303
</TooltipTrigger>
304-
<TooltipContent side="right" className="flex flex-col items-start gap-2">
305-
<div className="flex flex-row justify-between w-full">
304+
<TooltipContent side="right" className="flex flex-col items-start gap-2 p-4">
305+
<div className="flex flex-row items-center w-full">
306+
<BugIcon className="w-4 h-4 mr-1.5" />
306307
<p className="text-md font-medium">Search stats for nerds</p>
307-
<CopyIconButton onCopy={() => {
308-
navigator.clipboard.writeText(JSON.stringify(searchStats, null, 2));
309-
return true;
310-
}} />
308+
<CopyIconButton
309+
onCopy={() => {
310+
navigator.clipboard.writeText(JSON.stringify(searchStats, null, 2));
311+
return true;
312+
}}
313+
className="ml-auto"
314+
/>
311315
</div>
312316
<CodeSnippet renderNewlines>
313317
{JSON.stringify(searchStats, null, 2)}

0 commit comments

Comments
 (0)