umbraco / Umbraco.Forms.Issues

Public issue tracker for Umbraco Forms
29 stars 0 forks source link

v7 disable auto-updates #1171

Closed c9mb closed 1 month ago

c9mb commented 4 months ago

I understand that v7 is no longer supported, but we have a significant number of sites running v7 with site owners that have no immediate plans to upgrade.

One nuisance issue I am having is its regular attempts to update from 'nightly.umbraco.org' which fails and results in a large error-log entry. Presumably this end-point is no longer in service.

Is there any way to disable its attempt to AutoUpdate ?

AndyButland commented 4 months ago

Just had a dig through the V7 source. There's not a config to disable this, but you could modify one of the JavaScript files to to so. As far as I can tell it's only called from the Forms dashboard for admin users. There's method that looks like this:

        $scope.loadStatus = function () {
            ...
            updatesResource.getUpdateStatus().then(function (response) {
                $scope.version = response.data;
            });

            updatesResource.getVersion().then(function (response) {
                $scope.currentVersion = response.data;
            });
            ....
        };

If you remove the call to getUpdateStatus() (and replace it with setting $scope.version to a hard coded value) - looks to me that would remove the attempt to check for upgrades.

c9mb commented 4 months ago

@AndyButland - Cheers and thanks for that - I'll check it out now I know what's triggering it (probably me checking sites) and where to look.

AndyButland commented 1 month ago

Closing this one now given Forms 7 won't receive further updates.