0db8ca6c47
document icon, fixes #2987
2017-01-25 17:42:49 +01:00
aeab4d03de
keep private texts private
2017-01-25 17:39:12 +01:00
bf8c99513b
no access to private documents
2017-01-25 00:13:37 +01:00
c4350e2334
py3
2017-01-24 16:19:34 +01:00
f71240ac2c
look in the right place, fixes #2989
2017-01-20 17:44:31 +01:00
6ad112a3b8
fix pdf upload
2016-11-30 11:36:29 +01:00
95131a6429
use lower case extensions
2016-10-30 18:23:16 +01:00
e1f35b1ec8
new documents section
2016-10-30 18:23:16 +01:00
d4a232d594
py3 decode
2016-10-28 18:18:26 +02:00
9ef306ab53
support getting related items
2016-09-23 22:58:31 +02:00
b7659d6f14
cleanup document cache after upload
2016-09-23 22:58:31 +02:00
29600fa5f7
import unquote, fixes #2969
2016-09-20 15:59:49 +02:00
1468ddbecb
towards supporting python 2 and 3
...
- use absolute_imports
- make use of six.moves
- use exec instead of execfile
- use list(dict) instead if dict.keys()
2016-08-25 18:34:36 +02:00
c7157d5001
only decode ids for found positions
...
merge document.view.get_positions into item.utils.get_positions
add flag to decode id before looking up in ids
Followup to 09ebbc9cc6
2016-06-30 16:18:07 +02:00
3d95d7013a
Merge remote-tracking branch 'wjt/2935-findDocuments-performance'
2016-06-30 15:43:09 +02:00
e9863c238e
always use get_operator, avoid case-insensitive match if possible
2016-06-30 11:28:09 +02:00
09ebbc9cc6
findDocuments: improve performance of positions queries
...
References #2935
2016-06-28 16:36:55 +01:00
8d25e3be78
findDocuments: improve entity query performance
...
When I implemented this in 9a4c24c
, there were not many rows in
entity_documentproperties in the database here. Now that there are,
computing the document_document -> entity_documentproperties ->
entity_entity join and then filtering is really, really slow. Postgres
seems to materialize the whole join and then scan it.
If we get a set of matching document IDs for the entity query in a
subquery, and then just filter with IN on that, things are much faster:
scan entity_entity; in a nested loop, get the document_ids via
entity_documentproperties; hash this set; and then scan
document_document.
Searching for a single character, this brings the query from ~1.1s to
~400ms. Searching for a full word, ~800ms to 120ms
This condition is getting really ugly -- I am sorry!
References #2935
2016-06-28 16:33:01 +01:00
2cec1b9ad5
s/import Image/from PIL import Image/g
2016-06-25 20:39:29 +02:00
a8dcbbbe89
Include DocumentProperties.data in Document.json()
2016-03-05 15:07:47 +05:30
9a4c24cdb4
Support searching documents by entities
2016-03-04 12:41:41 +00:00
738a9282b4
Document: fix negating id queries
2016-03-04 12:41:41 +00:00
6e0049a20c
Don't save Document in pre_delete handler ( fixes #2889 )
...
FileField.delete() will, by default, save() the model instance it is
attached to. This is pointless if we're in the process of deleting the
Document -- and since Document.save() calls Document.update_matches(),
this scans all annotations every time a document is deleted.
2016-03-03 18:10:29 +05:30
051a3578b4
inline django 1.9 version of ox.django
2016-02-20 10:41:23 +00:00
0367816257
only crop with 4 crop points
2016-02-20 10:41:22 +00:00
4219246909
db migration
2016-02-20 15:15:01 +05:30
1cc795995d
user.get_profile()->user.profile
2016-02-19 22:06:11 +05:30
5d63ad1760
default/upload_to=lambda breaks migrations, use functions
2016-02-19 21:59:26 +05:30
e738503380
remove old migrations
2016-02-19 15:17:18 +00:00
47d8d67c3d
Allow 'query' to be omitted from find*() ( fixes #2883 )
...
I hit this in findDocuments() so thought I'd fix them all.
2016-02-15 14:58:50 +00:00
j
54b7c4be9a
update dimensions replacing documents, add modified to image urls to get latest version
2015-10-26 16:10:12 +01:00
j
6f9fb06da3
Replace Document, still some cache issues, fixes #2855
2015-10-25 22:08:13 +01:00
b7a83554ab
Fix references to findDocument[s] in docstrings
2015-05-20 12:14:21 +02:00
j
6693bfcd0f
return document or 404 no 500
2015-02-20 15:13:23 +00:00
j
a2e23739b8
return id in response, fixes #2058
2015-02-14 18:29:58 +00:00
j
ccfaa7db4a
add entity/document relation
2015-02-13 11:06:09 +00:00
j
809486b43c
cropped thumbnails of image documents
2015-02-05 08:08:28 +00:00
rolux
ea1a94e9e4
update api docs (omissions, wording, typos)
2014-12-21 13:03:49 +00:00
rolux
3950213960
update api docs
2014-12-19 15:31:57 +00:00
rolux
cada20f904
update api docs
2014-12-19 15:05:08 +00:00
rolux
4a084d8405
update api docs
2014-12-19 12:59:10 +00:00
rolux
7cfdf7b8db
update api docs
2014-12-18 18:18:18 +00:00
j
9e9bf30c42
add new changelog and call add_changelog all over the place
2014-12-17 13:45:46 +00:00
j
e98b97842e
send 404 not 500 if document does not exist
2014-11-20 13:24:43 +00:00
j
c6bd95050a
typo
2014-11-20 12:41:41 +00:00
j
d12121d229
more thumbnail cleanups
2014-11-01 18:09:33 +02:00
j
f4779195a2
fix pdf ratio
2014-11-01 15:42:16 +02:00
j
ceb507020b
data is passed to api functions now
2014-10-06 08:26:43 +00:00
j
3232ce6989
rename Item.itemId to Item.public_id
2014-09-19 12:26:46 +00:00
j
72d9dbf0f2
avoid passing open network connections to subprocesses, call Popen with close_fds=True
2014-09-02 14:24:12 +00:00