Skip to content

feat: add organization search to global search pipe (IN-1206) - #4368

Merged
gaspergrom merged 1 commit into
mainfrom
feat/CM-org-search
Jul 20, 2026
Merged

feat: add organization search to global search pipe (IN-1206)#4368
gaspergrom merged 1 commit into
mainfrom
feat/CM-org-search

Conversation

@gaspergrom

@gaspergrom gaspergrom commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

What

Adds organizations as a 4th result type to the global search Tinybird pipe, so the LFX Insights search bar can return organizations alongside projects, repositories, and collections. Backs insights ticket IN-1206.

  • New services/libs/tinybird/pipes/organizations_filtered.pipe — a *_filtered-family sub-pipe over the existing organizations_populated_slug datasource, with an optional search (ILIKE on displayName) and slug filter. Mirrors collections_filtered.pipe.
  • Edit services/libs/tinybird/pipes/search_collections_projects_repos.pipe — adds a 4th UNION ALL branch selecting type='organization' (id, slug, logo, displayName→name), ordered by contributionCount desc. DESCRIPTION updated.

Add organizations_filtered.pipe over the organizations_populated_slug
datasource (pre-filtered to orgs with activity) and a 4th 'organization'
UNION ALL branch in search_collections_projects_repos so the global
search bar can return organizations alongside projects, repos, and
collections.

Deploy order: push organizations_filtered.pipe BEFORE
search_collections_projects_repos.pipe (the search pipe references it);
a targeted push of only the search pipe fails with
'Resource organizations_filtered not found'.

Claude-Session: https://claude.ai/code/session_01JFS7TVQUvsTBRyuihHjtQX
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Copilot AI review requested due to automatic review settings July 20, 2026 19:59
@cursor

cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Read-only search pipe changes with no datasource schema changes; existing consumers ignore unknown result types until the insights app is updated.

Overview
Extends the unified global search Tinybird pipe so organizations appear alongside collections, projects, and repositories (IN-1206).

Adds organizations_filtered.pipe, following the existing *_filtered pattern: reads organizations_populated_slug, with optional slug and search (ILIKE on displayName). Orgs with activity are already limited by that datasource.

Updates search_collections_projects_repos.pipe with a fourth UNION ALL branch (type='organization', fields mapped to the same 7-column shape), ordered by contributionCount desc and subject to the shared per-type limit. Pipe DESCRIPTION documents the new entity type and response shape.

Deploy: push organizations_filtered before the search pipe so the dependency exists.

Reviewed by Cursor Bugbot for commit 3aedd21. Bugbot is set up for automated code reviews on this repo. Configure here.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds organization results to the Tinybird global search pipeline.

Changes:

  • Adds organization filtering by slug and display name.
  • Returns activity-linked organizations ordered by contribution count.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
organizations_filtered.pipe Provides reusable organization filters.
search_collections_projects_repos.pipe Adds organizations to unified search results.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- `search`: Required string for searching across all entity types (inherited by filtered pipes)
- `limit`: Optional integer for result limit per entity type, defaults to 10
- Response: `type` ('collection'|'project'|'repository'), `id` (projectId only), `slug`, `logo`, `projectSlug`, `name`
- Response: `type` ('collection'|'project'|'repository'|'organization'), `id` (projectId only), `slug`, `logo`, `projectSlug`, `name`
@gaspergrom
gaspergrom merged commit 264ae43 into main Jul 20, 2026
16 checks passed
@gaspergrom
gaspergrom deleted the feat/CM-org-search branch July 20, 2026 20:39
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.

2 participants