Commit graph

3441 commits

Author SHA1 Message Date
Yohan Boniface
16b759973b 2.7.0b1 2024-10-04 19:31:57 +02:00
Yohan Boniface
8788f97791 2.7.0b0 2024-10-04 19:18:07 +02:00
Yohan Boniface
a8d04a6abb i18n 2024-10-04 18:38:00 +02:00
Yohan Boniface
f9cf923684
feat: add a profile drop-down menu (#2194)
fix #2115
2024-10-04 18:26:49 +02:00
Yohan Boniface
8d59220d05
fix: make sure anonymous is owner at create (#2189)
The tricky thing is that the Map.is_owner() method check for cookies on
the request, but at create this cookie is not set yet on the request, so
we have to deal with an exception here.

fix #2176
2024-10-04 17:55:29 +02:00
Yohan Boniface
21be2e4fd0 fix: hide "my profile" from dropdown menu if ALLOW_EDIT_PROFILE=False 2024-10-04 17:54:13 +02:00
Yohan Boniface
6876bb1ba5 fix: listen just once for escape key in contextmenu 2024-10-04 17:44:50 +02:00
Yohan Boniface
1029c2655e wip: add a profile drop-down menu
fix #2113
2024-10-04 17:44:50 +02:00
Yohan Boniface
de93446af2
clean: remove zoom in and out from contextmenu (#2195)
Let's make it smaller (unless proven otherwise!).
2024-10-04 17:43:23 +02:00
Yohan Boniface
9828c491e3
chore: replace native confirm by our styled ones (#2193) 2024-10-04 17:42:56 +02:00
Yohan Boniface
03ae31c18b chore: remove map.dirty_datalayers
Let's try to make it simpler.
map.datalayers stores all datalayers
map.datalayers_index the non deleted ones sorted
2024-10-04 17:35:35 +02:00
Yohan Boniface
a35b37f423 chore: use map getter instead of getMap in permissions 2024-10-04 17:35:35 +02:00
Yohan Boniface
0d7c6e451d chore: new strategy to update map name when editing it
Also propagate share_status (this may be moved to permissions)
2024-10-04 17:35:33 +02:00
Yohan Boniface
0fdb70ce66 chore: review save strategy
All is now orchestrated from a single method, instead of chaining
calls.
2024-10-04 17:34:59 +02:00
Yohan Boniface
73c83cfa86 chore: always return user infos on map save 2024-10-04 17:34:59 +02:00
Yohan Boniface
13a7a2257d fix: do not fail in autocomplete if on_unselect is undefined 2024-10-04 17:34:59 +02:00
Yohan Boniface
ff5195a787 fix: make sure anonymous is owner at create
The tricky thing is that the Map.is_owner() method check for cookies
on the request, but at create this cookie is not set yet on the
request, so we have to deal with an exception here.

fix #2176
2024-10-04 17:34:59 +02:00
Yohan Boniface
ebd3896e91 chore: replace native confirm by our styled ones 2024-10-04 17:34:20 +02:00
Yohan Boniface
9b29b705da clean: remove zoom in and out from contextmenu
Let's make it smaller (unless proven otherwise!).
2024-10-04 17:32:39 +02:00
Yohan Boniface
4940f6c329 test: fix playwright selector 2024-10-04 17:31:05 +02:00
Yohan Boniface
a12d0e6b50 chore: remove package-lock.json from git
As we vendor our dependencies ourselves, let's make it simple.
2024-10-04 17:22:04 +02:00
Yohan Boniface
c8ffe4273f
fix: allow to draw new proprotional circles and to drag them (#2172)
The main issue was because we overrided the `getLatLngs` function in our
PointMixin class, so I changed the way feature get the latlngs from the
UI classes. Plus getting CircleMarker to inherit more from Marker,
through PointMixin.

fix #2171
2024-10-04 16:43:49 +02:00
Yohan Boniface
4b4546991a
chore: display user maps in admin and add in csv export (#2169)
maps are owned maps + maps as editor

cf https://github.com/umap-project/umap/pull/2131#discussion_r1772775039
2024-10-04 16:42:53 +02:00
Yohan Boniface
5d5be52337
feat: delete datalayer's files on delete (#2158)
Until now, uMap was not deleting files on delete, which can increase
file storage a lot after some time.

The files are not deleted, but moved to a "purgatory" folder, from where
they can be deleted after some time.
2024-10-04 16:41:11 +02:00
Yohan Boniface
91800d104d
fix: polygon with interactive=false was still interactive (#2151)
This bug has been introduced when spliting features, as we now only set
the Leaflet Polygon options with setStyle, will the `interactive` option
is only used in the init by Leaflet.

See https://github.com/Leaflet/Leaflet/pull/9475
2024-10-04 16:36:21 +02:00
Yohan Boniface
d95f06abab
chore: use our own contextmenu (#2109)
Let's start from here to clean the contextmenu items.

Current status:

### Some entries are generic, and always present:

In preview mode:


![image](https://github.com/user-attachments/assets/ea5cf2d3-f8f7-4d6a-8bf5-4c0334334bbc)

In edit mode:


![image](https://github.com/user-attachments/assets/2d2fa5c1-a275-4037-8780-d18a5e31949b)

### Some entries are specific to a clicked feature

In preview mode (Marker):


![image](https://github.com/user-attachments/assets/2d03f640-fb62-4be8-893d-d1ffc09d66f1)

In edit mode (Marker):


![image](https://github.com/user-attachments/assets/3f5ede89-fe3e-41a0-ac9a-575ef04e7a41)

In preview mode (Polygon):


![image](https://github.com/user-attachments/assets/fa88b13a-ac53-4bdd-896c-ada025640c35)

In edit mode (Polygon):


![image](https://github.com/user-attachments/assets/c2b46f2a-4f6d-4660-9654-d4f775386898)

In preview mode (Line):


![image](https://github.com/user-attachments/assets/74cd5c21-ad17-4592-b3da-f82f12c60baf)

In edit mode (Line):


![image](https://github.com/user-attachments/assets/4c9f89c6-a30e-4f40-84fe-3fff306358aa)


@Aurelie-Jallut Do you want to make suggestion on what to show or not in
this menu, depending on the context (feature or not, preview or edit
mode) ?
2024-10-04 16:34:06 +02:00
Yohan Boniface
a2d0d14857
feat: allow to search by code INSEE in communes importer (#2188)
Otherwise when searching for a very commun name (like "Saint-Paul"), one
may not find the right one among the x returned results.

![Screenshot from 2024-10-03
16-59-39](https://github.com/user-attachments/assets/662c0d13-2c85-4159-b37e-19247bf838b8)


![Screenshot from 2024-10-03
16-53-49](https://github.com/user-attachments/assets/a19c405c-ea2b-4359-9db1-95101fb6012d)

![Screenshot from 2024-10-03
17-00-55](https://github.com/user-attachments/assets/65705a87-ee24-4e50-acbb-069565a70c75)
2024-10-04 15:47:15 +02:00
David Larlet
5185cc56a9
docs: Display Grist data in uMap
Based on work from @C-Sophie and @ybon

Also, explicit admonition icons for French instance and OSM instance.

Closes #2173
2024-10-03 16:47:11 -04:00
Yohan Boniface
f1619579a4 feat: allow to search by code INSEE in communes importer 2024-10-03 18:03:43 +02:00
de1ddda0e8 chore(deploy): Spawn the websocket server in the docker image.
Checks if the `WEBSOCKET_ENABLED` is set to `True` and runs the
websocket server accordingly.
2024-10-03 12:26:33 +02:00
Yohan Boniface
d0d40cff99
chore: bump pymdown-extensions from 10.11.1 to 10.11.2 (#2185)
Bumps
[pymdown-extensions](https://github.com/facelessuser/pymdown-extensions)
from 10.11.1 to 10.11.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/facelessuser/pymdown-extensions/releases">pymdown-extensions's
releases</a>.</em></p>
<blockquote>
<h2>10.11.2</h2>
<ul>
<li><strong>FIX</strong>: SuperFences: Fix a regression where certain
patterns could cause a hang.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="a9940657c9"><code>a994065</code></a>
Fix SuperFence pattern should require options to be separated by a space
(<a
href="https://redirect.github.com/facelessuser/pymdown-extensions/issues/2480">#2480</a>)</li>
<li><a
href="96e19e6865"><code>96e19e6</code></a>
Remove more duplicate words</li>
<li><a
href="3f6fbbb633"><code>3f6fbbb</code></a>
Typos: remove various duplicated words</li>
<li>See full diff in <a
href="https://github.com/facelessuser/pymdown-extensions/compare/10.11.1...10.11.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pymdown-extensions&package-manager=pip&previous-version=10.11.1&new-version=10.11.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2024-10-02 10:53:58 +02:00
dependabot[bot]
de79ff6ff6
chore: bump pymdown-extensions from 10.11.1 to 10.11.2
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.11.1 to 10.11.2.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/10.11.1...10.11.2)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 08:46:42 +00:00
Yohan Boniface
0c3bb9fd54
chore: bump mkdocs-material from 9.5.36 to 9.5.39 (#2182)
[//]: # (dependabot-start)
⚠️  **Dependabot is rebasing this PR** ⚠️ 

Rebasing might not happen immediately, so don't worry if this takes some
time.

Note: if you make any changes to this PR yourself, they will take
precedence over the rebase.

---

[//]: # (dependabot-end)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material)
from 9.5.36 to 9.5.39.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/squidfunk/mkdocs-material/releases">mkdocs-material's
releases</a>.</em></p>
<blockquote>
<h2>mkdocs-material-9.5.39</h2>
<ul>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7226">#7226</a>:
not staying on page when using mike's canonical versioning</li>
</ul>
<p>Thanks go to <a
href="https://github.com/ilyagr"><code>@​ilyagr</code></a> for their
contributions</p>
<h2>mkdocs-material-9.5.38</h2>
<ul>
<li>Added Albanian translations</li>
</ul>
<p>Thanks go to <a
href="https://github.com/gerardkraja"><code>@​gerardkraja</code></a> for
their contributions</p>
<h2>mkdocs-material-9.5.37</h2>
<ul>
<li>Added 4th and 5th level ordered list styles</li>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7548">#7548</a>:
Tags have no spacing in search</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG">mkdocs-material's
changelog</a>.</em></p>
<blockquote>
<p>mkdocs-material-9.5.39+insiders-4.53.14 (2024-09-29)</p>
<ul>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7567">#7567</a>:
Empty headlines when using typeset plugin with anchorlinks</li>
</ul>
<p>mkdocs-material-9.5.39 (2024-09-29)</p>
<ul>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7226">#7226</a>:
not staying on page when using mike's canonical versioning</li>
</ul>
<p>mkdocs-material-9.5.38 (2024-09-26)</p>
<ul>
<li>Added Albanian translations</li>
</ul>
<p>mkdocs-material-9.5.37 (2024-09-25)</p>
<ul>
<li>Added 4th and 5th level ordered list styles</li>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7548">#7548</a>:
Tags have no spacing in search</li>
</ul>
<p>mkdocs-material-9.5.36 (2024-09-21)</p>
<ul>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7544">#7544</a>:
Social cards incorrectly rendering HTML entities</li>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7542">#7542</a>:
Improved support for setting custom list styles</li>
</ul>
<p>mkdocs-material-9.5.35 (2024-09-18)</p>
<ul>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7498">#7498</a>:
Search not showing for Vietnamese language</li>
</ul>
<p>mkdocs-material-9.5.34+insiders-4.53.13 (2024-09-14)</p>
<ul>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7520">#7520</a>:
Social plugin errors for generated files (MkDocs 1.6+)</li>
</ul>
<p>mkdocs-material-9.5.34 (2024-08-31)</p>
<ul>
<li>Updated Mermaid.js to version 11 (latest)</li>
</ul>
<p>mkdocs-material-9.5.33 (2024-08-23)</p>
<ul>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7453">#7453</a>:
Incorrect position of tooltip when sorting table</li>
</ul>
<p>mkdocs-material-9.5.32 (2024-08-19)</p>
<ul>
<li>Fixed RXSS vulnerability via deep link in search results</li>
<li>Added support for fetching latest release from GitLab</li>
</ul>
<p>mkdocs-material-9.5.31+insiders-4.53.12 (2024-08-02)</p>
<ul>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7410">#7410</a>:
Instant previews jump on content tabs with anchor links</li>
<li>Fixed <a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7408">#7408</a>:
Instant previews jump on content tabs</li>
</ul>
<p>mkdocs-material-9.5.31 (2024-08-02)</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="70db88f414"><code>70db88f</code></a>
Prepare 9.5.39 release</li>
<li><a
href="187705e3b8"><code>187705e</code></a>
Updated dependencies</li>
<li><a
href="56fdb282d0"><code>56fdb28</code></a>
Adjusted code copy button documentation</li>
<li><a
href="aeb9492c08"><code>aeb9492</code></a>
Fixed stay no page functionality when using mike's canonical versioning
(<a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7559">#7559</a>)</li>
<li><a
href="50a15becc8"><code>50a15be</code></a>
Updated link to step-by-step guide on YouTube</li>
<li><a
href="117250a462"><code>117250a</code></a>
Prepare 9.5.38 release</li>
<li><a
href="74ca2341ac"><code>74ca234</code></a>
Added Albanian translations</li>
<li><a
href="84ddbba7ef"><code>84ddbba</code></a>
Prepare 9.5.37 release</li>
<li><a
href="fd984136ba"><code>fd98413</code></a>
Documentation (<a
href="https://redirect.github.com/squidfunk/mkdocs-material/issues/7557">#7557</a>)</li>
<li><a
href="573d23d147"><code>573d23d</code></a>
Updated dependencies</li>
<li>Additional commits viewable in <a
href="https://github.com/squidfunk/mkdocs-material/compare/9.5.36...9.5.39">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mkdocs-material&package-manager=pip&previous-version=9.5.36&new-version=9.5.39)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2024-10-02 10:45:34 +02:00
dependabot[bot]
121c9778e6
chore: bump mkdocs-material from 9.5.36 to 9.5.39
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.5.36 to 9.5.39.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.36...9.5.39)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 08:45:25 +00:00
Yohan Boniface
e611b038bd
chore: bump ruff from 0.6.7 to 0.6.8 (#2181)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.7 to 0.6.8.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ruff/releases">ruff's
releases</a>.</em></p>
<blockquote>
<h2>0.6.8</h2>
<h2>Release Notes</h2>
<h3>Preview features</h3>
<ul>
<li>Remove unnecessary parentheses around <code>match case</code>
clauses (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13510">#13510</a>)</li>
<li>Parenthesize overlong <code>if</code> guards in
<code>match..case</code> clauses (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13513">#13513</a>)</li>
<li>Detect basic wildcard imports in <code>ruff analyze graph</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13486">#13486</a>)</li>
<li>[<code>pylint</code>] Implement
<code>boolean-chained-comparison</code> (<code>R1716</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13435">#13435</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>lake8-simplify</code>] Detect <code>SIM910</code> when using
variadic keyword arguments, i.e., <code>**kwargs</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13503">#13503</a>)</li>
<li>[<code>pyupgrade</code>] Avoid false negatives with non-reference
shadowed bindings of loop variables (<code>UP028</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13504">#13504</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Detect tuples bound to variadic positional arguments i.e.
<code>*args</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13512">#13512</a>)</li>
<li>Exit gracefully on broken pipe errors (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13485">#13485</a>)</li>
<li>Avoid panic when analyze graph hits broken pipe (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13484">#13484</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Reuse <code>BTreeSets</code> in module resolver (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13440">#13440</a>)</li>
<li>Skip traversal for non-compound statements (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13441">#13441</a>)</li>
</ul>
<h2>Contributors</h2>
<ul>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
<li><a
href="https://github.com/TomerBin"><code>@​TomerBin</code></a></li>
<li><a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a></li>
<li><a
href="https://github.com/diceroll123"><code>@​diceroll123</code></a></li>
<li><a href="https://github.com/dylwil3"><code>@​dylwil3</code></a></li>
<li><a href="https://github.com/haarisr"><code>@​haarisr</code></a></li>
<li><a
href="https://github.com/renovate"><code>@​renovate</code></a></li>
<li><a
href="https://github.com/sbrugman"><code>@​sbrugman</code></a></li>
<li><a
href="https://github.com/vincevannoort"><code>@​vincevannoort</code></a></li>
<li><a href="https://github.com/zanieb"><code>@​zanieb</code></a></li>
</ul>
<h2>Install ruff 0.6.8</h2>
<h3>Install prebuilt binaries via shell script</h3>
<pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf
https://github.com/astral-sh/ruff/releases/download/0.6.8/ruff-installer.sh
| sh
</code></pre>
<h3>Install prebuilt binaries via powershell script</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's
changelog</a>.</em></p>
<blockquote>
<h2>0.6.8</h2>
<h3>Preview features</h3>
<ul>
<li>Remove unnecessary parentheses around <code>match case</code>
clauses (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13510">#13510</a>)</li>
<li>Parenthesize overlong <code>if</code> guards in
<code>match..case</code> clauses (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13513">#13513</a>)</li>
<li>Detect basic wildcard imports in <code>ruff analyze graph</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13486">#13486</a>)</li>
<li>[<code>pylint</code>] Implement
<code>boolean-chained-comparison</code> (<code>R1716</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13435">#13435</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>lake8-simplify</code>] Detect <code>SIM910</code> when using
variadic keyword arguments, i.e., <code>**kwargs</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13503">#13503</a>)</li>
<li>[<code>pyupgrade</code>] Avoid false negatives with non-reference
shadowed bindings of loop variables (<code>UP028</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13504">#13504</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Detect tuples bound to variadic positional arguments i.e.
<code>*args</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13512">#13512</a>)</li>
<li>Exit gracefully on broken pipe errors (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13485">#13485</a>)</li>
<li>Avoid panic when analyze graph hits broken pipe (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13484">#13484</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Reuse <code>BTreeSets</code> in module resolver (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13440">#13440</a>)</li>
<li>Skip traversal for non-compound statements (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13441">#13441</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="ae39ce56c0"><code>ae39ce5</code></a>
Bump version to 0.6.8 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/13522">#13522</a>)</li>
<li><a
href="ff2d214e11"><code>ff2d214</code></a>
Don't skip over imports and other nodes containing nested statements in
impor...</li>
<li><a
href="9442cd8fae"><code>9442cd8</code></a>
Parenthesize <code>match..case</code> <code>if</code> guards (<a
href="https://redirect.github.com/astral-sh/ruff/issues/13513">#13513</a>)</li>
<li><a
href="8012707348"><code>8012707</code></a>
Align formatting of patterns in match-cases with expression formatting
in cla...</li>
<li><a
href="d7ffe46054"><code>d7ffe46</code></a>
Disable the <code>typeset</code> plugin (<a
href="https://redirect.github.com/astral-sh/ruff/issues/13517">#13517</a>)</li>
<li><a
href="7c83af419c"><code>7c83af4</code></a>
red-knot: Implement the <code>not</code> operator for all
<code>Type</code> variants (<a
href="https://redirect.github.com/astral-sh/ruff/issues/13432">#13432</a>)</li>
<li><a
href="bbb044ebda"><code>bbb044e</code></a>
Detect tuples bound to variadic positional arguments i.e.
<code>*args</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/13512">#13512</a>)</li>
<li><a
href="481065238b"><code>4810652</code></a>
Avoid UP028 false negatives with non-reference shadowed bindings of loop
vari...</li>
<li><a
href="11f06e0d55"><code>11f06e0</code></a>
Detect SIM910 when using variadic keyword arguments, i.e.,
<code>**kwargs</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/13503">#13503</a>)</li>
<li><a
href="f27a8b8c7a"><code>f27a8b8</code></a>
[internal] <code>ComparableExpr</code> (f)strings and bytes made
invariant under concate...</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.6.7...0.6.8">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruff&package-manager=pip&previous-version=0.6.7&new-version=0.6.8)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2024-10-02 10:44:41 +02:00
Yohan Boniface
15630efb58
chore: bump pymdown-extensions from 10.10.1 to 10.11.1 (#2179)
Bumps
[pymdown-extensions](https://github.com/facelessuser/pymdown-extensions)
from 10.10.1 to 10.11.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/facelessuser/pymdown-extensions/releases">pymdown-extensions's
releases</a>.</em></p>
<blockquote>
<h2>10.11.1</h2>
<ul>
<li><strong>Fix</strong>: SuperFences: Fix regression where an omitted
language in conjunction with options in the fenced header
can cause a fence to not be parsed.</li>
</ul>
<h2>10.11</h2>
<ul>
<li><strong>NEW</strong>: SuperFences: Allow fenced code to be parsed in
the form <code>```lang {.class #id}</code>.</li>
</ul>
<h2>10.10.2</h2>
<ul>
<li><strong>FIX</strong>: BetterEm: Add better support for <code>*em,
**em,strong***</code> and <code>_em, __em,strong___</code> cases.</li>
<li><strong>FIX</strong>: Caret: Add better support for <code>*sup,
**sup,ins***</code>.</li>
<li><strong>FIX</strong>: Tilde: Add better support for <code>*sub,
**sub,del***</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="d43141d7b0"><code>d43141d</code></a>
Fix omitted language case (<a
href="https://redirect.github.com/facelessuser/pymdown-extensions/issues/2472">#2472</a>)</li>
<li><a
href="79dabb16c0"><code>79dabb1</code></a>
Another attempt to fix MathJax loading issues in docs</li>
<li><a
href="4b54d02a0f"><code>4b54d02</code></a>
Support alternate fenced header form (<a
href="https://redirect.github.com/facelessuser/pymdown-extensions/issues/2470">#2470</a>)</li>
<li><a
href="8355b4565f"><code>8355b45</code></a>
Attempt to fix issues with instant loading</li>
<li><a
href="448972add0"><code>448972a</code></a>
Fix bad example</li>
<li><a
href="f8f8c579b9"><code>f8f8c57</code></a>
Bump version</li>
<li><a
href="7a95865558"><code>7a95865</code></a>
Add support for <code>*tag1 **tag1,tag2***</code> cases for
<code>*</code>, <code>_</code>, <code>~</code>, and <code>^</code> (<a
href="https://redirect.github.com/facelessuser/pymdown-extensions/issues/2467">#2467</a>)</li>
<li><a
href="5f0e3fc972"><code>5f0e3fc</code></a>
Docs: Turn off instant loading until we figure out MathJax issue with
it</li>
<li>See full diff in <a
href="https://github.com/facelessuser/pymdown-extensions/compare/10.10.1...10.11.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pymdown-extensions&package-manager=pip&previous-version=10.10.1&new-version=10.11.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2024-10-02 10:43:33 +02:00
Yohan Boniface
6c9c62d6b4
chore: bump psycopg from 3.2.2 to 3.2.3 (#2178)
Bumps [psycopg](https://github.com/psycopg/psycopg) from 3.2.2 to 3.2.3.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/psycopg/psycopg/blob/master/docs/news.rst">psycopg's
changelog</a>.</em></p>
<blockquote>
<p>.. currentmodule:: psycopg</p>
<p>.. index::
single: Release notes
single: News</p>
<h1><code>psycopg</code> release notes</h1>
<h2>Current release</h2>
<p>Psycopg 3.2.3
^^^^^^^^^^^^^</p>
<ul>
<li>Release binary packages including PostgreSQL 17 libpq
(🎫<code>[#852](https://github.com/psycopg/psycopg/issues/852)</code>).</li>
</ul>
<p>Psycopg 3.2.2
^^^^^^^^^^^^^</p>
<ul>
<li>Drop <code>!TypeDef</code> specifications as string from public
modules, as they cannot
be composed by users as <code>!typing</code> objects previously could
(🎫<code>[#860](https://github.com/psycopg/psycopg/issues/860)</code>).</li>
<li>Release Python 3.13 binary packages.</li>
</ul>
<p>Psycopg 3.2.1
^^^^^^^^^^^^^</p>
<ul>
<li>Fix packaging metadata breaking <code>[c]</code>,
<code>[binary]</code> dependencies

(🎫<code>[#853](https://github.com/psycopg/psycopg/issues/853)</code>).</li>
</ul>
<h2>Psycopg 3.2</h2>
<p>.. rubric:: New top-level features</p>
<ul>
<li>Add support for integer, floating point, boolean <code>NumPy scalar
types</code>__

(🎫<code>[#332](https://github.com/psycopg/psycopg/issues/332)</code>).</li>
<li>Add <code>!timeout</code> and <code>!stop_after</code> parameters to
<code>Connection.notifies()</code>
(🎫<code>340</code>).</li>
<li>Allow dumpers to return <code>!None</code>, to be converted to NULL
(🎫<code>[#377](https://github.com/psycopg/psycopg/issues/377)</code>).</li>
<li>Add :ref:<code>raw-query-cursors</code> to execute queries using
placeholders in
PostgreSQL format (<code>$1</code>, <code>$2</code>...)
(🎟️<code>[#560](https://github.com/psycopg/psycopg/issues/560),
[#839](https://github.com/psycopg/psycopg/issues/839)</code>).</li>
<li>Add <code>capabilities</code> object to :ref:<code>inspect the libpq
capabilities &lt;capabilities&gt;</code>
(🎫<code>[#772](https://github.com/psycopg/psycopg/issues/772)</code>).</li>
<li>Add <code>~rows.scalar_row</code> to return scalar values from a
query
(🎫<code>[#723](https://github.com/psycopg/psycopg/issues/723)</code>).</li>
<li>Add <code>~Connection.cancel_safe()</code> for encrypted and
non-blocking cancellation
when using libpq v17. Use such method internally to implement</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="ce8f07321b"><code>ce8f073</code></a>
chore: bump psycopg package version to 3.2.3</li>
<li><a
href="9af9267bdb"><code>9af9267</code></a>
Merge pull request <a
href="https://redirect.github.com/psycopg/psycopg/issues/917">#917</a>
from psycopg/pg17</li>
<li><a
href="9c9369bea4"><code>9c9369b</code></a>
docs: mention PostgreSQL 17 in binary packages in the news file</li>
<li><a
href="d0b1a3ab0a"><code>d0b1a3a</code></a>
ci: install flex to build libpq</li>
<li><a
href="17e8d85f69"><code>17e8d85</code></a>
ci(macos): fix dylib path for postgres 17 from brew</li>
<li><a
href="d06613299a"><code>d066132</code></a>
ci(macos): update brew to install PostgreSQL 17</li>
<li><a
href="2cc362e4dc"><code>2cc362e</code></a>
ci: bump to PostgreSQL 17 in binary packages</li>
<li><a
href="810bfcf09c"><code>810bfcf</code></a>
chore: add PostgreSQL 17 TRANSACTION_TIMEOUT error</li>
<li><a
href="2a0242163b"><code>2a02421</code></a>
ci: Add PostgreSQL 17 to CI test grid, remove PostgreSQL 11</li>
<li><a
href="bea783d394"><code>bea783d</code></a>
fix(windows): resolve absolute path to libpq</li>
<li>Additional commits viewable in <a
href="https://github.com/psycopg/psycopg/compare/3.2.2...3.2.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=psycopg&package-manager=pip&previous-version=3.2.2&new-version=3.2.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2024-10-02 10:43:13 +02:00
Yohan Boniface
3bbea2ec9e
chore: bump uwsgi from 2.0.26 to 2.0.27 (#2180)
Bumps [uwsgi](https://uwsgi-docs.readthedocs.io/en/latest/) from 2.0.26
to 2.0.27.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=uwsgi&package-manager=pip&previous-version=2.0.26&new-version=2.0.27)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2024-10-01 21:54:05 +02:00
Yohan Boniface
fe8c10d624
fix: remoteData helpEntries were not on the right format (#2183)
![image](https://github.com/user-attachments/assets/4f3126d7-39f7-437b-b22d-b5a00936bfa7)
2024-10-01 21:46:17 +02:00
Yohan Boniface
c2833987b7 fix: remoteData helpEntries were not on the right format
Should be now an array (not guessing anymore).
2024-10-01 08:55:58 +02:00
dependabot[bot]
44a7554a90
chore: bump ruff from 0.6.7 to 0.6.8
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.7 to 0.6.8.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.7...0.6.8)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 17:26:28 +00:00
dependabot[bot]
1d91a66546
chore: bump uwsgi from 2.0.26 to 2.0.27
Bumps [uwsgi](https://uwsgi-docs.readthedocs.io/en/latest/) from 2.0.26 to 2.0.27.

---
updated-dependencies:
- dependency-name: uwsgi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 17:26:19 +00:00
dependabot[bot]
4aa4c2da59
chore: bump pymdown-extensions from 10.10.1 to 10.11.1
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.10.1 to 10.11.1.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/10.10.1...10.11.1)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 17:26:17 +00:00
dependabot[bot]
e1b9c35283
chore: bump psycopg from 3.2.2 to 3.2.3
Bumps [psycopg](https://github.com/psycopg/psycopg) from 3.2.2 to 3.2.3.
- [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst)
- [Commits](https://github.com/psycopg/psycopg/compare/3.2.2...3.2.3)

---
updated-dependencies:
- dependency-name: psycopg
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 17:26:12 +00:00
0a1d98b146 ci: Skip intermittent-failing tests when on the CI.
A few tests have been failing randomly, leading to developers not having
a lot of trust in the CI, and having to retrigger the runs.

Here is the list of tests:

- `test_should_honor_toZoom`
- `test_default_view_locate`
- `test_umap_import_from_textarea`

This skips these tests when running in the CI, by looking at the `CI`
environment variable, set by Github Actions [0]

[0] https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
2024-09-27 18:26:47 +02:00
5485fb99ab feat(sync): Send remote operations to peers when they join.
- Operations are now stored locally in memory. All operations are tied
  to an HLC (Hybrid Logical Clock), making it possible to order them
  concistently.

- Messages are handled in their `on*` methods, leading to a clearer
  implementation.

- When a new peer joins, it asks a random peer for the list of
  operations, and re-apply them locally.

- Messages types names have been updated to follow CamelCase, and to be
  similar across the client and the server.

- Pass `sync=False` to `makeFeature` in the updaters, to avoid
  generating duplicate operations on message retrieval.
2024-09-27 18:26:47 +02:00
Yohan Boniface
7dbb3e0b9a fix: allow to draw new proprotional circles and to drag them
The main issue was because we overrided the `getLatLngs` function
in our PointMixin class, so I changed the way feature get the latlngs
from the UI classes.

fix #2171
2024-09-27 08:58:08 +02:00
Yohan Boniface
5836ae859a
Merge pull request #1670 from umap-project/clean-tilelayer-command
chore: add clean_tilelayer management command
2024-09-26 09:20:54 +02:00
Yohan Boniface
c4aa376287
Merge pull request #2168 from umap-project/georsstogeojson-as-esm
chore: use GeoRSStoGeoJSON as ES module
2024-09-24 20:09:53 +02:00
Yohan Boniface
3719e88643 chore: display user maps in admin and add in csv export
maps are owner maps + maps as editor

cf https://github.com/umap-project/umap/pull/2131#discussion_r1772775039
2024-09-24 20:07:03 +02:00