Skip to content

Validation failure on batches.json when using Django web interface #199

@miagrbr-MC

Description

@miagrbr-MC

Describe the bug
When trying to add a batch on the Django administration web interface, the "Data Ready?" and "Data Valid?" column always shown a red (x), however when uploading the same batch at the commandline as part of creating a campaign, the batch shows green checkmarks under the aforementioned colums in the Django administration web interface.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new campaign by running the following at the commandline:
python3 manage.py StartNewCampaign Examples/MQM+ESA/manifest_esa.json     --batches-json Examples/MQM+ESA/batches_esa.json     --csv-output Examples/MQM+ESA/output_esa.csv
  1. Go to http://127.0.0.1:8000/admin/Campaign/campaigndata/
  2. Click "ADD BATCH" and upload the /Examples/MQM+ESA/batches_esa.json file
  3. Select eng_deu_example15esa as market
  4. Select eng->deu/example15esa["1.0"] as metadata
  5. Click "SAVE"
  6. When navigating back to http://127.0.0.1:8000/admin/Campaign/campaigndata/ the batch that was uploaded using the web interface will show as follows:

Image

While the batch upoaded in step 1 will look as follows:

Image

Expected behavior
Both batches are expected to show green ticks for the "Data Ready?" and "Data Valid?" columns.

Screenshots
See above

Desktop (please complete the following information):

  • OS: Microsoft Windows 11 Pro
  • Browser: Chrome
  • Version: 131.0.6778.265 (Official Build) (64-bit)

Smartphone (please complete the following information):
n/a

Additional context
I am using the develop branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions