prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Add tag filtering support for automations

Open chrisguidry opened this issue 6 months ago • 0 comments

Summary

This implements the next part of #16771 by adding comprehensive tag filtering capabilities for automations, following the same pattern used by other entities in Prefect (flows, deployments, etc.).

Changes

  • Add tags field to Automation database model with JSON column and migrations
  • Update automation schemas (client and server) to include tags field
  • Implement AutomationFilterTags with all_, any_, and is_null_ filter options
  • Add comprehensive test coverage for all filtering scenarios
  • Ensure API compatibility with existing automation functionality

Filtering Options

The filtering supports:

  • all_: Return automations that have ALL specified tags (superset match)
  • any_: Return automations that have ANY of the specified tags
  • is_null_: Return automations with no tags (true) or with tags (false)

Closes #16771

🤖 Generated with Claude Code

chrisguidry avatar Jun 12 '25 20:06 chrisguidry