Commit Graph
121 Commits
Author SHA1 Message Date
Sulka HaroandGitHub 914ba78f36 Security improvement batch (#6622)
* Adds a new method for the server to push notifies to the client, which require administration privileges from the user. If there are messages in queue but user is not privileged, she is notified of pending messages

* Fix unit tests

* Increase timeouts on tests

* Add translations

* * Aggregate admin messages
* Send admin message on auth fail
* Sending messages over bus
* XSS filtering of objects sent over the REST API

* Warn users if their instance is world readable

* Fix adminnotifies init()

* Fix couple issues from Codacy
2021-01-07 22:46:55 +02:00
Sulka Haro b078394450 * Bump version to 14.1.1
* Allow reducing timer length in delays for security tests
2021-01-07 14:43:53 +02:00
Ben West fc9fd3425b upgrade minimed-connect-to-nightscout 1.5.0
Update to version available in npm.
2020-12-30 13:56:40 -08:00
Ben West b09e463c1f Test new dev version of minimed-connect-to-nightscout
Try out plugin with recent fixes, thanks to @fredmk.
2020-12-15 16:05:57 -08:00
Sulka Haro 9a6ee8aa77 Fix applying localizations to plugin names in client preferences 2020-12-14 16:05:44 +02:00
Sulka Haro cb14de0514 Bump version to 14.0.8 2020-11-15 11:29:01 +02:00
Sulka HaroandGitHub b762ade017 Fix batch (#6248)
* Use the delta plugin data to show the delta in the clock views
* Update Node checks
* Fix disabling the BG alarms for simple alarms
* Load battery and other rare events up to two months back
* Possibly fixes compatibility with ios9 - needs testing
* Unified black and color clock layouts
* Update clock data every 20 seconds
* Update clock time every second
* Fix how CSP policy is set for Helmet, fixes #6260
* Authorization fix for misformatted URLs
* Added unit test for batch upload of CGM entries
* Improved / removed some logging
* Test if user is in read only mode when Nightscout starts and give an error if so
2020-11-10 18:02:28 +02:00
Sulka Haro f08f9eac52 * Bump version to 14.0.7
* Add onerror handler for pushover
2020-09-30 09:14:59 +03:00
Sulka Haro 0dd1254bf4 Bump version to 14.0.6 2020-09-28 09:36:21 +03:00
Sulka Haro de792d244d Bump version to 14.0.5 and fix #6050 2020-09-24 22:06:02 +03:00
Sulka Haro 3f1081e3aa Bump version to .4 2020-09-22 12:44:31 +03:00
Sulka Haro 0c7e9bf456 * Require created_at for Treatments on insert
* Refactoring the cache: moved to another file and support flushing from bus events
2020-09-19 18:17:20 +03:00
Sulka Haro 90f91c3e18 * Bump version to 14.0.3
* Fix a bug in the REST API query for profiles
2020-09-16 10:46:17 +03:00
Sulka Haro 663f439137 Bump dev to 14.0.2 2020-09-13 14:54:21 +03:00
Sulka Haro 0c11bf05e4 Bump version to 14.0.1 2020-09-13 14:42:14 +03:00
Sulka HaroandGitHub 801900597a Optimize Nightscout database usage (#5947)
* On periodic polls, only load delta for CGM data, treatments and device statuses
* Serve basic CGM data API queries from in-memory cache. Increases the Nightscout memory footprint but should significantly reduce the Mongo load
* Serve device status, CGM and treatment records from memory cache
* Support count parameter in /profile
2020-09-09 20:11:57 +03:00
Ben West 46e3d8f37a Merge remote-tracking branch 'official/hotfix/2020-06-28/carelink' into wip/bridge-plugins/update
This is output of npm install --save.
2020-08-28 11:29:16 -07:00
Sulka Haro 293655984b Upgrade Helmet to 4.0.0 2020-08-19 11:21:56 +03:00
Sulka Haro f4f456a125 * Updated several packages to remove issues from NPM audit
* Fix excess logging in settings.js
* Removed heapdump package, which was causing issues for some users
2020-08-18 12:29:31 +03:00
Sulka HaroandGitHub 9b048dddb7 Fix audit errors, button order (#5694)
* * Update packages giving npm audit errors
* Fix Mongo test that broke after update (now uses async/await on getting the connection)
* Restore original navigation bar button order

* Disable Node 10 tests
2020-07-12 12:46:06 +03:00
Ben West 9528b79f0e npm install --save minimed-connect-to-nightscout@^1.4.0 2020-07-02 12:08:52 -07:00
Ben West 1062a0d66a prepare hotfix for MMConnect/EU - 2020-06-28
Prepare to handle issue #5719.  This patch adjusts dependencies to
target a community edition fork of minimed-connect-to-nightscout.  The
new dependency targets information provided to begin addressing
changes to Medtronic Carelink services starting late June 2020.
2020-06-29 13:35:30 -07:00
Ben West 0ae6431648 prepare hotfix for MMConnect/EU - 2020-06-28
Prepare to handle issue #5719.  This patch adjusts dependencies to
target a community edition fork of minimed-connect-to-nightscout.  The
new dependency targets information provided to begin addressing
changes to Medtronic Carelink services starting late June 2020.
2020-06-28 11:38:09 -07:00
Jeremy CunninghamandGitHub 7c5a69dd9a Fix d3 portrait to landscape brush failure (#5638)
* fix d3 portrait to landscape brush failure

* fix client.renderer.test for highlighBrushPoints function prototype change

* fix highlightBrush

* move brush reset inside check for valid brush
2020-05-05 22:13:21 +03:00
Sulka Haro 9611373924 Merge branch 'master' into dev for release 2020-02-22 17:23:45 +02:00
Sulka HaroandGitHub 64663d2bfc Send coverage reports to Codacy (#5444)
* Send coverage reports to Codacy

* Action secrets may not be read from forks :(

* Let's see if this fixes the path & key passing

* Ok one more try for the Actions env

* Run tests and coverage separately

* Try increasing the admintools test runtime for Node 10

* Run tests only once
2020-01-12 18:49:19 +00:00
Petr OndrusekandSulka Haro 2f60d8d6a1 Api3 output renderers (#5425)
* APIv3: adding framework for various output renderers

* APIv3: adding xml output renderer

* APIv3: adding csv output renderer

* APIv3: documenting supported output renderers

* APIv3: testing output renderers
2020-01-12 15:16:52 +00:00
Sulka Haro 14e8c8c229 Bump version to 13.0.2-dev 2019-12-18 09:07:04 +02:00
Sulka HaroandGitHub f57ccb8ed4 Release 13.0.1 (#5329)
* Release ref update v2 (#5301)

* Updated release name and number

* Added missing version number

* Added missing version number

* Fix auth dialog sizing error (#5315)

* Fix auth dialog sizing error (#5314)

* Fix auth dialog sizing error

* Fix Client Init After Auth

(cherry picked from commit 1bf416c3bb964ed555850c3fc55977d69980b8e5)

* update NS minor version
2019-12-18 08:56:48 +02:00
Jeremy CunninghamandSulka Haro 721aa0226c Fix auth dialog sizing error (#5314)
* Fix auth dialog sizing error

* Fix Client Init After Auth

(cherry picked from commit 1bf416c3bb964ed555850c3fc55977d69980b8e5)

* update NS minor version
2019-12-18 08:55:09 +02:00
Sulka Haro 07b528cf30 Bump version to 13.0.0 2019-12-16 20:28:41 +02:00
Sulka Haro 13758709a1 Fix issues from npm audit 2019-12-14 16:31:54 +00:00
Sulka Haro 8194a872ed Remove the leading 0 from the version, so we can comply to how version numbering should really work 2019-12-06 12:44:14 +02:00
Sulka Haro d05c1603d5 Fix dependency vulnerabilities 2019-12-06 12:31:09 +02:00
Sulka Haro 9c42fed941 Update node pushover library to fix crash in case Pushover service is down 2019-10-30 09:26:05 +02:00
Sulka HaroandGitHub e10d4838a8 Fix tests failing in dev (#5127)
* * Fix reporting test to match the new output
* Fix number formatter to return the expected 0 when data is NaN
* Remove excessive logging during test runs from cob plugin

* Run all tests in one go

* Fixes D3 invocations for tests. Note this also removes transition timers (most of which seemed to be timed so fast they actually had no effect as the timer was faster than what it takes to draw a frame in Nightscout)

* Run tests independently

* Try not running tap-set-exit

* Remove tap-set-exit
2019-10-22 00:10:06 +03:00
Jeremy CunninghamandPieterGit b8f28b0586 fix(d3): D3 libarry upgrade (lib for visualizing data such as main view, graphs, etc.) (#5081)
* initial commit for d3 upgrade

* d3 v5 mostly working except brush

* more work on the brush

* brush and layout mostly working now

* make open-right and open-left lines visible

* make brush selection hidden

* fix open-right, open-top, and now-line in retro mode

* fix setting brush to now

* fix updateBrushToNow to set start correctly

* add extent to updateBrushToNow

* fix inRetro to use dataExtent instead of domain

* move a debug log message to better location

* debug for brush movements

* cleanup adjusted range vs. brushed range

* fix syntax error

* remove transitions for brush movements

* log message for dataUpdate

* fix updating brush range when new data arrives

* fix keeping up with data when not in retro

* keep brush range at focusRangeMS during update

* fix variable name error

* keep chart in sync with current time when not in retro

* use short transition time

* test no opacity changes

* remove one more highlight and use small transition duration

* fix race condition

* fix for uncommanded going to retro

* fix syntax error

* update chart scales when new data arrives in retro mode

* Use consistent transition for scroll

* clean chart.updateContext

* comment out debug messages

* remove unused variable

* update renderer to account for no structure arg for d3 attr

* fix syntax error

* one more syntax error

* use requestAnimationFrame

(cherry picked from commit b610485597b2e9ecf46471994980136d3c17deec)

* forgot to update current scroll data

(cherry picked from commit 1ab26522cd4abd3fb77a76964469200fc50dc555)

* remove extra treatment circles

* try using class for selection

(cherry picked from commit 92f678c6fe8e2bb700dc61ab56a71d483c5a9988)

* reduce update required for focus circles

(cherry picked from commit 46aab643125c2a083807627b9fb6052faef2134f)

* reduce update required for focus treatments

(cherry picked from commit 23ba5c4bea4bf2ff75f2296e1edc606f311ef7fe)

* fix update prepare treat circles

(cherry picked from commit afcbbab40fe0c93e26e97152513845cf2c5ecf6f)

* use _id for treatments key

* do not use opacity for past entry circles

* replace scale.linear with scaleLinear

see https://github.com/d3/d3/blob/master/CHANGES.md#scales-d3-scale

(cherry picked from commit 3445eeeedd1c0d863ca5210d4cd32994a9da4d49)

* d3 upgrade axis

(cherry picked from commit 06a8a9283100a980ccb5bed7920bce96a5b138cc)

* d3 upgrade axis

(cherry picked from commit 1ac583ce2b1d0796f8d8f0d5f9b5ee29a051af1e)

* fix tooltip location

* fix plugin tooltip location

* update reports for d3 v5

* fix inner radius default for insulin distribution pie

* fix dynamic scaling issues

* fix single click scroll

* Fix font size on axis labels

* Render ticks on top of everything

* fix click to scroll jankiness

* move loading finished to the bottom of updateHeader
2019-10-21 14:06:05 +02:00
Aria StewartandSulka Haro bdd3473ec9 Use tap-set-exit to make failing tests actually fail CI (#5109) 2019-10-21 09:03:26 +03:00
Pete SchwambandSulka Haro d729b0eb00 Remote Loop overrides (#5043)
* skeleton code

* publishing

* Activating remote override

* Fix event types refresh, and fix custom duration

* Don't create treatment record; loop will

* Additional override details for treatment tooltip

* Pass client from careportal

* attempt at moving endpoint to api/v2

* Add bodyParser to v2/notifications

* Remove notifications api from v1

* Remove unused var

* Better error handling and reporting

* Add documentation for new loop plugin vars

* Handle indefinite duration overrides

* Move label of indeterminate duration override to now line when start is offscreen

* test

* Use separate representation for indefinite duration treatments

* fix display for finite duration treatments

* Fix re-use of elements when treatment ordering changes

* Handle more rect transition() updates

* Add check for LOOP_DEVELOPER_TEAM_ID

* Support configuration of aps-environment via environment variable.

* Fix expiration date math; was essentially preventing retries
2019-10-16 12:35:22 +03:00
Sulka Haro dfbcf62e8e Update release to 0.12.6-dev 2019-10-06 23:07:34 +03:00
Sulka Haro d59eafa0a1 Point release to help users upgrade to the new minimed connect version 2019-10-06 22:46:46 +03:00
Sulka Haro fdfb2249f9 Bump version to 0.12.4 for release 2019-09-18 21:23:11 +03:00
Sulka HaroandGitHub 8ce6e24348 Use Babel to transpile the client bundle to be compatible with old browsers (tested with iOS 9) (#4932) 2019-09-17 20:38:42 +03:00
PieterGitandGitHub 20823d3baa upgrade minimed-connect-to-nightscout to fix GuardianConnect for US servers (and update npm dependencies) (#4915)
* upgrade minimed-connect-to-nightscout to 1.30to  fix GuardianConnect for US servers,

see https://github.com/mddub/minimed-connect-to-nightscout/pull/13

* npm update to fix security issue

fixes https://nodesecurity.io/advisories/1118 (Arbitrary Code Execution in eslint-utils

* update to minimed-connect-to-nightscout 1.3.1

* fix typo and make more clear we don't release with insecure dependencies
2019-08-24 18:03:48 +02:00
Sulka Haro 9897926864 Bump version to 0.12.4-dev 2019-07-30 22:17:25 +03:00
Sulka HaroandGitHub 7947e30071 feat: API improvements (#4806)
* Use moment.js to parse dates, with better error messaging for unparseable dates

* Oops fix a bug here

* Add logging for unparseable dates

* Output a better error

* * Re-enabled heap dumps
* Improved API documentation
2019-07-29 17:20:49 +03:00
PieterGit 8d6e5514d2 allow Azure with Node ^10.15.2 and allow Node 12 2019-07-22 01:50:52 +02:00
Sulka Haro 629e3754f3 Bump version number to 0.12.1 2019-07-20 13:59:44 +03:00
Sulka Haro ad1913182e * Bump version to 0.12.0 for release
* update package.json and nvmrc to point to latest 10 series LTS node
* Add my.env.template, referred to in dev docs
2019-07-19 10:13:36 +03:00
Sulka Haro 851b08ff4c Fix issues found with linting in the server code & update module versions based on npm audit 2019-07-19 09:46:40 +03:00