luci-app-attendedsysupgrade: report used client version
authorPaul Spooren <[email protected]>
Thu, 28 Jul 2022 20:43:46 +0000 (22:43 +0200)
committerPaul Spooren <[email protected]>
Fri, 29 Jul 2022 14:50:37 +0000 (16:50 +0200)
This allows the backend to track popular app versions and drop support for
unsed version in case of API changes.

Specifically the app sends a version string in the format "luci/GIT_HASH" to
the backend.

Signed-off-by: Paul Spooren <[email protected]>
(cherry picked from commit f368faf6789a43c2e1a26b721f8115473672eb29)

applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js

index a82f7bdbed83d3581aad989c33abf4af56607855..4c88296eb3ac3b918c9f2857063e2a7682d3353b 100644 (file)
@@ -408,7 +408,7 @@ return view.extend({
        },
 
        render: function (res) {
-               this.data.app_version = res[0].packages['luci-app-attendedsysupgrade'];
+               this.firmware.client = 'luci/' + res[0].packages['luci-app-attendedsysupgrade'];
                this.firmware.packages = res[0].packages;
 
                this.firmware.profile = res[1].board_name;