Commit graph

427 commits

Author SHA1 Message Date
Laura Klünder
aa7ffab45c use delay() instead of apply_async() 2017-11-10 18:30:40 +01:00
Laura Klünder
64648d5d4f fix updating map history 2017-11-10 17:58:39 +01:00
Laura Klünder
efbbbe2495 schedula process_map_updates usind celery on new MapUpdate creation 2017-11-10 16:56:50 +01:00
Laura Klünder
ea22c7a927 process updates asynchronously 2017-11-10 16:32:58 +01:00
Laura Klünder
bf1e8a9b11 remove all old rendering methods 2017-11-09 17:32:39 +01:00
Laura Klünder
de6e67d8ae fix import 2017-11-05 17:15:20 +01:00
Laura Klünder
ae5bbb7705 superusers get their own cache key 2017-11-05 16:47:25 +01:00
Laura Klünder
e0ae343503 remove old render_svg code 2017-11-05 13:29:16 +01:00
Laura Klünder
df451f9143 cleanup render code to make room for the opengl rendering engine 2017-11-04 23:21:36 +01:00
Laura Klünder
949b88389e add Location.details_display() 2017-11-02 13:35:58 +01:00
Laura Klünder
e6b6db1c7c add location display endpoint 2017-11-01 15:55:59 +01:00
Laura Klünder
fd74ca3258 calculate better representative point for geometries 2017-10-31 19:20:28 +01:00
Laura Klünder
31bc299f77 superusers have all access permissions 2017-10-31 18:09:55 +01:00
Laura Klünder
e98c38e5fb represent level in state url as short_label, not its id 2017-10-31 16:08:20 +01:00
Laura Klünder
620323b808 export entire location query logic into mapdata.utils.locations and cache 2017-10-31 15:22:12 +01:00
Laura Klünder
247d6b119e fix subtitles if space_cache or level_cache are empty 2017-10-31 14:08:01 +01:00
Laura Klünder
be2a81f806 move complicated Location API Queryset into LocationSlug 2017-10-31 13:25:42 +01:00
Laura Klünder
d174451699 forgot one place where it still was y,x 2017-10-29 11:34:23 +01:00
Laura Klünder
a3be7b2842 flip every y,x to x,y 2017-10-29 11:32:44 +01:00
Laura Klünder
5fe03c4c8e add simple_geometry to location api 2017-10-28 21:36:52 +02:00
Laura Klünder
f83b77ed8b improve location api caching again and improve subtitles/descriptions 2017-10-28 20:50:02 +02:00
Laura Klünder
8beb6f9e8b better subtitles for location groups and more caching in query set 2017-10-28 20:30:27 +02:00
Laura Klünder
966b554169 locationgroups always on top 2017-10-28 20:06:44 +02:00
Laura Klünder
be97ed6a47 add LocationGroup.subtitle 2017-10-28 19:49:28 +02:00
Laura Klünder
c35d833640 order locations by relevance 2017-10-28 13:31:12 +02:00
Laura Klünder
1db9db542f fix register_changed_geometries on LocationGroup and LocationGroupCategory 2017-10-28 13:04:46 +02:00
Laura Klünder
7a2ecb60ed add ETag to editor 2017-10-27 17:08:36 +02:00
Laura Klünder
85a0993799 add ETag to mapdata api 2017-10-27 16:40:15 +02:00
Laura Klünder
ef340c5193 defer Level.render_data when querying by locationslug 2017-10-27 16:00:54 +02:00
Laura Klünder
f99779e9de fix ?detailed-logic 2017-10-27 15:05:41 +02:00
Laura Klünder
879f550f84 fix subtitle logic 2017-10-27 15:03:38 +02:00
Laura Klünder
508a45b4c8 simplify subtitle logic 2017-10-27 14:51:26 +02:00
Laura Klünder
feb62bec39 check category_id, not category to avoid additional queries 2017-10-27 13:47:23 +02:00
Laura Klünder
25b478f227 add first subtitle code 2017-10-27 13:47:12 +02:00
Laura Klünder
48fb0e4555 add Level.short_label 2017-10-25 12:29:08 +02:00
Laura Klünder
1bf61f5f0f access_permissions should be a set 2017-10-24 23:24:45 +02:00
Laura Klünder
d34afc37c6 expire access permission cache earlier if a permission will expire 2017-10-24 22:52:38 +02:00
Laura Klünder
10da4f3bb6 implement access permissions 2017-10-24 22:45:57 +02:00
Laura Klünder
7c44a9d74f add AccessPermission modeling 2017-10-24 22:13:53 +02:00
Laura Klünder
506b959946 remove delete_old_cached_tiles task because new caching does not need this 2017-10-24 18:14:35 +02:00
Laura Klünder
6b6e3afa7b tile view: use new intelligent caching 2017-10-24 18:12:46 +02:00
Laura Klünder
f34dd89424 change MapHistory format from cache_key to id and timestamp 2017-10-24 01:59:50 +02:00
Laura Klünder
1b972c4ab0 rebuild LevelRenderData after saving changed_geometries 2017-10-24 01:14:36 +02:00
Laura Klünder
24a2fe9522 write binary map history index 2017-10-24 00:11:02 +02:00
Laura Klünder
82fc9f2264 rename cache_key→current_cache_key 2017-10-23 22:49:45 +02:00
Laura Klünder
2124b4a536 move cache.py to mapdata root 2017-10-23 19:32:11 +02:00
Laura Klünder
5af314d282 register updated geometries for tile cache invalidation 2017-10-23 19:25:15 +02:00
Laura Klünder
9f59b841b0 cache LevelRenderData for each level completely (+ cropping) 2017-10-20 22:02:51 +02:00
Laura Klünder
96dc678fe6 delete old cached map tiles 2017-10-20 17:00:14 +02:00
Laura Klünder
1ae60dba63 render XML directly as string for better performance and more cleanup 2017-10-19 23:50:21 +02:00