Skip to content

Fix invalid lastSeen filter in sentry-top-issue query - #58

Merged
tingraldi merged 1 commit into
mainfrom
fix-fetch-query
Sep 23, 2026
Merged

tingraldi merged 1 commit into
mainfrom
fix-fetch-query

Conversation

@tingraldi

Copy link
Copy Markdown
Member

Why

The sentry-top-issue skill failed on every run with Sentry API error (400): Error parsing search query: last_seen: Invalid date: >-7d. Sentry's search syntax uses the sign of a relative duration as the comparison, so the extra > in lastSeen:>-7d made the date unparseable.

What Changed

  • Drop the > from the recency filter in the issue query, so it reads lastSeen:-7d
  • Update the SKILL.md passages that quote the filter

Screenshots

N/A — no UI changes


Pre-merge

  • N/A — no skill added, renamed, or removed

🤖 Generated with Claude Code

Sentry's search syntax uses the sign of a relative duration as the
comparison, so `lastSeen:>-7d` failed to parse with a 400. Drop the
`>`: `lastSeen:-7d` already means "within the last 7 days".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 23, 2026 14:14
@tingraldi tingraldi self-assigned this Sep 23, 2026

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.

Copilot review overview

🟢 Approval recommended

The query and documentation updates are consistent, with no unresolved review comments.

Review effort: Lite
Findings: None

What changed in this PR

Fixes the invalid Sentry lastSeen filter causing query failures.

Changes:

  • Corrects the filter to lastSeen:-7d.
  • Updates corresponding SKILL.md references.
File Description
skills/​sentry-top-issue/​SKILL.md Updates documented query syntax.
skills/​sentry-top-issue/​scripts/​fetch-issues.sh Applies the corrected API filter.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tingraldi
tingraldi merged commit 3ede6fe into main Sep 23, 2026
1 check passed
@tingraldi
tingraldi deleted the fix-fetch-query branch September 23, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants