Skip to content

Commit e15221d

Browse files
committed
fixes for url test blocking ui thread + url test message ui bug + default rule creation options + hide node to foce local node
1 parent c9289ee commit e15221d

6 files changed

Lines changed: 250 additions & 258 deletions

File tree

ui/opensnitch/plugins/list_subscriptions/_utils.py

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -266,61 +266,6 @@ def timestamp_sort_key(value: str | None):
266266
return (normalized == "", normalized)
267267

268268

269-
def subscription_event_item(
270-
key: str,
271-
*,
272-
name: str,
273-
url: str,
274-
filename: str,
275-
list_type: str,
276-
state: str | None = None,
277-
path: str | None = None,
278-
):
279-
item: dict[str, Any] = {
280-
"key": key,
281-
"name": name,
282-
"url": url,
283-
"filename": filename,
284-
"format": list_type,
285-
}
286-
if state:
287-
item["state"] = state
288-
if path:
289-
item["path"] = path
290-
return item
291-
292-
293-
def subscription_payload_dict(
294-
*,
295-
enabled: bool,
296-
name: str,
297-
url: str,
298-
filename: str,
299-
list_type: str,
300-
groups: list[str],
301-
interval: int | None,
302-
interval_units: str | None,
303-
timeout: int | None,
304-
timeout_units: str | None,
305-
max_size: int | None,
306-
max_size_units: str | None,
307-
):
308-
return {
309-
"enabled": enabled,
310-
"name": name,
311-
"url": url,
312-
"filename": filename,
313-
"format": list_type,
314-
"groups": groups,
315-
"interval": interval,
316-
"interval_units": interval_units,
317-
"timeout": timeout,
318-
"timeout_units": timeout_units,
319-
"max_size": max_size,
320-
"max_size_units": max_size_units,
321-
}
322-
323-
324269
def normalize_group(group: str | None):
325270
raw = (group or "").strip().lower()
326271
if raw == "":

0 commit comments

Comments
 (0)