Commit graph

1482 commits

Author SHA1 Message Date
Gwendolyn
4b1ac9f194 convert django lazy string proxies to strings in the base schema validator, rather than in the serialization code of each source model 2023-12-11 20:59:19 +01:00
Gwendolyn
22f1777c1c add samesite=strict for tile cookie 2023-12-11 20:58:46 +01:00
Laura Klünder
607c3f82fa fix grounaltitude migration 2023-12-11 20:34:11 +01:00
Laura Klünder
764ed575c9 commit missing migrations 2023-12-11 19:02:48 +01:00
Laura Klünder
ef83e73a36 make linter happy 2023-12-11 19:02:19 +01:00
Laura Klünder
c3ce665562 linter stuff 2023-12-11 18:49:18 +01:00
Laura Klünder
11a631136b remove old debug strings 2023-12-11 18:49:18 +01:00
Laura Klünder
f85bcc173a extract color variables for rendering 2023-12-11 18:49:18 +01:00
Laura Klünder
97c9c7ecb7 make altitudes reusable using GroundAltitude model 2023-12-11 18:17:57 +01:00
Gwendolyn
c939c81c71 updates/fetch should return user information in field "user_data" and not "user" 2023-12-11 15:13:16 +01:00
Gwendolyn
d0d18fcae2 SerializableSchema should check if its values can be serialized, so that it doesn't break when used in a union with a base type or schema that isn't a SerializableSchema 2023-12-11 14:07:41 +01:00
Laura Klünder
0b3d94124f better __str__ for altitudearea 2023-12-10 21:17:10 +01:00
Laura Klünder
f4257fbf3f fix but that would make levels just. not render 2023-12-07 20:12:10 +01:00
Laura Klünder
99c2c4e0f0 some renderdata code modernization 2023-12-07 20:11:55 +01:00
Laura Klünder
551cb1e086 start modernizing renderdata code somewhat 2023-12-07 19:13:42 +01:00
Laura Klünder
0150851808 fix typo or it will never load from local cache 2023-12-07 18:57:57 +01:00
Jenny Danzmayr
dff4b7ea46 more typehinting 2023-12-07 17:57:50 +01:00
Jenny Danzmayr
fc7e3a1ecf fixed that CachePackage.open works also for filenames as strings 2023-12-07 17:56:19 +01:00
Gwendolyn
6e12553c5f fix logic error in CachePackage.open() 2023-12-07 17:43:32 +01:00
Laura Klünder
372936fcad an experiment. lets don't use threading locks, hope it helps with performance 2023-12-07 17:28:13 +01:00
Jenny Danzmayr
ff1df86e2e fixed tile view trying to delete non existing folders 2023-12-07 08:08:07 +01:00
Jenny Danzmayr
960665a4ad fixed error in /updates/fetch api endpoint if case there are no site updates 2023-12-07 07:22:58 +01:00
Jenny Danzmayr
0083d1103b fixed process_updates and Locator.rebuild 2023-12-07 06:43:50 +01:00
Jenny Danzmayr
d5e77de9d0 zstd decompression support for CachePackage 2023-12-07 06:43:04 +01:00
Jenny Danzmayr
fe248d42a1 zstd compression support for CachePackage 2023-12-07 06:19:28 +01:00
Jenny Danzmayr
eaed69ad1c pathlib api stuff, zstd support and gracefull error handling for the get_cache_package 2023-12-07 04:12:37 +01:00
Jenny Danzmayr
a16d37a2f8 use pathlib the api in the mapdata/tile view for all file operations 2023-12-07 04:04:47 +01:00
Jenny Danzmayr
5523d5dc29 used shutil.rmtree instead of executing rm -rf 2023-12-07 03:22:40 +01:00
Laura Klünder
34af60782c merge RangeLocator into Locator and modernize code 2023-12-07 02:21:46 +01:00
Jenny Danzmayr
ae65a68830 fixed handling of locks via redis during mapupdates 2023-12-07 01:27:08 +01:00
Laura Klünder
83dfdec90f RangeLocator needs current router instead of old one (which might fail) 2023-12-07 00:18:20 +01:00
Laura Klünder
f64e65f297 make icon optional again 2023-12-04 23:07:30 +01:00
Laura Klünder
29e16e8ce0 remove more todo items 2023-12-04 22:31:00 +01:00
Laura Klünder
b7b18cad36 implement can_access_geometry 2023-12-04 22:27:01 +01:00
Laura Klünder
1a0c4e63f5 lots of small fixes and todo removals 2023-12-04 22:21:48 +01:00
Laura Klünder
964574e535 more map api documentation improvements 2023-12-04 18:58:49 +01:00
Laura Klünder
fdf4860ea8 better bounds examples 2023-12-04 16:19:34 +01:00
Laura Klünder
4be79776cb update BoundsSchema docs 2023-12-04 13:55:24 +01:00
Laura Klünder
87ef037421 more api docs and tweaks for auth and updates API 2023-12-04 13:46:32 +01:00
Laura Klünder
ea335a8fe8 start making optional attributes look better in redoc 2023-12-03 23:27:42 +01:00
Gwendolyn
c8ec578045 fix package.tar file path generation with pathlib 2023-12-03 23:06:59 +01:00
Gwendolyn
73c80f576c pickle WrappedGeometry objects correctly (fixes #98) 2023-12-03 23:06:59 +01:00
Laura Klünder
e5e3a6b7e2 make redoc look prettier 2023-12-03 22:52:06 +01:00
Laura Klünder
ba4c2b7d0a rename newapi to api 2023-12-03 21:55:08 +01:00
Laura Klünder
caf23d053c goodbye django rest framework 2023-12-03 21:50:55 +01:00
Laura Klünder
0e65efcbbc lets group mapdata api v2 endpoints better and make sure descriptions are shown 2023-12-03 21:15:48 +01:00
Gwendolyn
73238f6943 LocationGeometry id can be custom location or position id 2023-12-03 21:11:10 +01:00
Laura Klünder
ef223ee09c make fetch_updates api v2 work 2023-12-03 20:42:26 +01:00
Laura Klünder
19380e0b80 remove etag where there should be none 2023-12-03 20:40:10 +01:00
Laura Klünder
c21c43a6da improve mesh api v2 documentation 2023-12-03 20:25:30 +01:00