Skip to content

Commit 9f7e844

Browse files
committed
create EAP formatter
1 parent 1ff9860 commit 9f7e844

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

snuba/lw_deletions/formatters.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ class Formatter(ABC):
1717
"""
1818

1919
@abstractmethod
20-
def format(
21-
self, messages: Sequence[DeleteQueryMessage]
22-
) -> Sequence[ConditionsType]:
20+
def format(self, messages: Sequence[DeleteQueryMessage]) -> Sequence[ConditionsType]:
2321
raise NotImplementedError
2422

2523

2624
class SearchIssuesFormatter(Formatter):
27-
def format(
28-
self, messages: Sequence[DeleteQueryMessage]
29-
) -> Sequence[ConditionsType]:
25+
def format(self, messages: Sequence[DeleteQueryMessage]) -> Sequence[ConditionsType]:
3026
"""
3127
For the search issues storage we want the additional
3228
formatting step of combining group ids for messages
@@ -58,6 +54,12 @@ def format(
5854
]
5955

6056

57+
class EAPItemsFormatter(Formatter):
58+
def format(self, messages: Sequence[DeleteQueryMessage]) -> Sequence[ConditionsType]:
59+
return []
60+
61+
6162
STORAGE_FORMATTER: Mapping[str, Type[Formatter]] = {
62-
StorageKey.SEARCH_ISSUES.value: SearchIssuesFormatter
63+
StorageKey.SEARCH_ISSUES.value: SearchIssuesFormatter,
64+
StorageKey.EAP_ITEMS.value: EAPItemsFormatter,
6365
}

0 commit comments

Comments
 (0)