Girish Ramakrishnan
0857378801
operator: add app update checker route
2021-09-21 19:58:38 -07:00
Girish Ramakrishnan
77f5cb183b
merge appdb.js into apps.js
2021-08-23 15:35:38 -07:00
Girish Ramakrishnan
03e22170da
appstore and support: async'ify
2021-08-18 23:38:18 -07:00
Girish Ramakrishnan
8da4eaf4a3
fix tests
2021-06-03 16:08:39 -07:00
Girish Ramakrishnan
73917e95c9
rework notifications
...
notifications are now system level instead of user level.
To clarify the use events/notifications/email:
* eventlog - everything that is happenning on server
* notifications - specific important events (alerts)
* email - these are really urgent things that require immediate attention. this is for
the case where an admin does not visit the dashboard often. can also be alerts like
bad backup config or reboot required which are not events per-se.
Notes on notifications
* oom - notification only
* appUpdated - notification only
* cert renewal failure - only raise when < 10 days to go. also send email thereafter (todo).
* Backup failure - only if last 5 backups failed (todo).
* Box update - notification only. we anyway send newsletter.
* box update available - we raise a notification. no email.
* app update available - we already have update indicator on dashboard. so, no notification or email.
Alerts:
* backup config
* disk space
* mail status
* reboot
* box updated
* ubuntu update required
2021-05-28 15:29:53 -07:00
Girish Ramakrishnan
149e176cfd
better logs
2021-03-03 13:49:22 -08:00
Girish Ramakrishnan
9ee4692215
updatechecker: clear box update after update is done
2021-01-13 17:10:07 -08:00
Girish Ramakrishnan
28dee54a39
updates: only send email notifications when not auto-updating
...
fixes #749
2020-12-29 17:47:51 -08:00
Girish Ramakrishnan
33fb093aeb
remove extra arg
2020-12-21 15:30:15 -08:00
Girish Ramakrishnan
df5a333f30
add version to the updatechecker file
2020-12-21 12:41:23 -08:00
Girish Ramakrishnan
65290e52f7
persist update indicator across restarts
...
part of #749
2020-12-21 12:36:02 -08:00
Girish Ramakrishnan
e730a6e282
log: do not show app update message for no updates
2020-09-09 19:26:45 -07:00
Girish Ramakrishnan
2d50f10fd6
Fix some typos
2020-08-19 23:14:05 -07:00
Girish Ramakrishnan
6c4df5abf0
unify update check into a single job
2020-08-19 21:43:12 -07:00
Girish Ramakrishnan
1b307632ab
Use debug instead of console.* everywhere
...
No need to patch up console.* anymore
also removes supererror
2020-08-02 12:04:55 -07:00
Girish Ramakrishnan
a4516776d6
make canAutoupdateApp take updateInfo object
...
part of #698
2020-06-05 16:06:37 -07:00
Girish Ramakrishnan
20d1759fa5
Run update checker on stopped apps, we just don't update them
2020-05-28 12:41:51 -07:00
Girish Ramakrishnan
2e130ef99d
Add automatic flag for update checks
...
The appstore can then known if a user clicked the check for updates
button manually or if it was done by the automatic updater.
We will fix appstore so that updates are always provided for manual checks.
automatic updates will follow our roll out plan.
We do have one issue that the automatic update checker will reset the manual
updates when it runs, but this is OK.
2020-05-06 18:57:59 -07:00
Girish Ramakrishnan
23ee758ac9
do not check for updates for stopped apps
2020-03-15 09:48:08 -07:00
Johannes Zellner
017d19a8c8
Do not send internal link for update notification
2020-03-06 19:18:01 -08:00
Girish Ramakrishnan
0e156b9376
migrate permissions and admin flag to user.role
2020-02-21 16:49:20 -08:00
Girish Ramakrishnan
53e39f571c
Make addons code remove a BoxError
2019-12-04 14:28:42 -08:00
Johannes Zellner
204c659af2
Fixup wrong indentation
2019-05-06 22:35:01 +02:00
Johannes Zellner
ae5eb00bd0
Batch all available app updates in updatechecker
2019-05-06 22:09:18 +02:00
Johannes Zellner
c4fbfd32ee
The updateInfo is not the manifest object
2019-05-06 17:55:49 +02:00
Johannes Zellner
4f5af1f7be
Variable name clashes with module name
2019-05-06 17:42:26 +02:00
Johannes Zellner
b7d3014aab
If an app cannot be updated automatically send notification mail
2019-05-06 16:37:55 +02:00
Girish Ramakrishnan
8f55565dbf
Remove notification logic that depended on free plan
...
this is from a time when we used to withhold updates for free users
2019-05-03 19:56:27 -07:00
Girish Ramakrishnan
6bdf2e38cc
remove query admins from mailer code
2019-03-10 16:28:17 -07:00
Girish Ramakrishnan
66b02b58b6
make notifications.alert take a title
...
the title is better when it's a bit more dynamic
2019-03-08 16:59:48 -08:00
Girish Ramakrishnan
2d4b9786fa
box update is now an alert notification
2019-03-07 14:40:46 -08:00
Girish Ramakrishnan
d2d9c4be6f
update notification
2019-03-07 14:27:43 -08:00
Girish Ramakrishnan
a9d6ac29f1
make funcs take proper callbacks
2019-03-07 14:27:23 -08:00
Johannes Zellner
541fabcb2e
Add convenience function to determine if subscription is 'free' or not
2018-05-29 13:31:43 +02:00
Johannes Zellner
915e04eb08
We do not have an 'undecided' plan state anymore
2018-05-29 13:31:43 +02:00
Johannes Zellner
3eb11ee20a
Fixup updatechecker tests
2018-02-06 19:25:03 +01:00
Johannes Zellner
11d740682e
Split box and app autoupdate pattern settings
2018-02-06 19:25:03 +01:00
Girish Ramakrishnan
7c361a87b0
validate appstore update responses
2018-01-25 09:39:34 -08:00
Girish Ramakrishnan
fa6d151325
Fix update mail templates
2017-11-02 21:34:03 -07:00
Girish Ramakrishnan
b30def3620
move prerelease check to appstore
2017-10-25 21:34:56 -07:00
Girish Ramakrishnan
4045eb7a33
Add digest tests
2017-07-23 10:58:00 -07:00
Girish Ramakrishnan
6d0cdc36b2
move getSubscription to appstore.js
2017-06-21 22:17:32 -07:00
Girish Ramakrishnan
a553755f4a
the noop callback will print the error
2017-06-19 22:20:25 -07:00
Girish Ramakrishnan
cd52459f05
more descriptive debug
2017-06-19 22:20:25 -07:00
Girish Ramakrishnan
1802201e9e
Remove one level of indentation
2017-06-19 22:20:22 -07:00
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