Story: Diff two feeds
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
Direzione di ricerca
I punti di ingresso indicati sono jawn.checkout, jawn.diff e l’ipotetico jawn.applyActionStream; inizia individuando le loro implementazioni e il codice di feed o repository che utilizzano. Il completamento consiste nel produrre azioni JSON add, update e delete la cui applicazione faccia corrispondere feedOne a feedTwo, come illustrato negli esempi di checkout e diff. Non è indicato alcun file di test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This is a Work in Progress
If I run jawn.diff(feedOneId, feedTwoId) I should get a stream of json objects representing actions (add/update/delete).
If I apply all of the actions in that stream to the database/repository represented by feedOne, its contents should then match feedTwo.
Running a diff
Checkout a feed, run a diff and print the results of the diff.
var jawn = require('jawn');
var through = require('through2').obj;
var checkout = jawn.checkout(feedOneId);
checkout.on('end', function () {
jawn.diff(feedOneId, feedTwoId).pipe(process.stdout)
});
The output should look roughly like this: (see 2015 dat beta for real examples)
{ action: "add", key: 9812349878, values: {...} }
{ action: "delete", key: 23421341234 }
Applying a diff using (hypothetical) jawn.applyActionStream function
var jawn = require('jawn');
var through = require('through2').obj;
var checkout = jawn.checkout(feedOneId);
var applyActions = jawn.applyActionStream
checkout.on('end', function () {
jawn.diff(feedOneId, feedTwoId).pipe(applyActions)
})
applyActions.on('end', function () {
// the current contents of the repo should match the contents of feedTwo
t.same('', jawn.diff(jawn.current, feedTwoId))
})
- Lingua principale
- JavaScript
- Stelle
- 46
- Fork
- 8
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Altre issue di CodeForPhilly/jawn
-
in progress
CodeForPhilly/jawn#46 · 1 assegnatario ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
CodeForPhilly/jawn#44 ·
-
database tracker
CodeForPhilly/jawn#43 · 5 commenti · 1 assegnatario ·
-
update to hypercore 2.0 Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
CodeForPhilly/jawn#40 · 2 commenti ·
-
Try using hyperkv Apertain progress
CodeForPhilly/jawn#37 · 1 assegnatario ·
Tutte le issue di CodeForPhilly/jawn
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
neondatabase/website#5944 ·
-
module: core
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·