Commit graph

1278 commits

Author SHA1 Message Date
Laura Klünder
4ade6cfc1f add external_url and hub_import_type 2023-12-22 01:20:24 +01:00
Gwendolyn
9d8fbc808f js api refactoring 2023-12-21 16:46:24 +01:00
Gwendolyn
b776a7be29 fix graph edges in geometry endpoint (hopefully)
the graph edge and geometry schemas are similar and pydantic matches graph edges as geometries if graph edges aren't first in the union types, which makes the from and to nodes disappear
2023-12-21 15:14:38 +01:00
Gwendolyn
1d4703f86f access restrictions can be set to public to make them available to everyone (even not logged in users)
public access restrictions do not count to the unlocked areas count
2023-12-20 23:56:32 +01:00
Gwendolyn
8a3d3bc18f migration for ChangedObject.updated_fields to use DjangoJSONEncoder
(does not change db)
2023-12-20 23:34:04 +01:00
Laura Klünder
1faeda5e8a fix main_point form into hidden field 2023-12-20 00:13:36 +01:00
Laura Klünder
3477354688 access permissions can now also be given by group 2023-12-19 19:48:31 +01:00
Laura Klünder
c4a8e1d874 add "main point" to area 2023-12-19 19:48:24 +01:00
Laura Klünder
4e3ce94852 re-enable level graph 2023-12-19 19:48:10 +01:00
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