Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dns0 analyzers #2274

Merged
merged 9 commits into from
Apr 18, 2024
Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from django.db import migrations


def migrate(apps, schema_editor):
PythonModule = apps.get_model("api_app", "PythonModule")
pm = PythonModule.objects.filter(
module="dns0.dns0_rrsets.DNS0Rrsets",
base_path="api_app.analyzers_manager.observable_analyzers",
).first()
if pm:
pm.analyzerconfigs.all().delete()
pm.delete()


def reverse_migrate(apps, schema_editor):
pass


class Migration(migrations.Migration):
dependencies = [
("api_app", "0062_alter_parameter_python_module"),
("playbooks_manager", "0032_delete_dns0_playbook_free_to_use_analyzers"),
("analyzers_manager", "0078_analyzer_config_hfinger"),
]
operations = [
migrations.RunPython(migrate, reverse_migrate),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from django.db import migrations


def migrate(apps, schema_editor):
PythonModule = apps.get_model("api_app", "PythonModule")
pm = PythonModule.objects.filter(
module="dns0.dns0_names.DNS0Names",
base_path="api_app.analyzers_manager.observable_analyzers",
).first()
if pm:
pm.analyzerconfigs.all().delete()
pm.delete()


def reverse_migrate(apps, schema_editor):
pass


class Migration(migrations.Migration):
dependencies = [
("api_app", "0062_alter_parameter_python_module"),
("playbooks_manager", "0032_delete_dns0_playbook_free_to_use_analyzers"),
("analyzers_manager", "0079_remove_dns0_rrsets_analyzer"),
]
operations = [
migrations.RunPython(migrate, reverse_migrate),
]
Empty file.
133 changes: 0 additions & 133 deletions api_app/analyzers_manager/observable_analyzers/dns0/dns0_base.py

This file was deleted.

209 changes: 0 additions & 209 deletions api_app/analyzers_manager/observable_analyzers/dns0/dns0_names.py

This file was deleted.

Loading
Loading