Skip to content

Commit c9a5ed4

Browse files
ref(snuba-bulk-deletes): add snuba-lw-deletions topic/schema (#338)
* ref(snuba-bulk-deletes): add snuba-lw-deletions topic/schema --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent ceecea2 commit c9a5ed4

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
# Internal Snuba topics
110110
/topics/snuba-queries.yaml @getsentry/owners-snuba
111111
/topics/event-replacements.yaml @getsentry/owners-snuba
112+
/topics/snuba-lw-deletions-search-issues.yaml @getsentry/owners-snuba
112113

113114
# Scheduled subscription topics
114115
/topics/scheduled-subscriptions-events.yaml @getsentry/owners-snuba
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"storage_name": "search_issues",
3+
"rows_to_delete": 1000,
4+
"conditions": {
5+
"project_id": [1],
6+
"group_id": [2222222, 3333333, 4444444]
7+
},
8+
"tenant_ids": {
9+
"project_id": 1,
10+
"organization_id": 1,
11+
"referrer": "some_referrer"
12+
}
13+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "lw_delete_search_issues",
4+
"type": "object",
5+
"properties": {
6+
"storage_name": {
7+
"type": "string"
8+
},
9+
"rows_to_delete": {
10+
"type": "integer"
11+
},
12+
"conditions": {
13+
"type": "object",
14+
"properties": {
15+
"project_id": {
16+
"type": "array",
17+
"items": { "type": "integer" }
18+
},
19+
"group_id": {
20+
"type": "array",
21+
"items": { "type": "integer" }
22+
}
23+
}
24+
},
25+
"tenant_ids": {
26+
"type": "object",
27+
"additionalProperties": {
28+
"anyOf": [{ "type": "string" }, { "type": "integer", "minimum": 1 }]
29+
}
30+
}
31+
},
32+
"required": ["storage_name", "rows_to_delete", "conditions", "tenant_ids"]
33+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
description: Snuba Lightweight Deletes Search Issues
2+
services:
3+
consumers:
4+
- getsentry/snuba
5+
producers:
6+
- getsentry/snuba
7+
schemas:
8+
- version: 1
9+
compatibility_mode: none
10+
type: json
11+
resource: snuba-lw-deletions-search-issues.v1.schema.json
12+
examples:
13+
- snuba-lw-deletions-search-issues/1/
14+
topic_creation_config:
15+
compression.type: lz4
16+
max.message.bytes: "50000000"
17+
retention.ms: "86400000"
18+
message.timestamp.type: LogAppendTime

0 commit comments

Comments
 (0)