Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollback to a previous version of a document #34

Open
6 tasks done
CorentinPARZ opened this issue Mar 15, 2023 · 5 comments
Open
6 tasks done

Rollback to a previous version of a document #34

CorentinPARZ opened this issue Mar 15, 2023 · 5 comments
Assignees
Labels

Comments

@CorentinPARZ
Copy link
Contributor

CorentinPARZ commented Mar 15, 2023

From the document modification history, we can rollback to a previous version

Deliverables

Phase 1

  • Scenarios (Gherkin)
  • Mockups
  • Implementation strategy

Phase 2

  • Acceptance tests (Capybara)
  • Implementation

Phase 3

  • Screencast
@khbgbgk1
Copy link
Contributor

Traduction 2024 : Permet de réccupérer une ancienne traduction si les nouvelles modifications ne semblent pas adaptées ou pour comparer plusieurs traductions.

@Anto792
Copy link
Contributor

Anto792 commented Mar 19, 2024

@koeltv koeltv moved this from Suggéré to À faire in Traduction 2024 Apr 16, 2024
@koeltv koeltv moved this from À faire to En cours in Traduction 2024 May 7, 2024
@AgatheIV AgatheIV self-assigned this May 7, 2024
koeltv added a commit that referenced this issue May 21, 2024
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
@PaulGitProject
Copy link
Contributor

PaulGitProject commented May 21, 2024

Traduction 2024
@AgatheIV @PaulGitProject

Préparation de l'implémentation

Pistes pour l'implémentation :

Récupération d'une ancienne version de document

Lien de la documentation de récupération des versions dans CouchDB

Exemple:

  1. Faire une requête GET dans CouchDB, avec comme paramètre /hyperglosae/content?endkey=["ID DU DOCUMENT",{}]&include_docs=true
  2. Dans les résultats de la requête, nous avons les ID de tous les paragraphes
  3. On choisit l’id du paragraphe que l’on veut rollback, et on fait une requête GET avec comme paramètre : /hyperglosae/ID DU PARAGRAPHE?revs_info=true
  4. On obtient la liste des révisions du document :

Image

  1. Il faut ensuite faire une seconde requête GET sur l’id du paragraphe, avec comme paramètre “rev” avec le dernier ID de révision en status “available”: /hypergloase/{ID DU PARAGRAPHE}?rev={ID DE DERNIÈRE RÉVISION}

@khbgbgk1
Copy link
Contributor

khbgbgk1 commented May 21, 2024

@PaulGitProject PaulGitProject self-assigned this May 21, 2024
khbgbgk1 added a commit that referenced this issue May 21, 2024
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
khbgbgk1 added a commit that referenced this issue May 21, 2024
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
PaulGitProject added a commit that referenced this issue Jun 4, 2024
Co-Authored-By: AgatheIV <agathe.guichard@utt.fr>
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
PaulGitProject added a commit that referenced this issue Jun 4, 2024
Co-Authored-By: AgatheIV <agathe.guichard@utt.fr>
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
PaulGitProject added a commit that referenced this issue Jun 4, 2024
Co-Authored-By: AgatheIV <agathe.guichard@utt.fr>
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
PaulGitProject added a commit that referenced this issue Jun 11, 2024
Co-Authored-By: AgatheIV <agathe.guichard@utt.fr>
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
koeltv added a commit that referenced this issue Jun 11, 2024
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
koeltv added a commit that referenced this issue Jun 11, 2024
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
koeltv added a commit that referenced this issue Jun 11, 2024
Co-Authored-By: AgatheIV <agathe.guichard@utt.fr>
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
@koeltv koeltv moved this from En cours to En intégration in Traduction 2024 Jun 11, 2024
@koeltv
Copy link
Contributor

koeltv commented Jun 11, 2024

Fait par @koeltv et @khbgbgk1

HyperGlosae_Rollback.mp4

koeltv added a commit that referenced this issue Jun 18, 2024
Co-Authored-By: AgatheIV <agathe.guichard@utt.fr>
Co-authored-by: khbgbgk1 <thibault.bisagni@utt.fr>
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: En intégration
Development

No branches or pull requests

7 participants