change playbook name Dns in DNS
capitalize its name, a minor migration is required
Hi @mlodic 👋 I’d like to take this issue up. I can handle the capitalization change for the Dns → DNS playbook name along with the required minor migration. Please assign this issue to me. Thanks!
Hello @mlodic,
I have raised a Pull Request https://github.com/intelowlproject/IntelOwl/pull/3288 to resolve the playbook naming inconsistency. Here is a summary of the work completed:
Summary of Changes
- Playbook Renaming: Standardized the name of the "Dns" playbook to "DNS" project-wide.
- Data Migration: Created migration 0063_rename_dns_playbook.py. I have implemented resilience checks (
if not exists) to prevent potentialIntegrityErrorduring the update process. - Frontend Test Updates:
- Updated RecentScans.test.jsx to align with the new capitalization.
- Verified and fixed formatting in InvestigationFlow.test.jsx using Prettier to ensure the
prettier:checkCI task passes.
- Consistency: Confirmed that all relevant frontend components and tests now reflect the standardized naming.
This PR closes #3281. Please let me know if any further adjustments are needed!
Best regards.
Hi 👋 Please assign this issue to me. I’ve reviewed the details and would love to work on fixing it.
Hey @mlodic ,I noticed that issue #3281 is currently assigned, but I wasn’t sure if it’s actively being worked on. If it’s available, I’d be happy to take it up. The fix seems fairly straightforward ,renaming the "Dns" playbook to "DNS". From what I understand, it would involve: • Creating a new migration to update the playbook name in the database • Updating four existing migrations that reference it by name
It looks like a low-risk change with no model modifications required. If the issue is available, I'd be happy to take it up and submit a PR.
Thanks!
Yhe existing migrations must not be touched. There are other references in the code, please note that. I'll give you a chance considering the previous contributor didn't manage to handle this in time properly.
@mlodic Thanks for the chance! I understand that the existing migrations shouldn’t be modified.
My plan is to handle it with new data migrations only. I’ll add one migration (0063_rename_dns_playbook_to_dns.py) in Playbooks Manager to rename the PlaybookConfig entry from "Dns" to "DNS". Then I’ll add another migration (0040_update_dns_visualizer_playbook_reference.py) in Visualizers Manager to update the VisualizerConfig that references this playbook.
This way the existing migrations stay untouched and the change is handled safely through new migrations. Let me know if this approach sounds good and I’ll start working on it.
is this open or closed?
@Terli181103 it's open and I am working on it!
@Terli181103 it's open and I am working on it!
Okay
@mlodic @fgibertoni I've opened a PR for the issue if you could please review it.
Hey @mlodic ,I noticed that issue https://github.com/intelowlproject/IntelOwl/issues/3281 is currently assigned, but I wasn’t sure if it’s actively being worked on. If it’s available, I’d be happy to take it up.
closing this because too many untested PRs have being raised without testing and this change isn't really needed