Yohan Boniface
02f36057a4
Merge OWNER and EDITORS into RESTRICTED level
...
At Map level, there is no more distinction between owner
and editors, they all share the same rights (but the right
to delete the map, but there is no level to control it).
So having this distinction at DataLayer level does not
make sense anymore, in my opinion.
This is not retrocompatible, as the change at Map level, but
it goes in the sense of permissions management more targetted
to real uMap usage while keeping the system simple.
2023-09-13 18:57:48 +02:00
Yohan Boniface
af5459f75f
Include layer name in translation
2023-09-13 17:16:28 +02:00
Yohan Boniface
4a198caaff
Fix permissions related frontend tests
2023-09-13 16:53:48 +02:00
Yohan Boniface
03763aaf20
Add default value for DataLayer.options.editMode
2023-09-13 16:53:19 +02:00
Yohan Boniface
6026b31824
Make sure only owner see the delete map button
2023-09-13 12:00:20 +02:00
David Larlet
d26cd05d9e
Remove the hasDirty concept
...
And only save the map in case of an `advanced` `editMode`.
2023-09-12 11:31:54 -04:00
Yohan Boniface
21f19a7ded
Rename allowEdit in editMode
2023-09-12 17:02:18 +02:00
Yohan Boniface
acf7aec1f0
Remove console.log
2023-09-12 16:15:30 +02:00
Yohan Boniface
e3cf017033
Add SQL migration to populate DataLayer.edit_status from Map.edit_status
2023-09-12 11:38:05 +02:00
Yohan Boniface
b84a457cda
Add playwright test for editor's permissions form
2023-09-12 11:19:03 +02:00
Yohan Boniface
db766c9d1d
Add playwright tests for anonymous map
2023-09-12 11:07:10 +02:00
Yohan Boniface
71c7217eba
Add map update playwright tests
2023-09-11 12:19:42 +02:00
Yohan Boniface
4d14cf6589
Do not try to access self.object in MapCreate
2023-09-10 09:34:13 +02:00
Yohan Boniface
c40ef38ea9
Add more tests for datalayer permissions
2023-09-09 11:53:25 +02:00
Yohan Boniface
36d7d87301
Fix existing permissions related tests
2023-09-09 11:53:25 +02:00
Yohan Boniface
f41037cafd
Expose correct edit statuses in anonymous mode
2023-09-09 11:53:25 +02:00
Yohan Boniface
db4255fd63
Fix helptext not displayed in anonymous permissions panel
2023-09-09 11:53:25 +02:00
Yohan Boniface
73e95dcf07
Hide create/delete datalayers button + map settings to users without rights
2023-09-09 11:53:25 +02:00
Yohan Boniface
05726236ce
Remove unused icon in 16.svg
2023-09-09 11:53:25 +02:00
Yohan Boniface
fba114a0ff
Do not try to save map itself unless it has been modified
2023-09-09 11:53:22 +02:00
Yohan Boniface
fc80dcd758
Fix map check in DataLayerUpdate view
2023-09-09 11:47:10 +02:00
Yohan Boniface
1af10f4c4c
Move copyToClipboard to L.Util
2023-09-09 11:47:10 +02:00
Yohan Boniface
f10924c1a0
Make DataLayer.isReadOnly explicit and true by default
2023-09-09 11:47:10 +02:00
Yohan Boniface
f752f2e13f
Do not use Map.edit_status anymore
...
But keep it for now, for data migration, and just in case
2023-09-09 11:47:10 +02:00
Yohan Boniface
784d77d677
Do not expose readonly datalayers for features
2023-09-09 11:47:10 +02:00
Yohan Boniface
c3b67962c9
WIP: move edit_status from Map to DataLayer
2023-09-09 11:47:10 +02:00
David Larlet
2152ca3d1a
Merge pull request #1069 from umap-project/playwright-integration-tests
...
Setup to create integration tests with Playwright
2023-09-08 11:24:35 -04:00
Yohan Boniface
aa1b04b3ad
Merge pull request #1298 from umap-project/fix-remotelayer-with-zoom-onload
...
Try to fix remote datalayer not sending dataloaded
2023-09-08 16:02:37 +02:00
Yohan Boniface
aca473692a
Merge pull request #1303 from umap-project/icons-quick-changes
...
Enhance icon selector form
2023-09-08 16:01:25 +02:00
Yohan Boniface
a9cd424f05
Merge pull request #1306 from umap-project/popup-img-width
...
Use css width for img custom width
2023-09-08 15:09:53 +02:00
Yohan Boniface
4857d7c29c
Use css width for img custom width
...
The width attribute is the intrinsic width of the image, and thus
it will not overwrite the default CSS
cf https://forum.openstreetmap.fr/t/bugs-divers-relevees-sur-une-umap-absent-sur-une-autre/17254/5
2023-09-07 07:16:55 +02:00
Yohan Boniface
4009e759dc
Prevent HTML blinking when loading icons list
2023-09-05 11:21:17 +02:00
Yohan Boniface
d72ae3fc34
Very minimal search input for icons list
...
fix #1302
2023-09-05 10:55:35 +02:00
Yohan Boniface
ce7575c5eb
But back icon preview
2023-09-05 10:29:44 +02:00
Yohan Boniface
c5084c4332
Add toggle link to show/hide iconUrl raw input
2023-09-05 10:14:24 +02:00
Yohan Boniface
91e71eccda
Change button look in icon form
2023-09-05 09:41:09 +02:00
Yohan Boniface
bfd36bc0e1
Do not reset icon list on icon choice
...
cf #1302
2023-09-05 09:38:07 +02:00
Yohan Boniface
c08e7c5527
Remove duplicate help text in icon advanced free field
2023-09-05 09:36:30 +02:00
Yohan Boniface
09d0891318
Change link color in dark mode
2023-09-05 09:36:05 +02:00
Yohan Boniface
2f7ff46a38
test: no need for mirations anymore
2023-09-04 15:07:43 +02:00
Yohan Boniface
3a5174c003
Fix tests with playwright
...
Basically:
- when using playwright, we use live_server
- live_server make django-pytest switch in "transactional db" mode
- when in this mode, it will reset all data of all tables in db
- we relied on data created during the migrations, so only available
for first test run
2023-09-04 15:04:00 +02:00
Yohan Boniface
1975b93ad8
Bump playwright and pytest-playwright
2023-09-04 15:01:15 +02:00
Yohan Boniface
c35c6ee78c
test: allow to run playwright tests directly with py.test cli
2023-09-04 15:00:51 +02:00
Yohan Boniface
4c03f012bd
Bump playwright
2023-09-04 11:04:12 +02:00
David Larlet
29547d0bd6
Add a test to verify marker creation at position
2023-09-04 11:03:31 +02:00
David Larlet
95bf685159
Setup to create integration tests with Playwright
2023-09-04 11:03:28 +02:00
Yohan Boniface
648fe65f14
WIP: try to fix remote datalayer not sending dataloaded
...
This occurs when the remote datalayer has a min or maxZoom defined,
and the map is loaded outside those zooms. In this case, when
calling fetchRemoteData, the fetch was never done, nor the final
call to fromGeoJSON, which would have sent the dataloaded event.
2023-09-01 20:31:34 +02:00
Yohan Boniface
d8b63974f9
changelog
2023-09-01 17:37:26 +02:00
Yohan Boniface
dcb884f0d7
1.7.2
2023-09-01 17:35:24 +02:00
Yohan Boniface
33e1bb87ca
i18n
2023-09-01 17:35:05 +02:00