Skip to content

feat(organization-search): list_my_activity in the Organization Search block - #10559

Merged
waleedlatif1 merged 1 commit into
stagingfrom
feat/organization-list-my-activity
Dec 1, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
feat/organization-list-my-activity

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a List My Activity operation to the Organization Search block (tool organization_list_my_activity, effect: 'read'). It runs the same listMyActivity use case as the Search MCP and Assistant list_my_activity, as the workflow run's person
  • Reuses the block's startDate, endDate, source, topK and cursor fields, with the same meanings as Search. The window defaults to the last 7 days
  • Output is the use case's result unchanged: window, items (newest first), truncated/nextCursor, coverage and per-source sources with connect hints
  • Runs with no person (schedule, webhook, workspace API key) are refused with subject_user_required before any read

Type of Change

  • New feature

Testing

  • execute-tool.integration.ts (real Postgres), new cases:
    • a manual run lists the run's person's activity sources in the workflow's organization. Goes red when executor admission on the activity operation is reverted
    • a scheduled run of organization_list_my_activity is refused
  • Ran blocks, tools/organization and lib/internal/organization-search (224 files, all passing), check-block-registry and check:tool-effects. bun run generate and generate-docs were run. Full type-check and audits run in CI

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…h block

Adds the List My Activity operation (organization_list_my_activity), which runs
the Search MCP list_my_activity use case as the workflow run's person. A run
without a person is refused before any read.
@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 1, 2026 8:22am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 14 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds List My Activity to the Organization Search block, using the existing listMyActivity use case.

  • Organization Search workflows can list the run person’s activity.

No actionable issues found. Review was based on source inspection; tests were not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Organization Search block] --> B[organization_list_my_activity]
  B --> C[Build principal from workflow run]
  C --> D{Run has a person?}
  D -->|No| E[Refuse before activity reads]
  D -->|Yes| F[Parse shared activity inputs]
  F --> G[Authorize listMyActivity]
  G --> H[Read person's connected sources]
  H --> I[Project protected text and return results]
Loading

Reviews (1) · Last reviewed commit: "feat(organization-search): list_my_activ..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit c6da82e into staging Dec 1, 2026
84 checks passed

This branch was previously deployed

1 inactive deployment
Preview — e73db012 Deployed Dec 1, 2026 by vercel[bot]
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