Skip to content

Fix "make load-data" failing due to Model Mismatch and Corrupted Data #1652

Open
@rudransh-shrivastava

Description

@rudransh-shrivastava

While setting up the project, I had issues loading the initial data using make load-data, after fixing the following things, I was able to load everything as intended.

Here's what I changed locally:

  • The Organization model was recently changed, the is_owasp_organization field was renamed to is_owasp_related_organization, so I renamed the same fields in backend/data/nest.json.gz .
  • There was an invalid character in line 679371 column 500 that led to JSON Parsing errors, I removed that character.

The invalid character was present at the <HERE> mark below:
line 679371 column 500:

    "body": "Fixes [DefectDojo #12575](https://github.com/DefectDojo/django-DefectDojo/issues/12575)\r\n\r\nThis PR is a pure-Python refactor that keeps every public API and template untouched while eliminating the two main performance bottlenecks reported in the issue:\r\n\t•\tCorrelated sub-queries per row → replaced with a single Subquery aggregation + Coalesce helper (build_count_subquery)\r\n\t•\tMany small “counter” queries → moved to conditional Count() annotations executed once per list <HERE>
view",

To Reproduce
Run make load-data

Are you going to work on fixing this?

  • Yes
  • No

However, due to nest.json.gz being a binary. I think someone with higher privileges to the project should fix it as there are no diffs.

Desktop

  • OS: Arch Linux
  • Kernel: 6.12.23-1-lts
  • Browser: Firefox
  • Version: 139

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestion

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions