CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs

Unsuccessful Import User Story

Aperta
#130 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement OSS question
Lingua principale
JavaScript
Stelle
3
Fork
6
Merge medio
2g 47m
PR unite (30g)
4

Descrizione

This anticipates the failure to negotiate `@id` and `id` in other software.

I think about it in the IIIF sense. I have a IIIF Presentation API 3 Manifest with `id: "https://not.from.rerum/id/12345"`. I want to put navPlace on it so I use the RERUM Geolocator to generate a new Manifest and it has `"@id":"https://store.rerum.io/v1/id/aeeaeae"`. I did that just to preview what would happen in my system if I gave it an object with navPlace. I go to "https://my.software/page.html?id=https://store.rerum.io/v1/id/aeeaeae" and get `Error: obj.id is undefined`.

Should the `_import()` functionality keep the `id` property if it was supplied with the origin object? That property is removed prior to being inserted in the DB to make sure resulting objects only contain `@id`. This is a Linked Data gray area.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando la funzionalità di `_import()` e il punto in cui l’`id` dell’oggetto di origine viene rimosso prima dell’inserimento nel database. Riproduci lo scenario IIIF Manifest descritto nell’issue, quindi determina e verifica la gestione prevista dei valori `id` forniti e `@id` generati, in modo che l’oggetto risultante non provochi `obj.id is undefined`.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, nodejs
Ambito
api, backend, database
Tipo di issue
Bug
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.