IntelOwl icon indicating copy to clipboard operation
IntelOwl copied to clipboard

change playbook name Dns in DNS

Open mlodic opened this issue 9 months ago • 12 comments

capitalize its name, a minor migration is required

mlodic avatar Feb 06 '26 16:02 mlodic

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!

ShivamSoni20 avatar Feb 06 '26 18:02 ShivamSoni20

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 potential IntegrityError during 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:check CI 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.

ShivamSoni20 avatar Feb 07 '26 18:02 ShivamSoni20

Hi 👋 Please assign this issue to me. I’ve reviewed the details and would love to work on fixing it.

LogicVortex123 avatar Feb 09 '26 10:02 LogicVortex123

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!

PranavShukla7 avatar Mar 07 '26 03:03 PranavShukla7

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 avatar Mar 08 '26 06:03 mlodic

@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.

PranavShukla7 avatar Mar 08 '26 09:03 PranavShukla7

is this open or closed?

Terli181103 avatar Mar 22 '26 03:03 Terli181103

@Terli181103 it's open and I am working on it!

PranavShukla7 avatar Mar 22 '26 05:03 PranavShukla7

@Terli181103 it's open and I am working on it!

Okay

Terli181103 avatar Mar 22 '26 05:03 Terli181103

@mlodic @fgibertoni I've opened a PR for the issue if you could please review it.

PranavShukla7 avatar Mar 23 '26 13:03 PranavShukla7

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.

AHTISHAM327 avatar Mar 27 '26 06:03 AHTISHAM327

closing this because too many untested PRs have being raised without testing and this change isn't really needed

mlodic avatar Apr 01 '26 13:04 mlodic