-
Notifications
You must be signed in to change notification settings - Fork 12
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
Extend developer guide #1365
Comments
Well that's hard to say as I had no experience with anything more than static websites. So I guess just getting used to Django MVT structure and how to work with a database and migrations, and user permissions were very confusing (changing group/user permissions in admin vs. on the manage datasets page). |
Semi-related, Manage Video Storage is deployed: https://signbank.cls.ru.nl/datasets/checks/5 (Related as it allows to see how the videos are stored in the file system.) There's a button to it on the Manage Datasets page for the specific dataset. |
Okay, I've reorganized and extended https://github.com/Signbank/Global-signbank/wiki/Developer-guide . I think what's missing is what you do if you want to start with an empty database. @susanodd , can you explain this to me, so I can add it to the page? |
Do we assume that they will get this from you? Or will it be the one that @vanlummelhuizen is making? As far as I know his isn't ready yet.
How to generate an empty database (roughly, probably needs to be rewritten) If you are going to send a "vacuum-empty" database, then you could add an account for the recipient to it before you send it. Or we could just generate a new empty database after they have an account already on Signbank. There are three commands for generating an empty database like the one I made. The data is removed except for that necessary to run Signbank. Then the datasets are removed, except for that one. Then the users are removed, except for us developers. It was too complicated to preserve one dataset without emptying it as well. That is because when you delete data, it records the delete operations in the database. So it ended up that they just needed to be "vacuumed" as is done for tests. Not do delete operations on all the glosses. (The delete operations cause signals to save data about deletion.) |
@Woseseltops this one is obsolete: Now it's either via the Manage Datasets -> Manage Media page or using the API, all by uploading a zip file. I added a couple of lines to the start of that page. It ought to be rewritten because it won't actually work as described. There didn't use to be as many permission checks. There is also a container now. The zip file has the same structure as is described in that wiki page. For the API, a second zip structure is also available, that the videos are just the gloss ID.mp4 The videos are not converted and assumed to be in mp4, as per request of UvA. (Video conversion was sometimes failing, so it was turned off.) The original Management command checked the format. (That can be restored if needed.) |
It's still unclear, but there's a chance @rem0g will work on this repository for a bit, which is a good excuse to extend our developer guide https://github.com/Signbank/Global-signbank/wiki/Developer-guide .
@Jetske , when you were getting started, what were things you struggled with that are not in this guide?
The text was updated successfully, but these errors were encountered: