Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 14.1.0 #6650

Merged
merged 50 commits into from
Jan 6, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
cb14de0
Bump version to 14.0.8
sulkaharo Nov 15, 2020
2a96c44
Merge branch 'master' into dev
sulkaharo Nov 15, 2020
c9156bd
Revised Norwegian (nb) translations (#6525)
bjornoleh Nov 17, 2020
4ace125
Move localisation to Crowdin (#6518)
sulkaharo Nov 17, 2020
74cf673
* Reformat the source language file
sulkaharo Nov 18, 2020
15f47f6
One more tiny formatting fix
sulkaharo Nov 18, 2020
76ce300
Inzulin -> Insulin in English
sulkaharo Nov 18, 2020
cb7c74e
Fix typo in Portugues Brazilian language code
sulkaharo Nov 23, 2020
fc849fb
New Crowdin updates (#6535)
sulkaharo Nov 23, 2020
8367d00
Update CONTRIBUTING.md (#6540)
bjornoleh Nov 23, 2020
3680975
Typo correction (#6558)
inventor96 Nov 23, 2020
4c12fe6
Increased the width of the inlinepiechart to fit the Dutch translated…
yodax Nov 23, 2020
7a3b968
Refactor `mongo-storage.js` (#6589)
pazaan Nov 30, 2020
d0cf72a
Fixes the color changes based on BG target preferences in the clock v…
sulkaharo Dec 8, 2020
512139e
Added some boot logging & allow booting using Node 14 LTS
sulkaharo Dec 9, 2020
bc0f817
* Fix a bug with reloading while the server is starting
sulkaharo Dec 9, 2020
f02b8d9
Fix timing issue with a test using async, causing tests to randomly fail
sulkaharo Dec 10, 2020
7fe8e32
Refactor core auth (#6596)
sulkaharo Dec 10, 2020
71a5354
New Crowdin updates (#6567)
sulkaharo Dec 10, 2020
f2fd923
Bump version to 14.1.0 given changes to auth and localization
sulkaharo Dec 14, 2020
558ddb4
New Crowdin updates (#6640)
sulkaharo Dec 14, 2020
9a6ee8a
Fix applying localizations to plugin names in client preferences
sulkaharo Dec 14, 2020
c12ad76
* Refactor how the levels dependency is loaded, to fix some localizat…
sulkaharo Dec 14, 2020
a073841
Oops, push the unit test changes as well
sulkaharo Dec 14, 2020
7c3ab00
Fix pushover init
sulkaharo Dec 14, 2020
d81e342
Fix pushover test
sulkaharo Dec 14, 2020
9e3d9a6
New Crowdin updates (#6652)
sulkaharo Dec 14, 2020
0a2fee8
Various fixes to localization - #6516 #6523 #6524
sulkaharo Dec 15, 2020
b09e463
Test new dev version of minimed-connect-to-nightscout
bewest Dec 16, 2020
8c59de8
* More small localization fixes
sulkaharo Dec 17, 2020
2eb9cf8
Merge branch 'dev' into wip/bewest/mmconnect
bewest Dec 18, 2020
4bdd271
Fix upbat.js levels reference
sulkaharo Dec 21, 2020
edfcf6e
Fix authorization renewal
sulkaharo Dec 21, 2020
0a15938
New Crowdin updates (#6653)
sulkaharo Dec 21, 2020
2c30b64
Add a missing localization, fix unit tests
sulkaharo Dec 21, 2020
92cc12e
Fix a localization key
sulkaharo Dec 22, 2020
4b98d35
Merge branch 'dev' into wip/bewest/mmconnect
bewest Dec 22, 2020
186e978
Rename Weekly Success report to Weekly Distribution
sulkaharo Dec 24, 2020
f36048d
Fix a bug with auth calls that send a false API secret
sulkaharo Dec 27, 2020
fc9fd34
upgrade minimed-connect-to-nightscout 1.5.0
bewest Dec 30, 2020
e3784ea
Merge branch 'dev' into wip/bewest/mmconnect
bewest Dec 30, 2020
76f198a
Merge branch 'wip/bewest/mmconnect' of github.com:nightscout/cgm-remo…
bewest Dec 30, 2020
411463e
Replace Travis build with a GitHub Action (#6690)
pazaan Jan 1, 2021
6b28a14
APIv3: Cache invalidation + refactoring (#6688)
PetrOndrusek Jan 1, 2021
923cdad
New Crowdin updates (#6675)
sulkaharo Jan 1, 2021
405eb0d
german translations template for googlehome integration (#6674)
tanja3981 Jan 1, 2021
773f89e
Added support for multiple uploaders in virtual assistant delta calc…
inventor96 Jan 2, 2021
3c61266
Removed duplicate translation key (#6699)
inventor96 Jan 2, 2021
82a9e18
New Crowdin updates (#6700)
sulkaharo Jan 4, 2021
46e4d17
* Additional unit test for the authorization API
sulkaharo Jan 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added some boot logging & allow booting using Node 14 LTS
  • Loading branch information
sulkaharo committed Dec 9, 2020
commit 512139e5e0af65b8b8532a6ea97cb76e1b4ebb4a
51 changes: 44 additions & 7 deletions lib/server/bootevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ var UPDATE_THROTTLE = 5000;
function boot (env, language) {

function startBoot(ctx, next) {

console.log('Executing startBoot');

ctx.runtimeState = 'booting';
next();
}
Expand All @@ -27,25 +30,31 @@ function boot (env, language) {
// >= 12.6.0 does work, not recommended, will not be supported. We only support Node LTS releases
///////////////////////////////////////////////////
function checkNodeVersion (ctx, next) {

console.log('Executing checkNodeVersion');

var semver = require('semver');
var nodeVersion = process.version;

const isLTS = process.release.lts ? true : false;

if (!isLTS) {
console.log( 'ERROR: Node version ' + nodeVersion + ' is not supported. Please use a secure LTS version or upgrade your Node');
process.exit(1);
}

if (semver.satisfies(nodeVersion, '^12.0.0') || semver.satisfies(nodeVersion, '^10.0.0')) {

if (isLTS && (semver.satisfies(nodeVersion, '^14.0.0') || semver.satisfies(nodeVersion, '^12.0.0') || semver.satisfies(nodeVersion, '^10.0.0'))) {
//Latest Node 10 LTS and Node 12 LTS are recommended and supported.
//Require at least Node 8 LTS and Node 10 LTS without known security issues
console.debug('Node LTS version ' + nodeVersion + ' is supported');
next();
return;
}

console.log( 'ERROR: Node version ' + nodeVersion + ' is not supported. Please use a secure LTS version or upgrade your Node');
process.exit(1);

}

function checkEnv (ctx, next) {

console.log('Executing checkEnv');

ctx.language = language;
if (env.err) {
ctx.bootErrors = ctx.bootErrors || [ ];
Expand All @@ -59,6 +68,9 @@ function boot (env, language) {
}

function augmentSettings (ctx, next) {

console.log('Executing augmentSettings');

var configURL = env.IMPORT_CONFIG || null;
var url = require('url');
var href = null;
Expand Down Expand Up @@ -93,6 +105,8 @@ function boot (env, language) {

function checkSettings (ctx, next) {

console.log('Executing checkSettings');

ctx.bootErrors = ctx.bootErrors || [];

console.log('Checking settings');
Expand All @@ -112,6 +126,8 @@ function boot (env, language) {

function setupStorage (ctx, next) {

console.log('Executing setupStorage');

if (hasBootErrors(ctx)) {
return next();
}
Expand Down Expand Up @@ -149,6 +165,9 @@ function boot (env, language) {
}

function setupAuthorization (ctx, next) {

console.log('Executing setupAuthorization');

if (hasBootErrors(ctx)) {
return next();
}
Expand All @@ -164,6 +183,9 @@ function boot (env, language) {
}

function setupInternals (ctx, next) {

console.log('Executing setupInternals');

if (hasBootErrors(ctx)) {
return next();
}
Expand Down Expand Up @@ -214,6 +236,9 @@ function boot (env, language) {
}

function ensureIndexes (ctx, next) {

console.log('Executing ensureIndexes');

if (hasBootErrors(ctx)) {
return next();
}
Expand All @@ -230,6 +255,9 @@ function boot (env, language) {
}

function setupListeners (ctx, next) {

console.log('Executing setupListeners');

if (hasBootErrors(ctx)) {
return next();
}
Expand Down Expand Up @@ -270,6 +298,9 @@ function boot (env, language) {
}

function setupBridge (ctx, next) {

console.log('Executing setupBridge');

if (hasBootErrors(ctx)) {
return next();
}
Expand All @@ -282,6 +313,9 @@ function boot (env, language) {
}

function setupMMConnect (ctx, next) {

console.log('Executing setupMMConnect');

if (hasBootErrors(ctx)) {
return next();
}
Expand All @@ -294,6 +328,9 @@ function boot (env, language) {
}

function finishBoot (ctx, next) {

console.log('Executing finishBoot');

if (hasBootErrors(ctx)) {
return next();
}
Expand Down
3 changes: 3 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ function create (app) {
}

require('./lib/server/bootevent')(env, language).boot(function booted (ctx) {

console.log('Boot event processing completed');

var app = require('./app')(env, ctx);
var server = create(app).listen(PORT, HOSTNAME);
console.log(translate('Listening on port'), PORT, HOSTNAME);
Expand Down