Compare commits

...

6 commits

Author SHA1 Message Date
Yohan Boniface
0eedc47079 2.8.0
Some checks are pending
Test & Docs / docs (push) Waiting to run
Test & Docs / tests (postgresql, 3.10) (push) Waiting to run
Test & Docs / tests (postgresql, 3.12) (push) Waiting to run
Test & Docs / lint (push) Waiting to run
2024-12-18 12:16:58 +01:00
Yohan Boniface
9e418c2ab0 chore: escape backticks in Makefile printf
Otherwise they are executed by the shell as subcommands…
2024-12-18 12:05:13 +01:00
Yohan Boniface
631e3a7fd3
fix: do not unset map dirty status if it has not yet been saved once (#2382) 2024-12-18 11:45:43 +01:00
Yohan Boniface
7b59cf4afb
fix: do not try to restore a newly created layer on reset (#2381)
When asking for cancel, a layer that has not yet been saved to the
server should only be erased, no need to try to restore its previous
state.
2024-12-18 11:45:27 +01:00
Yohan Boniface
d00b4e1da9 fix: do not unset map dirty status if it has not yet been saved once 2024-12-18 11:36:54 +01:00
Yohan Boniface
1ead369487 fix: do not try to restore a newly created layer on reset
When asking for cancel, a layer that has not yet been saved to the
server should only be erased, no need to try to restore its previous
state.
2024-12-18 11:21:36 +01:00
5 changed files with 20 additions and 33 deletions

View file

@ -92,7 +92,7 @@ tx_pull:
changelog: changelog:
$(eval VERSION=$(shell hatch version)) $(eval VERSION=$(shell hatch version))
@# Bearer token is readonly @# Bearer token is readonly
@printf $(shell curl -sL -X POST -H "Authorization: Bearer ${GITHUB_TOKEN}" https://api.github.com/repos/umap-project/umap/releases/generate-notes -d '{"target_commitish":"master","previous_tag_name":"", "tag_name": "${VERSION}"}' | jq .body | sed 's/https:\/\/github.com\/umap-project\/umap\/pull\//#/g') @printf $(shell curl -sL -X POST -H "Authorization: Bearer ${GITHUB_TOKEN}" https://api.github.com/repos/umap-project/umap/releases/generate-notes -d '{"target_commitish":"master","previous_tag_name":"", "tag_name": "${VERSION}"}' | jq .body | sed 's/https:\/\/github.com\/umap-project\/umap\/pull\//#/g' | sed 's/`/\\`/g')
jsdir = umap/static/umap/js/ jsdir = umap/static/umap/js/
filepath = "${jsdir}*.js" filepath = "${jsdir}*.js"

View file

@ -1,33 +1,6 @@
# Changelog # Changelog
## 2.8.0b0 - 2024-12-17 ## 2.8.0 - 2024-12-18
### New features
* add a back button to importers dialog by @yohanboniface in #2364
* load all datalayers in parallel by @yohanboniface in #2370
* parse files in parallel at import when multiple by @yohanboniface in #2372
* allow to edit datalayer name in datalayers list by @yohanboniface in #2349
### Bug fixes
* fix save center and zoom by @yohanboniface in #2371
* fix tilelayer switch not saved anymore by @yohanboniface in #2367
* show private/draft maps in team maps for members by @yohanboniface in #2373
* bring marker to front on highlight by @yohanboniface in #2377
* do not autoescape static tag by @yohanboniface in #2376
## 2.8.0a2 - 2024-12-13
### Bug fixes
* make sure we set X-DataLayer-Version even when using X-Accel-Redirect by @yohanboniface in #2361
* refactor importer feedback by @yohanboniface in #2363
## 2.8.0a1 - 2024-12-11
### Internal changes
* make S3 dependencies optional in #2359
## 2.8.0a0 - 2024-12-11
### What's Changed ### What's Changed
@ -41,7 +14,7 @@ we introduce two new map statuses:
Also pursuing the code cleaning (more modules and spliting uMap core code from Leaflet rendering one). Also pursuing the code cleaning (more modules and spliting uMap core code from Leaflet rendering one).
Finally, this is now the javascript who create the datalayer uuid, and then create it to the back. This Finally, this is now the javascript who create the datalayer uuid, and then push it to the back. This
is for preparing for the synchronisation between clients. is for preparing for the synchronisation between clients.
### Breaking change ### Breaking change
@ -68,6 +41,11 @@ is for preparing for the synchronisation between clients.
* display wikipedia link in OSM popup template when possible by @yohanboniface in #2358 * display wikipedia link in OSM popup template when possible by @yohanboniface in #2358
* move labelKey field on the top datalayer form by @yohanboniface in #2350 * move labelKey field on the top datalayer form by @yohanboniface in #2350
* add elevation gain and loss in extended properties by @yohanboniface in #2343 * add elevation gain and loss in extended properties by @yohanboniface in #2343
* add a back button to importers dialog by @yohanboniface in #2364
* load all datalayers in parallel by @yohanboniface in #2370
* parse files in parallel at import when multiple by @yohanboniface in #2372
* allow to edit datalayer name in datalayers list by @yohanboniface in #2349
* experimental popup template for wikipedia by @yohanboniface in #2365
### Bug fixes ### Bug fixes
* honour custom labelKey in default popup template by @yohanboniface in #2271 * honour custom labelKey in default popup template by @yohanboniface in #2271
@ -78,6 +56,12 @@ is for preparing for the synchronisation between clients.
* better login page styles and incentive by @davidbgk in #2293 * better login page styles and incentive by @davidbgk in #2293
* compute length of all shapes for MultiLineString (not only first) by @yohanboniface in #2310 * compute length of all shapes for MultiLineString (not only first) by @yohanboniface in #2310
* avoid map-panning on mobile using two fingers navigation by @fttriquet in #2340 * avoid map-panning on mobile using two fingers navigation by @fttriquet in #2340
* do not try to restore a newly created layer on reset by @yohanboniface in #2381
* do not unset map dirty status if it has not yet been saved once by @yohanboniface in #2382
* refactor importer feedback by @yohanboniface in #2363
* make sure we set X-DataLayer-Version even when using X-Accel-Redirect by @yohanboniface in #2361
* bring marker to front on highlight by @yohanboniface in #2377
* show private/draft maps in team maps for members by @yohanboniface in #2373
### Internal changes ### Internal changes
* introduce SaveManager class by @yohanboniface in #2240 * introduce SaveManager class by @yohanboniface in #2240

View file

@ -1 +1 @@
VERSION = "2.8.0b0" VERSION = "2.8.0"

View file

@ -611,7 +611,10 @@ export class DataLayer extends ServerStored {
} }
reset() { reset() {
if (!this.createdOnServer) this.erase() if (!this.createdOnServer) {
this.erase()
return
}
this.resetOptions() this.resetOptions()
this.parentPane.appendChild(this.pane) this.parentPane.appendChild(this.pane)

View file

@ -1117,8 +1117,8 @@ export default class Umap extends ServerStored {
} }
this.ensurePanesOrder() this.ensurePanesOrder()
this._leafletMap.initTileLayers() this._leafletMap.initTileLayers()
this.isDirty = false
this.onDataLayersChanged() this.onDataLayersChanged()
this.isDirty = !this.id
} }
async save() { async save() {