loopbackio / loopbackio/loopback-connector-sqlite3
PUT endpoint does not return correct id (maybe rowid?)
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 13
- Fork
- 21
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Bug or feature request
- [X ] Bug
- Feature request
Description of feature (or steps to reproduce if bug)
Create a model with an id as type "string", and a defaultFN of "uuid". PUT a new instance using the REST api through explorer. The response body will show an integer id (presumably an integer that corresponds to the ROWID or something like that). Now use the GET api to list all model instances. The instance will show an id in the correct uuid format.
Link to sample repo to reproduce issue (if bug)
Expected result
I'm assuming the response body should reflect the id generated by defaultFN.
Actual result (if bug)
Its an integer.
Additional information (Node.js version, LoopBack version, etc)
Loopback 3, node 8.11.2
I'm anticipating a reply of "why are you using a string for a key?" The answer is complicated based in integration with a larger project. If the answer is "we don't support that" we'll make it work, but I wanted to check to make sure. Thanks
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il caso di LoopBack 3 creando un modello con un id di tipo string e uuid defaultFN, quindi invia una nuova istanza tramite PUT attraverso il REST API Explorer. Confronta la risposta PUT con l’id restituito quando si elencano le istanze tramite GET; l’attività è completata quando la risposta PUT restituisce l’UUID generato invece di un intero.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, sqlite
- Ambito
- databases
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100