Yohan Boniface
cdfcce297d
picto field: better handling of default input values
...
We don't want to have an URL in the "char" field, and vice versa
2023-11-16 10:31:40 +01:00
Yohan Boniface
4bfc3d6666
Picto field: make sure we open on the right tab
2023-11-14 18:45:40 +01:00
Yohan Boniface
7810cba660
Test: reset MEDIA_ROOT after each test
...
We need uploaded pictograms path to be deterministic.
2023-11-13 19:28:30 +01:00
Yohan Boniface
0562055b65
Picot fied: add test for changing picto from marker itself
2023-11-13 19:28:07 +01:00
Yohan Boniface
00a13acb83
Add test covering changing picto from the datalayer
2023-11-13 16:58:54 +01:00
Yohan Boniface
d63d81fec3
Refactor icon search
2023-11-09 08:31:24 +01:00
Yohan Boniface
e509687956
Add first test for pictogram selection
2023-11-09 00:02:44 +01:00
Yohan Boniface
e5c616b49c
Fix tests
2023-10-27 20:51:50 +02:00
Yohan Boniface
a0da0b31a7
Merge pull request #1383 from umap-project/default-view-datalayer
...
Split defaultDatalayer in defaultView/EditDatalayer
2023-10-27 16:03:14 +02:00
Yohan Boniface
882cc74bcf
Fix displayOnLoad not honoured at import
...
fix #1043
2023-10-27 12:25:40 +02:00
Yohan Boniface
29ab98ede3
Split defaultDatalayer in defaultView/EditDatalayer
...
In view mode, we don't want the fallback to create a new datalayer.
2023-10-27 11:54:35 +02:00
Yohan Boniface
78b6025ef1
Add minimal CSV export
...
cf https://forum.openstreetmap.fr/t/export-csv-depuis-une-umap/18290
cf #123
fix #608
2023-10-26 14:28:18 +02:00
Yohan Boniface
739626351c
Choropleth: replace chromajs by colorbrewer + simple-statistics
...
simple-statistics has a few advantages:
- faster
- more accurate kmeans algo
- Jenks-Fisher algo
Also, I suspect will use it again for next step, which is Bubble
mode layer.
2023-10-11 19:36:12 +02:00
Yohan Boniface
7be238a4ab
Add minimal Choropleth integration test
2023-10-10 21:22:17 +02:00
Yohan Boniface
3b304e5249
Tests: populate settings from _umap_options when data is passed
2023-10-10 21:19:20 +02:00
Yohan Boniface
547485e50f
Allow to hide a datalayer from the caption list
2023-10-06 22:26:31 +02:00
Yohan Boniface
de6c9f3b84
Make sure we don't use DataLayer.settings by reference
2023-10-06 22:25:56 +02:00
Yohan Boniface
677fd3d982
Merge pull request #1336 from umap-project/shared-edit-url
...
Redirect to canonical when URL contains the ?edit parameter
2023-09-27 07:17:29 +02:00
Yohan Boniface
013d2fd5ee
Always remove ?edit from URL, so users do not share it by mistake
2023-09-27 07:13:30 +02:00
Yohan Boniface
0ad6e425b5
Refactor data browser
...
- move a dedicated class (function was becoming big)
- user FormBuilder instead of custom form elements
2023-09-25 13:42:14 +02:00
Yohan Boniface
e0e7fc5844
Better way to set DataLayer.geojson content during tests
2023-09-25 13:40:01 +02:00
Yohan Boniface
dcbec3534c
Fix datalayer's data duplicated at first save
2023-09-22 20:48:08 +02:00
Yohan Boniface
27f3e08bc1
Fix anonymous maps displayed by mistake in user dashboard
2023-09-22 19:00:42 +02:00
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
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
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
5f5196a52d
Make sure to select only editable layers for attachin to features
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
Yohan Boniface
24e4aed8d3
Rename allowEdit in editMode
2023-09-22 17:32:17 +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
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
73d19e849f
Refactor share_status check in datalayers views
2023-09-22 17:24:01 +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
43e5391c49
Fix map displayed more than once in user dashboard when multiple editors
...
fix #1325
2023-09-20 11:30:05 +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
c35c6ee78c
test: allow to run playwright tests directly with py.test cli
2023-09-04 15:00:51 +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
bcdac413be
ajax proxy: quote URL before passing it to Nginx
2023-08-28 18:00:40 +02:00
Yohan Boniface
8c9ee91b42
Add test for ajax-proxy internal redirect
2023-08-28 16:49:32 +02:00
Yohan Boniface
8095c5721d
Merge pull request #1266 from umap-project/zoom-from-to-at-load
...
Store DataLayer's settings in DB
2023-08-21 17:18:48 +02:00
Yohan Boniface
2b471be171
Very lite "My Profile" page to allow changing username
2023-08-21 15:09:30 +02:00
Yohan Boniface
fa090b89df
Store DataLayer's settings in DB
...
This allows to known the full datalayer behaviour without needing
to load all the data, including the zoom from and to (new settings),
but also the color for example.
This will help also understanding datalayers usage and making
stats.
But no data migration is provided, it's retrocompatible (data
migration in OSM FR servers would be huge, so let's see if it's
really needed).
2023-08-20 09:48:01 +02:00