Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating an Entity with a blob field breaks Faker.js data generation #21704

Closed
1 task done
avdev4j opened this issue Apr 4, 2023 · 2 comments
Closed
1 task done

Comments

@avdev4j
Copy link
Contributor

avdev4j commented Apr 4, 2023

Overview of the issue

When an entity is generated, a CSV file is generated to inject fake data for development purposes.
If the entity contains at least one field that is a Blob (image or text) no fake data is present in the CSV.

Motivation for or Use Case

Whatever the fields are defined for a given entity, the fake data should not be empty unless it has been explicitly defined.

Reproduce the error

Generate a JHipster, then add an entity, and define at least one field that is a blob.

Here is a sample app that reproduce this behavior: https://github.com/avdev4j/bugJHiEntity

Related issues
Suggest a Fix
JHipster Version(s)

7.9.3

JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Entity configuration
     {
  "changelogDate": "20230404193607",
  "clientRootFolder": "bugjhient",
  "databaseType": "sql",
  "fields": [
    {
      "fieldName": "name",
      "fieldType": "String"
    },
    {
      "fieldName": "attachment",
      "fieldType": "byte[]",
      "fieldTypeBlobContent": "image"
    }
  ],
  "microserviceName": "bugjhient",
  "name": "Conference",
  "pagination": "no",
  "readOnly": false,
  "relationships": [],
  "service": "no"
}
  
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
avdev4j added a commit to entando/generator-jhipster-entando that referenced this issue Apr 4, 2023
@Ebsan
Copy link

Ebsan commented May 9, 2023

Similar to #19940. This was due to the liquibase version being used and is supposed to be fixed in the next release of Jhipster.

@qmonmert
Copy link
Contributor

qmonmert commented Nov 5, 2023

@DanielFran you can close it, fake data is present now for Blob
image
image

@deepu105 deepu105 added this to the 8.1.0 milestone Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants