Skip to content

Fix target type filter on Events page - #4253

Merged
jvstme merged 2 commits into
dstackai:masterfrom
hhhhzzzj:fix-events-target-types
Sep 2, 2026
Merged

Fix target type filter on Events page#4253
jvstme merged 2 commits into
dstackai:masterfrom
hhhhzzzj:fix-events-target-types

Conversation

@hhhhzzzj

@hhhhzzzj hhhhzzzj commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Fix target type filter on the Events page

Selecting a target type on the Events page currently sends its display label to the API. For example, selecting "Instance" sends include_target_types=["Instance"], while the API expects the lowercase enum value "instance".

This keeps the display label in the UI and uses the canonical value in the request. A focused regression test covers the label/value mapping.

The focused Events test passes (4 tests), and ESLint, Prettier, and git diff --check pass. The backend test could not run in this checkout because pytest_asyncio is missing. The full frontend run still has unrelated existing failures.

For context, nightcityblade previously said they planned to work on this issue. jvstme later asked hhhhzzzj to proceed.

Fixes #4211

@jvstme jvstme left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I've rewritten the PR to simplify it, but the overall solution looks good to me

@jvstme
jvstme merged commit 5511ac8 into dstackai:master Sep 2, 2026
27 checks passed
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.

[Bug]: Target types filter does not work on the Events page in UI

2 participants