From 6d349aa2357f9b69ed5efb0c905b786c480604df Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 1 May 2018 18:06:27 -0700 Subject: [PATCH] Update to do list with more batching ideas. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 135e2d8..f97a691 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,9 @@ Here is a brief overview of the project to help you learn your way around: - Create a textbox which gives autocomplete tag names. - Consider if the "did you commit too early" warning should actually be an exception. - Extension currently does not believe in the override filename. On one hand this is kind of good because if they override the name to have no extension, we can still provide a downloadable file with the correct extension by remembering it. But on the other hand it does break the illusion of override_filename. +- When batch fetching objects, consider whether or not a NoSuch should be raised. Perhaps a warningbag should be used. +- Find a way to batch the fetching of photo tags in a way that isn't super ugly (e.g. on an album page, the photos themselves are batched, but then the `photo.get_tags()` on each one is not. In order to batch this we would have to have a separate function that fetches a whole bunch of tags and assigns them to the photo object). +- Consider using executemany for some of the batch operations. ### To do list: User permissions Here are some thoughts about the kinds of features that need to exist within the permission system. I don't know how I'll actually manage it just yet. Possibly a `permissions` table in the database with `user_id | permission` where `permission` is some reliably-formatted string.