Skip to content

Commit fcf1406

Browse files
committed
Update todo.
1 parent edb904f commit fcf1406

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Todo.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ The selector string provided by user should be sanitized. Take a look at Ryan's
33
PageService module to get clue on how to properly do that.
44

55
#### N+1 Problem
6-
It is very convinient to request additional data for Page fields. E.g. request skyscraper'same
6+
It is very convenient to request additional data for Page fields. E.g. request skyscraper's name
77
title, year, height and also request title for each page in architect field. While this works
88
currently it will make ProcessWire make [N+1 requests][n1-problem] to database and make
99
response slow. We need to solve it.
@@ -12,6 +12,17 @@ response slow. We need to solve it.
1212
We need to make sure the user is able to request queries only for couple levels deep
1313
to prevent the CPU intensive requests.
1414

15+
#### Add support for Image thumbs
16+
- Add `variations` field for image fields that lets you request the available image
17+
thumbnail variations.
18+
- Add `thumb` field for images fields that allows user to request the image thumbnail
19+
with particular height and/or width. If there isn't a thumbnail variation with such
20+
size, then create it.
21+
- Mind permissions for thumbnail creation.
1522

23+
### Add support for LanguageFields
24+
By default the content of the LanguageFields should resolve to the `$user->language`.
25+
In addition to that there will be a top level field called `language` which will
26+
allow the client to choose the language for each request.
1627

17-
[n1-problem]: https://secure.phabricator.com/book/phabcontrib/article/n_plus_one/
28+
[n1-problem]: https://secure.phabricator.com/book/phabcontrib/article/n_plus_one/

0 commit comments

Comments
 (0)