Health API: Provide means to resolve conflicting result `Fix`es

Aperta
#151 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java
Ambito
api

Direzione di ricerca

Inizia con la Health API e il Fix/result model introdotto da pull request #149. Traccia il modo in cui i fix espongono i percorsi interessati e in cui i consumer li applicano attualmente in sequenza, quindi analizza il design dell’API necessario per i fix in conflitto. Il lavoro sarà completato quando sarà disponibile un metodo deciso e documentato per identificare o risolvere i fix che interessano le stesse risorse.

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

Descrizione

With the merge of https://github.com/cryptomator/cryptofs/pull/149, a result returns an Fix object, which represents the fix for the result (meaning that after applying the fix, the result does not appear again in a subsequent check).

Still, a key problem is not fixed: How to resolve conflicting (aka affecting the same resource) fixes?

It is explicitly spoken of fixes not only results, because a fix can affect more paths than just the result-causing ones. Example

Result A reports a file at the wrong place /Foo/Bar.c9r. The Fix is to move it to /Baz/Bar.c9r.
The result-causing paths are only /Foo/Bar.c9r, but the fix-affected paths are /Foo/Bar.c9r and /Baz/Bar.c9r.

Every fix alters the state of the filesystem, hence, subsequent fixes (including the same fix) might fail. Currently, the health API does not account for that and only reports all problems of the current filesystem state. The consumer can only execute one fix after another and rerun the health check(s) to fix previously failed fixes.

Lingua principale
Java
Stelle
110
Fork
39
Merge medio
1g 28m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cryptomator/cryptofs

Tutte le issue di cryptomator/cryptofs

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.