-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more
The main goal is to clarify the use of options/settings/properties… - `settings` should be reserved to Django - `options` should be reserved to pure Leaflet context - `properties` used in the geojson context, for user data Main changes: - `DataLayer.settings` is renamed to `DataLayer.metadata` - `DataLayer.geojson` is renamed to `Datalayer.data` - `DataLayer.metadata` are not saved anymore in the geojson data file - `Map.settings` is renamed to `Map.metadata` - `Map.metadata` is now a flat key/value object, not a geojson Feature anymore - `Map.zoom` is now populated and reused Note: U.Map is still inheriting from Leaflet Map, so it mixes `options` and `metadata`. This changes is very intrusive, it changes - the DB schema - the way we store data in the FS (now without metadata) - the way we backup map data fix #1636 prepares #1335 prepares #1635 prepares #175
- Loading branch information
1 parent
ab8bce9
commit 787f22e
Showing
59 changed files
with
695 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 5.0.8 on 2024-08-21 10:28 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("umap", "0021_remove_map_description"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="datalayer", | ||
old_name="settings", | ||
new_name="metadata", | ||
), | ||
migrations.RenameField( | ||
model_name="datalayer", | ||
old_name="geojson", | ||
new_name="data", | ||
), | ||
migrations.RenameField( | ||
model_name="map", | ||
old_name="settings", | ||
new_name="metadata", | ||
), | ||
migrations.RunSQL("UPDATE umap_map SET metadata=metadata->'properties'"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.