Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit 3d552bb

Browse files
authored
Fixing incident filtering by tags (#1106)
1 parent cfc0241 commit 3d552bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/dispatch/database/service.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ def apply_model_specific_filters(model: Base, query: orm.Query, current_user: Di
6767

6868
def apply_model_specific_joins(model: Base, query: orm.query):
6969
"""Applies any model specific implicity joins."""
70-
model_map = {Feedback: [Incident, Project], Task: [Incident, Project], PluginInstance: [Plugin]}
70+
model_map = {
71+
Feedback: [Incident, Project],
72+
Task: [Incident, Project],
73+
PluginInstance: [Plugin],
74+
Incident: [Incident.tags],
75+
}
7176

7277
joined_models = model_map.get(model, [])
7378

0 commit comments

Comments
 (0)