amplication / amplication

🔥🔥🔥 The Only Production-Ready AI-Powered Backend Code Generation
https://amplication.com
Other
15.14k stars 1.48k forks source link

🐛 Bug Report: Jovu create duplicate entities when one of the entities failed to create #8423

Open yuval-hazaz opened 5 months ago

yuval-hazaz commented 5 months ago

What happened?

use this prompt

Create a new service for employee management, including working hours, locations, managers, employees, functions, and salary

Jovu will create all entities correctly but will fail on the creation of the function entity because the name is reserved.

unexepectadly, Jovu will retry to create all entities again with unique names, and we will end up with most entities created twice

What you expected to happen

Jovu should understand that some entities were created successfully and should only try again for the failed entity (or let the user know that this one failed)

How to reproduce

use this prompt, on an existing project that is already connected to a git repo

Create a new service for employee management, including working hours, locations, managers, employees, functions, and salary

Amplication version

No response

Environment

No response

Are you willing to submit PR?

No response

morhag90 commented 5 months ago

Passed QA:

image