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

As a content admin, I want transcription content backups to be regularly updated as edits are made, so that the backup is up to date, version history is more granular, and I can compare changes. #1096

Closed
7 tasks done
rlskoeser opened this issue Sep 19, 2022 · 3 comments
Assignees

Comments

@rlskoeser
Copy link
Contributor

rlskoeser commented Sep 19, 2022

testing notes

Test the transcription backup by editing transcription content on the test PGP site and then checking for corresponding changes in the test export repository. Simplest solution right now is to look at the commit history and check for changes based on your edits. https://github.com/Princeton-CDH/test-pgp-annotations/commits/main

Right now I have it configured to push changes every 2 minutes, so there may be a slight delay before you see your changes

test a few different cases:

  • edit an existing transcription and make a few text changes
  • edit an existing transcription that has content on more than one image; remove blocks of content so there is only content on image (one of the annotation list files should be removed;
  • add a new transcription
  • remove an existing transcription entirely — the corresponding exports should be removed from github

dev notes

  • update transcription backup as a signal handler on annotation save
  • remove outdated transcriptions when the last annotation for a footnote is removed
  • cron job to regularly sync local with remote (avoid waiting on push/pull in the signal handler)
@rlskoeser rlskoeser added this to the CDH/PGP end of grant year 2 milestone Sep 19, 2022
@rlskoeser rlskoeser self-assigned this Sep 22, 2022
@rlskoeser rlskoeser added the 🗜️ awaiting testing Implemented and ready to be tested label Sep 23, 2022
@rlskoeser rlskoeser changed the title As a content admin, I want transcription content backups to be regularly updated as edits are made, so that the backup is up to date and version history is more granular. As a content admin, I want transcription content backups to be regularly updated as edits are made, so that the backup is up to date, version history is more granular, and I can compare changes. Sep 23, 2022
@kseniaryzhova
Copy link

@rlskoeser testing on Sunday, and it is not updating every 2 minutes - it's been half an hour and I still don't see an update about me creating or deleting transcriptions. It was working fine on Friday.

@rlskoeser
Copy link
Contributor Author

@kseniaryzhova I don't see any errors in the log for the sync script; I do see activity in the django log and I see that some changes were pushed on Sunday: https://github.com/Princeton-CDH/test-pgp-annotations/commits/test-tei-migration

I think this is my fault! It looks like I gave you a link to a different branch; I switched to a different branch to test exporting to github when we migrate the TEI and forgot that I had a different branch linked here.

@kseniaryzhova
Copy link

@rlskoeser I see it now, thank you! It works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants