Commit graph

141 commits

Author SHA1 Message Date
Laura Klünder
faf11f6bf5 put stats data in redis for external stats 2017-12-20 23:30:57 +01:00
Laura Klünder
303c4be485 add missing api endpoints for descriptions and access restriction groups 2017-12-20 22:53:57 +01:00
Laura Klünder
b2c56a00b6 fix if_modified_since by rounding down 2017-12-19 20:41:32 +01:00
Laura Klünder
a527317c27 timestamps instead of datetime 2017-12-19 20:32:18 +01:00
Laura Klünder
c55a087522 add missing Last-Modified header 2017-12-19 20:28:15 +01:00
Laura Klünder
1b82ebcfe9 remove api_etag for image 2017-12-19 20:24:30 +01:00
Laura Klünder
783a521682 last modified support for source images 2017-12-19 20:20:29 +01:00
Laura Klünder
8b27084335 display → details 2017-12-14 22:17:51 +01:00
Laura Klünder
5f21f4ce6d fix location details api 2017-12-14 22:16:48 +01:00
Laura Klünder
baaec3cc9b SourceViewSet order by name 2017-12-07 19:29:46 +01:00
Laura Klünder
1169597800 update tile access cookie setting infrastructure 2017-12-04 17:24:01 +01:00
Laura Klünder
d4a0a9b7dd show current (maybe anonymous) user and their permissions 2017-12-04 16:11:57 +01:00
Laura Klünder
1f2c886fa3 remove duplicate code by using LocationViewSetBase 2017-11-30 17:54:40 +01:00
Laura Klünder
f45cf00cd0 remove debug statement 2017-11-30 00:44:24 +01:00
Laura Klünder
968fc3885d etags in api preview 2017-11-29 12:29:37 +01:00
Laura Klünder
e9bbd44822 more caching in api 2017-11-29 12:07:27 +01:00
Laura Klünder
9bcd4600e0 add more explanation to the API 2017-11-29 11:27:50 +01:00
Laura Klünder
8f3fd001fe remove levels/svg api endpoint as this no longer works 2017-11-29 10:52:25 +01:00
Laura Klünder
eeae2d019b display coordinates details 2017-11-28 21:24:08 +01:00
Laura Klünder
dc46173668 custom locations are something that we want 2017-11-28 20:15:31 +01:00
Laura Klünder
6d13725e13 location api: use ids by default 2017-11-27 16:06:55 +01:00
Laura Klünder
aaabc7e37c add ramp model 2017-11-17 20:31:29 +01:00
Laura Klünder
949b88389e add Location.details_display() 2017-11-02 13:35:58 +01:00
Laura Klünder
ba3e1e485e remove debug statement 2017-11-02 12:45:33 +01:00
Laura Klünder
614c61efee fix redirect in location display api 2017-11-01 15:59:04 +01:00
Laura Klünder
e6b6db1c7c add location display endpoint 2017-11-01 15:55:59 +01:00
Laura Klünder
619ccab617 cache mapdata api 2017-11-01 12:26:13 +01:00
Laura Klünder
4e3dd875c6 django complains without a clear reason, so remove .select_related().only() 2017-11-01 12:05:37 +01:00
Laura Klünder
b0cfa4e309 rename simple_api_cache → api_etag to avoid confusion 2017-11-01 11:12:40 +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
b3e577349b remove debug condition 2017-10-31 13:59:18 +01:00
Laura Klünder
be2a81f806 move complicated Location API Queryset into LocationSlug 2017-10-31 13:25:42 +01:00
Laura Klünder
8c52f9aed1 add language to etag 2017-10-28 21:47:53 +02: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
c2bedebd28 replace ?search with ?searchable 2017-10-28 14:09:59 +02:00
Laura Klünder
c35d833640 order locations by relevance 2017-10-28 13:31:12 +02:00
Laura Klünder
0cfae778f0 Location API: can_seach OR can_describe 2017-10-28 13:18:28 +02:00
Laura Klünder
4f0dce05a1 location api: only prefetch location groups that are visible to the user 2017-10-28 12:44:22 +02:00
Laura Klünder
1536fb0e10 besser queryset mode values in location api 2017-10-28 12:38:29 +02:00
Laura Klünder
7632ce39ae add simple_api_cache to editor API 2017-10-27 17:33:50 +02:00
Laura Klünder
85a0993799 add ETag to mapdata api 2017-10-27 16:40:15 +02:00
Laura Klünder
92f0ffe6fd cache location api list and query 2017-10-27 15:25:03 +02:00
Laura Klünder
db6102d5e5 fix typo 2017-10-27 15:14:34 +02:00
Laura Klünder
8472fc1952 fix docs in LocationViewSet 2017-10-27 14:52:31 +02:00
Laura Klünder
58f1ae9ee3 improve location API using caching 2017-10-27 14:51:09 +02:00
Laura Klünder
25b478f227 add first subtitle code 2017-10-27 13:47:12 +02:00
Laura Klünder
ead6de24ae map API 2017-10-10 17:55:55 +02:00
Laura Klünder
7a06f8de4e respect access restrictions in render_svg() 2017-07-14 00:16:20 +02:00