Skip to content

Commit

Permalink
Release of 2.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Oct 14, 2024
1 parent 7d761ed commit 2e0c2b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 2.11.1 - 2024-10-14

* Improve the server information handler

## 2.11.0 - 2024-10-03

* Raise QGIS minimum version to QGIS 3.22
Expand Down
4 changes: 2 additions & 2 deletions lizmap_server/server_info_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ def _handleRequest(self, context):
for expected in EXPECTED_PLUGINS:
if expected not in plugins:
plugins[expected] = {
'version': 'not found',
'version': 'Not found',
'name': expected,
}

# Lizmap Cloud allocated ressources
allocated_ressources = os.getenv("LZM_ALLOCATION_MODE", "")
if allocated_ressources != "":
if allocated_ressources == "shared":
version = 'Not available on this Lizmap Cloud plan, only on a higher plan : standard or advanced'
version = 'Not available on this Lizmap Cloud plan, only on a higher plan : "Standard" or "Advanced"'
else:
# allocated_ressources == "dedicated"
version = 'Not installed, you can ask a commercial proposal to Lizmap Cloud'
Expand Down
2 changes: 1 addition & 1 deletion test/test_server_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_lizmap_server_info(client):
assert len(json_content['qgis_server']['plugins'].keys()) == len(expected_plugins)
for plugin in expected_plugins:
assert json_content['qgis_server']['plugins'][plugin]['name'] == plugin
assert json_content['qgis_server']['plugins'][plugin]['version'] == 'not found'
assert json_content['qgis_server']['plugins'][plugin]['version'] == 'Not found'

assert len(json_content['qgis_server']['fonts']) >= 1

Expand Down

0 comments on commit 2e0c2b2

Please sign in to comment.