Commit Graph

42 Commits

Author SHA1 Message Date
Johannes Zellner 2d72f49261 Ensure the updatechecker does not prematurely callback
Also add tests and make sure we send update notifications if automatic
updates cannot be applied
2017-06-19 14:34:36 +02:00
Johannes Zellner cd42a6c2ea Send update notifications on the free plan 2017-06-19 13:27:08 +02:00
Johannes Zellner 6d47737de7 Remove unused require 2017-06-13 21:14:27 +02:00
Girish Ramakrishnan 5e22caa6e7 Fix updatechecker tests 2017-04-14 00:36:22 -07:00
Girish Ramakrishnan 644bc54a0d Get box updates via appstore API
Part of #293
2017-04-13 01:31:25 -07:00
Girish Ramakrishnan b2d062bdf8 Get app updates via appstore API
Part of #293
2017-04-13 01:23:18 -07:00
Girish Ramakrishnan 53d56ef3a0 console.error -> debug 2017-02-07 10:48:51 -08:00
Johannes Zellner 68c36e8a18 Only send update notification mails if autoupdate is disabled 2017-01-27 09:51:26 -08:00
Johannes Zellner 6ce8899231 Revert "Do not send box update emails to admins"
This reverts commit 865b041474.
2017-01-27 09:51:26 -08:00
Johannes Zellner 865b041474 Do not send box update emails to admins
Fixes #160
2017-01-12 13:09:12 +01:00
Johannes Zellner f16d1c80f4 Do not log if no update is available 2016-11-14 17:00:30 +01:00
Johannes 4fd5b369f8 Reset app update indicator when an update was triggered
Fixes #48
2016-11-07 15:14:08 +01:00
Girish Ramakrishnan 2e51251cac fix debug message 2016-08-02 18:09:45 -07:00
Girish Ramakrishnan b0286a6f7f updatechecker: ensure box state information is not lost
the box and app update checker run in parallel. be sure not to lose
the box state information.
2016-08-02 17:39:43 -07:00
Girish Ramakrishnan 884fd5a224 debug when app got an update 2016-08-01 15:35:58 -07:00
Girish Ramakrishnan 971647c986 use the new appstore update route to detect app updates 2016-07-27 19:15:10 -07:00
Girish Ramakrishnan 138829f69b remove appupdate pre-release logic
this all seems very premature since prereleases are not supported in
appstore side
2016-07-27 17:46:58 -07:00
Girish Ramakrishnan 03c97d2027 send appVersions when checking for updates 2016-07-27 10:14:10 -07:00
Girish Ramakrishnan 115ed12c36 check that app patch releases does not send email 2016-04-12 13:49:49 -07:00
Girish Ramakrishnan 34521735da skip email notification for patch releases 2016-04-12 12:30:13 -07:00
girish@cloudron.io 4b54e776cc reset update info after short-circuit 2016-01-25 16:46:54 -08:00
girish@cloudron.io 5254d3325f add comment on fields on box update info object 2016-01-25 13:57:59 -08:00
Girish Ramakrishnan f48fe0a7c0 Get started with updatechecker tests 2016-01-23 22:38:46 -08:00
Girish Ramakrishnan 5f6c8ca520 fix crash 2016-01-23 13:37:21 -08:00
Girish Ramakrishnan 0eaa3a8d94 clear update info so that we use the latest settings 2016-01-23 11:08:01 -08:00
girish@cloudron.io 70f096c820 check settingsdb whether to notify for app prerelease
fixes #573
2016-01-23 05:56:08 -08:00
girish@cloudron.io 2840251862 check if updateInfo is null earlier 2016-01-23 05:37:22 -08:00
girish@cloudron.io b43966df22 code without callback is hard to read 2016-01-23 05:35:57 -08:00
girish@cloudron.io cc22285beb Check settingsdb whether to notify for prereleases
part of #573
2016-01-23 05:33:16 -08:00
girish@cloudron.io b2da364345 fix typo in comment 2016-01-22 17:58:38 -08:00
Johannes Zellner 1a30e622cc Only register app updates for apps where the available version is actually bigger
Fixes #533
2016-01-13 14:48:52 +01:00
Johannes Zellner 8ac0e9e751 Provide sourceTarballUrl with update info 2016-01-12 16:50:14 +01:00
Girish Ramakrishnan a4ea693c3c update superagent
the latest superchanged changed the meaning of 'error'. Previously,
error implied a network error. With the latest superagent, error means
a REST api error i.e 4xx, 5xx are flagged as errors.

error && !error.response means network error
2015-12-15 09:53:37 -08:00
Johannes Zellner 3787dd98b4 Do not crash if a boxVersionsUrl is not set
This prevents test failures when the cron job runs
2015-10-13 13:22:23 +02:00
Girish Ramakrishnan 2a39526a4c Remove old app ids from updatechecker state
Fixes #472
2015-09-22 22:46:14 -07:00
Girish Ramakrishnan ded5d4c98b debug message when notification is skipped 2015-09-22 22:41:42 -07:00
Girish Ramakrishnan a0ca59c3f2 Fix typo 2015-09-22 20:22:17 -07:00
Girish Ramakrishnan 53cfc49807 Save version instead of boolean so we get notified when version changes
part of #472
2015-09-22 16:11:15 -07:00
Girish Ramakrishnan 942eb579e4 save/restore notification state of updatechecker
part of #472
2015-09-22 16:11:04 -07:00
Girish Ramakrishnan a35ebd57f9 call iteratorDone when finished 2015-09-09 00:43:42 -07:00
Johannes Zellner 7c5fc17500 Cleanup linter issues in updatechecker.js 2015-09-08 10:03:37 +02:00
Girish Ramakrishnan df9d321ac3 app.portBindings and newManifest.tcpPorts may be null 2015-07-20 00:10:36 -07:00