Skip to content

Data export/import v4 -> v5 not creating draft record counterpart. #22590

@douwepausma

Description

@douwepausma

Bug report

Required System information

  • Node.js version: v20.10.0
  • NPM version: 10.2.3
  • Strapi version: 5.7.0
  • Database: Postgres
  • Operating system: OS: darwin-arm64 Sequoia 15.1
  • Is your project Javascript or Typescript: Typescript

Describe the bug

I am exporting data from a v4 Strapi instance and importing it into to a v5 Strapi instance. And all the records are in my database as they should, but are not visible in Strapi. I discoverd that this is caused by the fact that there are no draft versions of the records available in the database (probably because in Strapi v4 it is one and the same record).

Steps to reproduce the behavior

  1. Follow the export documentation on a v4 instance
  2. Follow the import documentation on a v5 instance

Expected behavior

Would it be an idea to auto create a draft version (containing the data from the published version including relations) when the imported record has an published_at value?

Additonal notes

I am upgrading Strapi manually hence why I am porting the data manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:data-transferSource is core/data-transfer packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersversion: 5Issue is present in Strapi 5

    Type

    Projects

    Status

    To be reviewed (Open)

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions