Yohan Boniface
c36ea1e4b8
Fix error when trying to change map owner
...
This bug has been introduced with this change:
8b4842ff21
That was not the correct fix, and this one should be the proper one.
We don't want to edit the permissions reference until we do save, otherwise user
cannot save as it is already no more the owner.
So:
- change permissions.options
- save
- commit those changes to map.options.permissions
- use only those values to check for isOwner and isAnonymousMap
2023-09-22 17:34:44 +02:00
Yohan Boniface
157146dc04
Do not make map name and share status label clickable unless user can edit
2023-09-22 17:32:19 +02:00
Yohan Boniface
a04acb828d
Update Map.can_edit docstring
2023-09-22 17:32:19 +02:00
Yohan Boniface
73f9b883e1
Bump playwright
2023-09-22 17:32:19 +02:00
Yohan Boniface
f05bdb2ac3
Use datalayer.isDataReadOnly in feature.isReadOnly
2023-09-22 17:32:19 +02:00
Yohan Boniface
a9b9a7e955
Tests: reuse name var
2023-09-22 17:32:19 +02:00
Yohan Boniface
dfd04c33b0
Fix typo in tests
2023-09-22 17:32:19 +02:00
Yohan Boniface
e13f3ac235
Add DataLayer.isDataReadonly
...
In some places we need to know if a given datalayer can accept new
features, or not, whether because being readonly or being remote
2023-09-22 17:32:19 +02:00
Yohan Boniface
5ffd1a1b10
Expose DataLayer.edit_status separately to the front
...
They now differ from the Map.edit_status ones
2023-09-22 17:32:19 +02:00
Yohan Boniface
6ba8166f86
Reset DataLayer.edit_status migration
2023-09-22 17:32:19 +02:00
Yohan Boniface
4e54a93ee0
Add DataLayer.INHERIT edit status option
2023-09-22 17:32:19 +02:00
Yohan Boniface
3cbd6cca40
Add back Map.edit_status
...
Revert "Fix existing permissions related tests"
This reverts commit 36d7d87301c54a1a40bc6bbc164120768b258fae.
WIP
2023-09-22 17:32:19 +02:00
Yohan Boniface
3dc4efe7b1
Remove data migration for edit_status
2023-09-22 17:32:19 +02:00
Yohan Boniface
360b6415cb
Make OWNER mode the default edit_status for anonymous owned maps
2023-09-22 17:32:19 +02:00
Yohan Boniface
5f5196a52d
Make sure to select only editable layers for attachin to features
2023-09-22 17:32:19 +02:00
Yohan Boniface
0afb0bff82
Include layer name in translation
2023-09-22 17:32:19 +02:00
Yohan Boniface
36befefbc6
Fix permissions related frontend tests
2023-09-22 17:32:19 +02:00
Yohan Boniface
84e3aa7121
Add default value for DataLayer.options.editMode
2023-09-22 17:32:19 +02:00
Yohan Boniface
6b269125d4
Make sure only owner see the delete map button
2023-09-22 17:32:19 +02:00
David Larlet
ddada8fb2b
Remove the hasDirty concept
...
And only save the map in case of an `advanced` `editMode`.
2023-09-22 17:32:19 +02:00
Yohan Boniface
24e4aed8d3
Rename allowEdit in editMode
2023-09-22 17:32:17 +02:00
Yohan Boniface
de7c693c7b
Remove console.log
2023-09-22 17:30:08 +02:00
Yohan Boniface
2d1d9281d9
Add SQL migration to populate DataLayer.edit_status from Map.edit_status
2023-09-22 17:30:08 +02:00
Yohan Boniface
af44b3a0a6
Add playwright test for editor's permissions form
2023-09-22 17:30:07 +02:00
Yohan Boniface
a15aa3566a
Add playwright tests for anonymous map
2023-09-22 17:30:07 +02:00
Yohan Boniface
d902546da4
Add map update playwright tests
2023-09-22 17:30:07 +02:00
Yohan Boniface
168cc01c2e
Do not try to access self.object in MapCreate
2023-09-22 17:30:07 +02:00
Yohan Boniface
42eb0e6ded
Add more tests for datalayer permissions
2023-09-22 17:30:06 +02:00
Yohan Boniface
d6d55e619a
Fix existing permissions related tests
2023-09-22 17:26:57 +02:00
Yohan Boniface
e52b40807a
Expose correct edit statuses in anonymous mode
2023-09-22 17:26:57 +02:00
Yohan Boniface
e06da18f1e
Fix helptext not displayed in anonymous permissions panel
2023-09-22 17:26:57 +02:00
Yohan Boniface
1cefd4e851
Hide create/delete datalayers button + map settings to users without rights
2023-09-22 17:26:57 +02:00
Yohan Boniface
35d7a5c550
Remove unused icon in 16.svg
2023-09-22 17:26:57 +02:00
Yohan Boniface
9189262855
Do not try to save map itself unless it has been modified
2023-09-22 17:26:57 +02:00
Yohan Boniface
ee9acf3427
Fix map check in DataLayerUpdate view
2023-09-22 17:26:57 +02:00
Yohan Boniface
70a1a1d584
Move copyToClipboard to L.Util
2023-09-22 17:26:57 +02:00
Yohan Boniface
76239ef55c
Make DataLayer.isReadOnly explicit and true by default
2023-09-22 17:26:56 +02:00
Yohan Boniface
3d2e62c858
Do not use Map.edit_status anymore
...
But keep it for now, for data migration, and just in case
2023-09-22 17:26:55 +02:00
Yohan Boniface
de907dcb50
Do not expose readonly datalayers for features
2023-09-22 17:25:55 +02:00
Yohan Boniface
89ab029cab
WIP: move edit_status from Map to DataLayer
2023-09-22 17:25:55 +02:00
Yohan Boniface
73d19e849f
Refactor share_status check in datalayers views
2023-09-22 17:24:01 +02:00
Yohan Boniface
9bcc18b790
Merge pull request #1329 from umap-project/prune-gz
...
Prune old .gz when saving a datalayer
2023-09-22 17:14:31 +02:00
Yohan Boniface
b6b9943264
Prune old .gz when saving a datalayer
...
We'll not consume them.
fix #1317
2023-09-21 19:12:07 +02:00
Yohan Boniface
5b7fec5f9b
Merge pull request #1314 from openbrian/docker-compose-app-depends-on-db
...
Replace wait_for_database with depends_on and healthcheck.
2023-09-21 10:11:56 +02:00
Yohan Boniface
0988f2e2ee
Merge pull request #1320 from jvmatl/docker_quickstart_docs
...
A more newbie-friendly Docker HOWTO
2023-09-20 18:36:05 +02:00
John Martinez
7e2b20d085
Update docs/docker.md
...
Co-authored-by: Yohan Boniface <yohanboniface@free.fr>
2023-09-20 12:07:58 -04:00
Brian DeRocher
204db34282
Replace bash based waiting with python based django-probes.
2023-09-20 09:45:26 -04:00
Yohan Boniface
99831dc04d
Merge pull request #1326 from umap-project/dashboard-duplicate-map
...
Fix map displayed more than once in user dashboard when multiple editors
2023-09-20 15:17:38 +02:00
Yohan Boniface
f6730a9829
Update umap/views.py
...
Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com>
2023-09-20 15:17:29 +02:00
Yohan Boniface
43e5391c49
Fix map displayed more than once in user dashboard when multiple editors
...
fix #1325
2023-09-20 11:30:05 +02:00