Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Dec 16, 2025

closes OSS-7322

Summary

Fixes a bug where selecting an event type in the events page filter dropdown caused all other event types to disappear from the dropdown menu. Users were unable to modify their selection or add additional event types.

Root Cause

The EventsTypeFilter component was receiving a countFilter that included the currently selected event types. When querying the /events/count-by/event API endpoint with this filter, only the already-selected event types were returned.

Solution

Created a separate countFilterForTypeDropdown that excludes the event filter but preserves other filters (resource, date range). The dropdown now uses this unfiltered version while the chart/timeline continues using the original filtered countFilter.

Local Testing

Verified the fix works correctly by running the app locally:

Before selecting any event type - all types visible:
All event types visible

After selecting prefect.flow-run. - all types still visible:*
After selection - all types still visible

After adding prefect.task-run. - multiple selections work:*
Multiple selections work

Human Review Checklist

  • Verify countFilterForTypeDropdown correctly excludes search.event while keeping search.resource and date range
  • Confirm the chart (InteractiveEventsChart) still uses the original countFilter for proper filtering
  • Check that the 3 new tests adequately cover the bug fix scenarios

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
  • If this pull request adds new functionality, it includes unit tests that cover the changes
  • If this pull request removes docs files, it includes redirect settings in mint.json.
  • If this pull request adds functions or classes, it includes helpful docstrings.

Requested by: [email protected] (@desertaxle)
Link to Devin run: https://app.devin.ai/sessions/7826a40e4ef445d29b6623f0fa1a34b4

- Create separate countFilterForTypeDropdown that excludes event filter
- EventsTypeFilter now uses unfiltered count filter to show all event types
- Add tests to verify dropdown shows all types when some are selected
- Add tests for adding/removing event types from selection

closes OSS-7322

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions github-actions bot added the ui-replatform Related to the React UI rewrite label Dec 16, 2025
@desertaxle desertaxle merged commit 370afe4 into main Dec 16, 2025
5 checks passed
@desertaxle desertaxle deleted the devin/1765922167-fix-events-type-filter-dropdown branch December 16, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui-replatform Related to the React UI rewrite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants