Skip to content

search_issues wrongly filters issues that happened in the last 24h #726

@tpucci

Description

@tpucci

Steps to Reproduce

  1. Ask an agent Find all sentry issues "null check operator" that hapenned in the last 7 days in production environement

Expected Result

Returns 14 results. WebUI with the same filters:

Image

Actual Result

Returns 3 results.

Input

{
  "organizationSlug": "helloprimary",
  "naturalLanguageQuery": "null check operator from last 7 days in production environment",
  "regionUrl": "https://de.sentry.io",
  "limit": 50
}

Output

# Search Results for "null check operator in production environment from last 7 days"

⚠️ **IMPORTANT**: Display these issues as highlighted cards with status indicators, assignee info, and clickable Issue IDs.

## Query Translation
Natural language: "null check operator in production environment from last 7 days"
Sentry query: `"null check operator" environment:production lastSeen:-7d`
Sort: date

## How I interpreted your query

Searched for the phrase "null check operator" in issues seen in the last 7 days within the production environment, using lastSeen for recent activity.

**View these results in Sentry**:
https://helloprimary.sentry.io/issues/?query=%22null+check+operator%22+environment%3Aproduction+lastSeen%3A-7d
_Please share this link with the user to view the search results in their Sentry dashboard._

Found **3** issues:

## 1. [APP-8Q](https://helloprimary.sentry.io/issues/APP-8Q)

**NoSuchMethodError: Null check operator used on a null value**

- **Status**: unresolved
- **Users**: 2
- **Events**: 6
- **Assigned to**: primary
- **First seen**: 19 hours ago
- **Last seen**: 12 hours ago
- **Culprit**: `/`

## 2. [APP-187](https://helloprimary.sentry.io/issues/APP-187)

**NoSuchMethodError: Null check operator used on a null value**

- **Status**: unresolved
- **Users**: 1
- **Events**: 101
- **First seen**: 16 hours ago
- **Last seen**: 15 hours ago
- **Culprit**: `/download-our-app`

## 3. [APP-5M](https://helloprimary.sentry.io/issues/APP-5M)

**TypeError: Null check operator used on a null value**

- **Status**: resolved
- **Users**: 2
- **Events**: 3
- **First seen**: 20 hours ago
- **Last seen**: 17 hours ago
- **Culprit**: `?`

## Next Steps

- Get more details about a specific issue: Use the Issue ID with get_issue_details
- Update issue status: Use update_issue to resolve or assign issues
- View event counts: Use search_events for aggregated statistics

which match the last 24h view:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions