Generator-jhipster: Duplicate Success Message Printing: Entity Generation

Created on 24 Mar 2020  路  3Comments  路  Source: jhipster/generator-jhipster

Overview of the issue

When generating entities using a JDL file, upon success we print the message; INFO! Congratulations, JHipster execution is complete!. However this message seems to be printed for each entity generated. So for example if I have three entities in my JDL file that message is printed three times.

Motivation for or Use Case

It's not the most visually pleasing when say we have a JDL file with 10 entities and the success message being printed 10 times.

Reproduce the error

Create a simple project. You can use the below configuration.

Related issues

None.

Suggest a Fix

Don't have one right now. If someone is willing to take this please feel free to do so; otherwise I'll fix this in the future. :smile:

JHipster configuration
<details>
<summary>.yo-rc.json file</summary>
<pre>
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.mycompany.myapp"
    },
    "jhipsterVersion": "6.8.0",
    "applicationType": "monolith",
    "baseName": "jhipster",
    "packageName": "com.mycompany.myapp",
    "packageFolder": "com/mycompany/myapp",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "cacheProvider": "ehcache",
    "enableHibernateCache": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSwaggerCodegen": false,
    "jwtSecretKey": "bXktc2VjcmV0LXRva2VuLXRvLWNoYW5nZS1pbi1wcm9kdWN0aW9uLWFuZC10by1rZWVwLWluLWEtc2VjdXJlLXBsYWNl",
    "embeddableLaunchScript": false,
    "useSass": true,
    "clientPackageManager": "npm",
    "clientFramework": "angularX",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "creationTimestamp": 1585028296449,
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "otherModules": [],
    "enableTranslation": false,
    "blueprints": []
  }
}

</pre>
</details>


##### **JDL for the Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**

<details>
<summary>JDL entity definitions</summary>

<pre>
entity Region {
  regionName String
}
entity Country {
  countryName String
}
entity Location {
  streetAddress String,
  postalCode String,
  city String,
  stateProvince String
}

</pre>
</details>


##### **Environment and Tools**

openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)

git version 2.17.1

node: v12.13.0

npm: 6.12.0

yarn: 1.21.1

Docker version 19.03.8, build afacb8b7f0

docker-compose version 1.24.1, build 4667896b
  • [x] Checking this box is mandatory (this is just to show you read everything)
$$ bug-bounty $$ $100 area cli

Most helpful comment

@nassimerrahoui I didn't know that you worked on it, I made a PR #11507 I contact you

All 3 comments

Hello, I'm working on it.

@nassimerrahoui : Wonderful; thanks. Let me know if you have any questions or further information. :smile:

@nassimerrahoui I didn't know that you worked on it, I made a PR #11507 I contact you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcelinobadin picture marcelinobadin  路  3Comments

ahmedeldeeb25 picture ahmedeldeeb25  路  3Comments

tomj0101 picture tomj0101  路  3Comments

chegola picture chegola  路  4Comments

DanielFran picture DanielFran  路  3Comments