Yohan Boniface
1d5c1a067a
Expose version in /stats/ endpoint
2023-06-20 15:14:28 +02:00
Yohan Boniface
b324e59cd4
Fix stars link in header
2023-06-17 15:59:16 +02:00
Yohan Boniface
02a14a32f4
add tests for user display and slug customization
2023-06-17 06:35:21 +02:00
Yohan Boniface
51a904dc07
Only return anonymous_url in anonymous context
...
Otherwise the frontend will treat map as anonymous even with
and owner and display a wrong message creation.
Also, this edit URL does not make sense (and will not work)
when there is an owner.
2023-06-04 08:05:48 +02:00
Yohan Boniface
6e0c4723a4
Merge pull request #1102 from umap-project/mail-link
...
Add a button to send edit link by email in anonymous mode
2023-06-02 23:32:34 +02:00
Yohan Boniface
1b791347d8
Also catch InvalidURL in ajax-proxy
...
fix #1119
2023-06-02 22:45:13 +02:00
David Larlet
4ba1946868
Fix test about subject
...
Introduced in 5460876ff4
2023-06-02 11:54:44 -04:00
David Larlet
bf4a84de99
Apply black on test map views file
2023-06-02 11:54:09 -04:00
Yohan Boniface
8f52d34bb2
WIP: final bit to make sending edit link working
2023-05-31 17:05:57 +02:00
Yohan Boniface
eb32dcc9b6
Make that Map.get_anonymous_edit_url returns full URL
2023-05-31 16:30:07 +02:00
David Larlet
3f28c04241
Banner + no create buttons when in read only mode
...
Fix #1095
2023-05-30 16:17:12 -04:00
David Larlet
6f72df82b7
Improve stats view testing with another user
2023-05-23 12:09:10 -04:00
David Larlet
9d752ea306
Add a very basic /stats/
JSON view
...
Will be useful to feed munin for instance.
2023-05-22 17:47:04 -04:00
Yohan Boniface
40f40038f8
Fix url order for retrieving user stars
...
Since that initial PR, the username regex has been more gready.
2023-05-15 12:22:28 +02:00
Yohan Boniface
37b4d05da5
(WIP) Allow to star map and retrieve starred maps
2023-05-15 12:22:26 +02:00
Yohan Boniface
1038836a72
Use Django full text instead of custom SQL
2023-05-11 11:33:08 +02:00
Luc Didry
123af0a7c9
🐛 — Allow to use SHA1-signed anonymous edit URL
...
The default django.core.signing Signer uses SHA256 algorithm since Django 3.
Umap used Django 2 in the paste, so people had SHA1 signed anonymous edit URLs,
which became unusable when umap switch to Django 3.
This commit makes them usable again (the new SHA256-signed anonymous edit URLs
still works, obviously).
2023-03-29 12:49:32 +02:00
Yohan Boniface
90607c7581
Black on test_datalayer_views
2023-02-28 17:14:57 +01:00
Yohan Boniface
1c39245af8
iwyu
2023-02-27 13:50:37 +01:00
Yohan Boniface
e343ddb636
Do not deal with gzip while serving without x-accel-redirect
...
Let's keep this path simple, as it should not be used in normal
production context.
2023-02-27 13:49:21 +01:00
Yohan Boniface
6694306660
Use If-Unmodified-Since istead of If-Match
...
If-Match relies on ETag, which depends on the Content-Encoding,
which is more fragile given we updated the etag on save, while normal
files are served by nginx. So this may occurs false mismatch.
2023-02-27 13:45:15 +01:00
Yohan Boniface
a8dee3fa07
Add Vary: Accept-Encoding header
2023-02-23 11:17:19 +01:00
Yohan Boniface
ebf0dee216
Travis stuff
2021-05-30 22:53:16 +02:00
Yohan Boniface
1200b82838
First attempt to upgrade to Django 3.X
...
Bloqued by https://github.com/peopledoc/django-agnocomplete/issues/119
2021-05-17 10:51:24 +02:00
Yohan Boniface
462e7a8a0f
Try to upgrade Postgis on travis
2019-04-07 14:05:56 +02:00
Yohan Boniface
17db76d003
Specify Postgis version in settings for Travis
2019-04-07 13:59:00 +02:00
Yohan Boniface
5b8a8904cc
Add Map.BLOCKED share status
2019-04-07 11:12:38 +02:00
Yohan Boniface
7e38a08fb8
Switch from DictField to JSONField
2019-04-07 10:40:30 +02:00
Yohan Boniface
f3ecc8ce28
Update permissions metadata at each map save
...
This fix the issue where the permissions panel was not available
on first save (without reloading the page).
2018-09-23 09:57:00 +02:00
Yohan Boniface
c5ca7e5d73
Change Map.center.widget SRID to 4326 as it should be
...
By default, a PointField uses a OpenLayersWidget, which forces the
SRID to 3857 when casting geojson (no idea why, given geojson SRID
is 4326).
2018-09-08 22:42:11 +02:00
Yohan Boniface
da4ee13deb
Display a message on the site when trying to do a POST in readonly mode
2018-09-08 16:49:25 +02:00
Yohan Boniface
7941e8fa60
Add a readonly mode
...
Activable with UMAP_READONLY=True
2018-09-07 22:12:39 +02:00
Yohan Boniface
81f6b429bc
allow to cache proxied remote data requests
...
cf #513
cf #510
cf #160
2018-08-04 20:50:03 +02:00
Yohan Boniface
408bbd81aa
Fix map/id/geojson content_type
2018-07-14 23:55:21 +02:00
Yohan Boniface
72b943d779
Remove Map.tilelayer foreignkey
...
Map tilelayer is saved in the settings since a long time now.
2018-07-14 13:59:40 +02:00
Yohan Boniface
1a815b313d
Add an explicit button to attach an owner to an anonymous map
...
fix #568
2018-07-07 16:44:40 +02:00
Yohan Boniface
705d0cbb73
Add back TileLayer and Licence creation migration
...
Lost during merge with django-leaflet-storage
2018-07-07 14:42:25 +02:00
Yohan Boniface
ac8b68b0e5
Remove OldMapUrl
2018-06-15 23:31:45 +02:00
Yohan Boniface
8655061817
Rename in JS/CSS: storage_ => umap_ storage- => umap-
2018-06-02 15:47:57 +02:00
Yohan Boniface
62a825e6ed
Replace LEAFLET_STORAGE_XXX settings by UMAP_XXXX
...
We keep a retrocompatibility for now.
2018-05-19 17:16:34 +02:00
Yohan Boniface
8fd541955e
Disable compressor during unittests for now
2018-05-19 16:28:56 +02:00
Yohan Boniface
53c738abaf
Merge leaflet_storage tests
2018-05-19 11:54:08 +02:00
Yohan Boniface
e55d03bd5e
Django 2.0
...
And update other deps
2018-05-19 10:05:18 +02:00
Yohan Boniface
0104337406
Add travis.yml
2017-05-12 10:42:02 +02:00
Yohan Boniface
6b207e2811
Add minimal tests for password login
2016-09-09 21:30:05 +02:00
Yohan Boniface
805bca7a97
Switch to pytest
2016-08-20 12:33:05 +02:00
Yohan Boniface
7b5ea8df67
First shot in Django 1.8 / python 3 support
...
This also replaced pg_index with a simple builting seach
based on tsvector, as pg_index is not compliant with Django 1.8,
and as some old dependencies that would need to be upgrade too.
2015-08-02 18:08:31 +02:00
Yohan Boniface
469187e4f1
Catch unkown domain in validate_url
2014-07-18 23:26:16 +02:00
Yohan Boniface
3ca24f5838
Quick hack to prevent django from adding vary:cookie on proxy view
2014-04-20 12:24:13 +02:00
Yohan Boniface
1fd245830e
iwyu
2014-04-19 20:26:28 +02:00