amplication / amplication/amplication

🐛 Bug Report: relation fields with names that include "id" should be created properly

Offen
#8,425 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @yuval-hazaz Auf GitHub ansehen
type: bug
Vorherrschende Sprache
TypeScript
Sterne
16k
Forks
1.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### What happened?

When using Jovu, the AI model sometimes sends a request to create a field with the type "Lookup" (for relation), and the name of the field is sent with a suffix ID (which is not expected).
For example, the field name is "customerId" instead of "customer" - this causes the field to be created as a SingleLineText because the entity is not found

### What you expected to happen

Amplication should create the field as relation and use the property naming convention with out the suffix a

### How to reproduce

use Jovu and ask to create a relation called "customerId" from table x to table customer

### Amplication version

_No response_

### Environment

_No response_

### Are you willing to submit PR?

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.