Commit graph

1219 commits

Author SHA1 Message Date
Laura Klünder
a2d6012369 improve groundaltitude ux in editor 2023-12-18 11:14:27 +01:00
Gwendolyn
79752f574c check foreign keys for None before looking them up in changeset (fixes C3NAV-37C3-P) 2023-12-18 09:10:26 +01:00
Gwendolyn
d16a477c1b use unwrap_geom() instead of .wrapped_geom
to catch cases where the value is not wrapped
2023-12-17 14:54:43 +01:00
Gwendolyn
2ecef02a9e use DjangoJSONEncoder for ChangedObject.updated_fields (fixes C3NAV-37C3-K) 2023-12-17 14:49:37 +01:00
Gwendolyn
7d11c88b01 hopefully fixes C3NAV-37C3-J 2023-12-17 14:14:06 +01:00
Gwendolyn
f41fe3dcc0 fix the pattern in the api schema for object ids in changesets 2023-12-14 18:43:37 +01:00
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
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
97c9c7ecb7 make altitudes reusable using GroundAltitude model 2023-12-11 18:17:57 +01:00
Laura Klünder
4bb59c2265 fix the same thing again? sorry no idea what the last commit was 2023-12-10 21:59:20 +01:00
Gwendolyn
2c395462b0 encode whether editor request is done with ajax in etag (fixes #126) 2023-12-09 00:01:00 +01:00
Laura Klünder
d19e1db3d2 sort access restrictions by title 2023-12-08 20:55:36 +01:00
Gwendolyn
8f0d61895b only try to load .svg source files as svg overlay, don't recreate svg if it's already loaded 2023-12-07 12:06:50 +01:00
Laura Klünder
34af60782c merge RangeLocator into Locator and modernize code 2023-12-07 02:21:46 +01:00
Gwendolyn
1feb608106 sources as svg layers 2023-12-07 00:53:56 +01:00
Gwendolyn
b2a0ca71ba new api returns null for unset properties, so we need to compare to null instead of undefined 2023-12-05 18:10:33 +01:00
Gwendolyn
816fb04bea fix that stupid mobileclient bug in the editor 2023-12-05 17:20:01 +01:00
Laura Klünder
dac24348d8 use editor/sourceimage to display sources (needs fixing, superuser only) 2023-12-05 01:24:46 +01:00
Laura Klünder
78ee84842e APIKeyAuth in scopes 2023-12-04 23:13:58 +01:00
Laura Klünder
4491f68dc7 move api auth from authorization header to X-API-Key header 2023-12-04 23:07:45 +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
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
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
Gwendolyn
4104ef5863 switch to api v2 2023-12-03 21:11:10 +01:00
Gwendolyn
e31b318b47 don't try to highlight empty spaces in editor 2023-12-03 21:11:10 +01:00
Laura Klünder
0d9dc4f8db update editor api v2 documentation 2023-12-03 20:15:41 +01:00
Laura Klünder
450a19a466 rename as_api v2 in editor to as_api 2023-12-03 18:29:25 +01:00
Laura Klünder
0a8e848c67 UpdateCacheKey needs no pattern validation 2023-12-03 18:26:44 +01:00
Laura Klünder
75b6d401ee remove unnecessary imports 2023-12-03 18:12:59 +01:00
Laura Klünder
6e5eb659ca fix missing import 2023-12-03 18:12:11 +01:00
Laura Klünder
02e3fd60e6 make editor geometries schema a bit more generic 2023-12-03 18:11:53 +01:00
Laura Klünder
bd7d2e9ffa introducing AnyGeometrySchema 2023-12-03 18:03:13 +01:00
Laura Klünder
740664c659 does this fix unary_union 2023-12-03 17:57:15 +01:00
Laura Klünder
60e789c15e implement editor view_as_api v2 2023-12-03 17:54:26 +01:00
Laura Klünder
99a5c3055e use newapi_etag_with_update_cache_key 2023-12-03 17:45:04 +01:00
Laura Klünder
55f5dfb0b7 fix new editor api (missing request fields) 2023-12-03 17:18:29 +01:00
Laura Klünder
5c203a7a2b editor geometries now available in new API 2023-12-03 16:37:05 +01:00
Laura Klünder
0cacabb3cd add security requirement scopes for some operations 2023-12-02 01:14:09 +01:00
Laura Klünder
11f96f7e83 code style 2023-12-01 23:02:29 +01:00
Laura Klünder
bf2dd3b33b add editor API stubs 2023-12-01 22:59:57 +01:00
Gwendolyn
2f958babce more WrappedGeometry unwrapping fixes 2023-11-11 13:14:12 +01:00
Laura Klünder
2ad9f4a099 use pathlib in more places, thereby fixing some bugs 2023-11-11 12:06:46 +01:00
Laura Klünder
320ae7b4c9 add RangingBeacon to mapdata 2023-11-10 18:59:37 +01:00
Laura Klünder
b732d52f65 make linter happy 2023-10-06 02:46:43 +02:00
Laura Klünder
1b8d409839 more information while sending the node 2023-10-05 13:52:52 +02:00
Laura Klünder
233298cf34 add todos for more class based views 2023-10-02 17:42:01 +02:00