-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
async checkForUpdates(channel, fromVersion) { // awaits the first refresh const latest = await this.getLatest(channel); if (!latest) { return; } if (process.env.UPDATE_CHECKER_ALLOW_DOWNGRADES === 'true') { if (fromVersion !== latest.version) { return latest; } } if (semver.lt(fromVersion, latest.version)) { return latest; } }
This should allow us to test auto-update by downgrading from the version being built in the PR or beta or GA CI run to the latest dev, beta or stable release.
- is depended on by
-
COMPASS-8536 [FROM] Test that we can auto-update from this version of Compass
- In Code Review