File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,12 @@ class Formatter(ABC):
17
17
"""
18
18
19
19
@abstractmethod
20
- def format (
21
- self , messages : Sequence [DeleteQueryMessage ]
22
- ) -> Sequence [ConditionsType ]:
20
+ def format (self , messages : Sequence [DeleteQueryMessage ]) -> Sequence [ConditionsType ]:
23
21
raise NotImplementedError
24
22
25
23
26
24
class SearchIssuesFormatter (Formatter ):
27
- def format (
28
- self , messages : Sequence [DeleteQueryMessage ]
29
- ) -> Sequence [ConditionsType ]:
25
+ def format (self , messages : Sequence [DeleteQueryMessage ]) -> Sequence [ConditionsType ]:
30
26
"""
31
27
For the search issues storage we want the additional
32
28
formatting step of combining group ids for messages
@@ -58,6 +54,12 @@ def format(
58
54
]
59
55
60
56
57
+ class EAPItemsFormatter (Formatter ):
58
+ def format (self , messages : Sequence [DeleteQueryMessage ]) -> Sequence [ConditionsType ]:
59
+ return []
60
+
61
+
61
62
STORAGE_FORMATTER : Mapping [str , Type [Formatter ]] = {
62
- StorageKey .SEARCH_ISSUES .value : SearchIssuesFormatter
63
+ StorageKey .SEARCH_ISSUES .value : SearchIssuesFormatter ,
64
+ StorageKey .EAP_ITEMS .value : EAPItemsFormatter ,
63
65
}
You can’t perform that action at this time.
0 commit comments