Skip to content

feat: add Depot omnisearch - #9

Merged
BK1031 merged 2 commits into
mainfrom
bk1031/feat-omnisearch
Sep 1, 2026
Merged

feat: add Depot omnisearch#9
BK1031 merged 2 commits into
mainfrom
bk1031/feat-omnisearch

Conversation

@BK1031

@BK1031 BK1031 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor
  • Add a Sentinel-style header search dialog with Cmd/Ctrl+K and remove the standalone Search navigation item
  • Add permission-scoped fuzzy search across buckets, files, storage backends, grants, replicas, access logs, applications, and uploaders
  • Add PostgreSQL trigram indexes and Sentinel name/icon enrichment with graceful fallback behavior
  • Add direct file-result links that open the file detail sheet
  • Depends on feat: add uploader and application detail pages #8 for the uploader and application detail destinations

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T01:18:33.169672Z d636a27 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Signed-off-by: Bharat Kathi <bharat1031@gmail.com>
@BK1031
BK1031 merged commit 0a0638b into main Sep 1, 2026
5 checks passed
@BK1031
BK1031 deleted the bk1031/feat-omnisearch branch September 1, 2026 01:18

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d636a27852

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread depot/service/search.go
Comment on lines +291 to +294
case "application":
result.Href = "/applications/" + url.PathEscape(row.ClientID)
case "uploader":
result.Href = "/uploaders/" + url.PathEscape(row.EntityID)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Point attribution results at routable destinations

Whenever an application or uploader matches, selecting it navigates to these generated URLs, but the reviewed router defines neither /applications/:id nor /uploaders/:id; both therefore fall through to the wildcard NotFoundPage. This makes two advertised result groups consistently unusable, so they should target existing pages or be withheld until corresponding routes exist.

Useful? React with 👍 / 👎.

Comment thread depot/service/search.go
Comment on lines +207 to +208
if len(bucketIDs) > 0 {
if err := database.DB.Model(&model.File{}).Where("bucket_id IN ? AND created_by_entity_id <> ''", bucketIDs).Distinct().Pluck("created_by_entity_id", &entityIDs).Error; err != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound identity resolution to matching candidates

For a user with a large accessible bucket, every query scans all files for distinct uploader IDs and then resolves every cache-missing identity through Sentinel, even though only 30 search results can be returned. After startup or cache expiry, thousands of uploaders become many serialized 100-ID network requests before any result is returned; collect identities only from matched rows or otherwise cap/filter this lookup by the query.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant