3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
257 stars 143 forks source link

Check the target LWC version #1560

Open Gustry opened 4 years ago

Gustry commented 4 years ago

Feature request about versions

Since a few weeks and especially since this morning https://github.com/3liz/lizmap-plugin/commit/b9af3f5222000ab89d26dcd6b01f99384e61cdf6, the CFG file contains information about the target LWC version.

At the top of the CFG file, we can now find:

    "metadata": {
        "lizmap_plugin_version": 30210,
        "lizmap_web_client_target_version": 30200
    },

which means for instance I target Lizmap 3.2 in this example.

Related to :

The CFG is going to change relating to the target version. I'm trying to minimize this, but for the dataviz I don't have to much choices.

I would like that LWC checks and warn the admin when the lizmap_web_client_target_version doesn't match the current version on the server. I'm expecting some users reporting bugs about dataviz broken if they are not careful.

So can we add this check somewhere in LWC about versions? Can we backport this to 3.2? (some users will update their QGIS plugin and still running 3.2)

Any thoughts?

Gustry commented 1 year ago

Half done in https://github.com/3liz/lizmap-web-client/pull/3158 to not show old CFG files, LWC 3.6 RC 1