Commit Graph
100 Commits
Author SHA1 Message Date
Sulka HaroandGitHub 18188105d1 Merge pull request #6148 from nightscout/dev
Nightscout release 14.0.6 Liquorice
2020-09-28 13:08:31 +03:00
Sulka Haro 48f5578e8a Make empty cache detection a bit more aggressive to account for cache flush and data insert happening concurrently 2020-09-28 11:12:42 +03:00
Sulka HaroandGitHub a8b53f54e5 Support uploading device statuses in batches (#6147)
* Support uploading device statuses in batches
* Correctly report batch insertion results
2020-09-28 10:51:27 +03:00
Sulka Haro 0dd1254bf4 Bump version to 14.0.6 2020-09-28 09:36:21 +03:00
Sulka HaroandGitHub 9315b06283 Merge pull request #6135 from nightscout/dev
Nightscout 14.0.5 Liquorice
2020-09-27 18:00:01 +03:00
Sulka Haro 4ba636d0b2 Fix MONGODB_URI reference in error message 2020-09-27 17:33:11 +03:00
Sulka Haro 0670c5a913 Add error cat to error page 2020-09-27 17:23:49 +03:00
Sulka HaroandGitHub dfa86a9c6a Fix memory leak and cache update issues in 14.0.4 (#6133)
* Fix a memory leak in 14.0.4
* Fix linter error in ddata.js
* Move data retention periods to caching
* Update _id of inserted entries and device status so merging to cache works correctly
* Reset the data in ddata before updating
* Fix typo on entry cache retention period
* Have device status cache retention period follow configuration
* Fix _id injection in treatments
2020-09-27 17:16:42 +03:00
Sulka Haro 48096fc30b Merge branch 'master' into dev 2020-09-27 15:56:20 +03:00
Sulka HaroandGitHub 6d6cf31011 Update --individual-troubleshooting-help.md 2020-09-27 14:56:22 +03:00
Sulka HaroandGitHub 5af8d6358c Update --bug-report.md 2020-09-27 14:54:43 +03:00
Sulka HaroandGitHub 4d2a731a53 Update --feature-request--.md 2020-09-27 14:54:33 +03:00
Sulka Haro 54a5b35578 Remove require statement breaking deploys 2020-09-27 12:01:48 +03:00
Sulka Haro 84c245c90f Fix tests 2020-09-25 18:56:36 +03:00
Sulka Haro eec131bc3b Add file missing from last commit 2020-09-25 18:43:51 +03:00
Sulka Haro d3c1613132 Less intimidating error page on start, which also checks for api_secret 2020-09-25 18:43:31 +03:00
Sulka Haro a8956bc4cc Don't report an error on every reconnect 2020-09-25 14:07:46 +03:00
Sulka Haro f8461655bc * Fix security test
* Change boot and caching to expose Mongo connection errors
2020-09-25 12:53:31 +03:00
Sulka Haro 8ac973471b Make settings parsing whitespace tolerant 2020-09-25 10:37:23 +03:00
Sulka Haro 07eee47257 Fix Pebble API detecting mmol units from settings 2020-09-24 22:31:56 +03:00
Sulka Haro de792d244d Bump version to 14.0.5 and fix #6050 2020-09-24 22:06:02 +03:00
Sulka HaroandGitHub a95ad79f06 Merge pull request #6078 from nightscout/dev
Nightscout 14.0.4 Liquorice
2020-09-23 22:30:36 +03:00
Sulka Haro 3f1081e3aa Bump version to .4 2020-09-22 12:44:31 +03:00
Sulka HaroandGitHub cde9aa3835 Merge pull request #6056 from nightscout/cache_invalidation
Refactor in-memory caching
2020-09-22 11:51:14 +03:00
Sulka Haro 54008a7122 Remove excess logging 2020-09-22 11:14:13 +03:00
Sulka Haro 1059232f16 * Add cache update events to websocket API
* Remove the validation for created_at in REST API ;(
2020-09-21 20:46:53 +03:00
Sulka Haro a75c5a300a Fix data order for REST API 2020-09-20 19:14:33 +03:00
Sulka Haro f878ce115b Add support for CGM data and device statuses. Refactor dataloader to use the new model and reduce queries back down 2020-09-20 18:36:19 +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 HaroandGitHub 6e50c2356d Merge pull request #6009 from nightscout/dev
Release 14.0.3 Liquorice
2020-09-16 16:35:51 +03:00
Sulka Haro a0043ec206 Bump treatments default limit default to 1000 objects for queries that include other query parameters 2020-09-16 16:10:44 +03:00
Sulka Haro 8a1d6bf84a Fix reports unit test 2020-09-16 11:46:22 +03:00
Sulka Haro b62ab3c21a Bumped up the number of treatments loaded / day for reporting 2020-09-16 11:21:04 +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 HaroandGitHub 92f23e6616 Merge pull request #6004 from nightscout/dev
Release 14.0.2
2020-09-16 10:11:22 +03:00
Sulka Haro fbe3e9b571 One more increase to treatment load time to cover long overrides 2020-09-16 09:52:42 +03:00
Sulka Haro 0a79cb1e2d Bump treatment delta loading to four hours 2020-09-15 15:39:25 +03:00
Sulka Haro b6201647df When merging inserts and updates from the database, ensure we always use the new data over the old data 2020-09-15 14:54:38 +03:00
Sulka Haro 5f0b77bc21 * Remove unnecessary logging to help with Papertrail limits
* Load more treatments and entries to fix caching issues (need to add better cache invalidation to really fix this)
2020-09-15 10:07:31 +03:00
Sulka Haro 685ae5cd5d Cleaned old appcache references 2020-09-14 19:32:29 +03:00
Sulka Haro cd256ab1bc Serve Last-Modified header for the service worker to help with some browsers misdetecting caching 2020-09-14 19:29:53 +03:00
Sulka HaroandGitHub 345b171c2c Merge pull request #5980 from nightscout/absolute_amount
Load absolute dosing from amount field
2020-09-14 16:08:00 +03:00
Sulka HaroandGitHub 5cdba4a001 Merge pull request #5987 from jpcunningh/fix-recursion
Fix Brushing Recursion Error
2020-09-14 16:07:45 +03:00
Sulka Haro 663f439137 Bump dev to 14.0.2 2020-09-13 14:54:21 +03:00
Sulka HaroandGitHub 4f85e19461 Merge pull request #5984 from nightscout/dev
Release 14.0.1
2020-09-13 14:48:57 +03:00
Sulka HaroandGitHub f04e7d7ca0 Merge pull request #5983 from pazaan/pazaan/fix-iquorice-treatment-report
Fix `Treatments` report for `mmol/L` users
2020-09-13 14:42:35 +03:00
Sulka Haro 0c11bf05e4 Bump version to 14.0.1 2020-09-13 14:42:14 +03:00
Sulka HaroandGitHub e54a6b8c10 Merge pull request #5526 from nightscout/dev
Release 14.0.0
2020-09-13 10:34:42 +03:00
Sulka Haro 14621a4f29 Update README to point to new docs 2020-09-13 10:03:36 +03:00
Sulka Haro 57e33a0fe1 Normalize treatments to support absolute doses from the amount field 2020-09-12 10:38:35 +03:00
Sulka Haro 5aef24545b Remove logging statements 2020-09-10 19:55:38 +03:00
Sulka Haro c113424045 Bumping version to 14.0.0 given this is a relatively large update and we want people on Atlas to all migrate to this version 2020-09-10 09:29:06 +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
Sulka Haro 6613e761cf feat Add robots.txt to disallow site crawling 2020-08-30 10:55:37 +03:00
Sulka HaroandGitHub 0c229638f0 Re-enable CSP configuration (#5867)
* Re-enable CSP configuration
2020-08-22 10:49:28 +03:00
Sulka HaroandGitHub d504a66187 Split view CSP support (#5864)
* Parse split view frames into frameAncestors
2020-08-21 11:09:18 +03:00
Sulka Haro 3e1cc14b99 Serve the CSP to everyone 2020-08-20 17:21:04 +03:00
Sulka HaroandGitHub fd90f4e58b CSP and service worker improvements (#5856)
* Add connectSrc for Safari compatibiity
* Add new font URL for Google Fonts compatibility
* Reload on re-registering the worker
* Change Mongo version in github to fix builds
2020-08-20 17:15:29 +03:00
Sulka Haro 293655984b Upgrade Helmet to 4.0.0 2020-08-19 11:21:56 +03:00
Sulka Haro 359e6a6128 * Limit the default number of profiles returned by the API to fix issues with users who are syncing a large amount of profiles from an APS.
* Fix profile reporting
2020-08-19 11:03:21 +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 Haro b8e69d90ae Fix temporary target cancellation 2020-08-18 11:20:11 +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
Sulka HaroandGitHub 9236771b29 Sanitize data from manual careportal entries so only fields with actual data are sent to the server (#5619) 2020-05-05 22:18:42 +03:00
Sulka HaroandGitHub 4cdd00db40 Fix topbar collapse on small screens (#5562)
* Fix top bar collapsing on small screens

* Fix wide button array overflowing the button bar
2020-03-09 08:19:08 +02:00
Sulka Haro 9611373924 Merge branch 'master' into dev for release 2020-02-22 17:23:45 +02:00
Sulka Haro 32f4791ef1 Update version to 13.1.0 2020-02-22 17:17:18 +02:00
Sulka Haro 7d95b06c20 Fix settings test 2020-02-22 17:07:21 +02:00
Sulka Haro dcf8248a1b Add more variables to the special list 2020-02-16 22:46:40 +02:00
Sulka HaroandGitHub 729747a2f8 Allow flagging specific settings to be not exposed the /properties and /status APIs (#5525) 2020-02-16 14:30:15 +02:00
Sulka HaroandGitHub 77795cae5a Split view (#5518)
* Adds a 2, 3, 4 and 8 way split view option

* Updated description

* Generate the table on demand, so any number of sites from 1 to 8 generates a sensible layout

* Update readme & don't crash if a name is missing
2020-02-16 14:15:27 +02:00
Sulka Haro 765d7f8ea5 Fix: Round interporlated mg/dL value to an integer 2020-02-08 11:22:12 +02:00
Sulka HaroandGitHub 82f00763d6 Move app caching to a service worker (#5504)
* Move app caching to a webworker

* Code cleanup

* Code cleanup

* Make Codacy happy

* More parentheses
2020-02-05 08:16:25 +02:00
Sulka Haro baad198bd5 Fix earlier merge error with predictions having moved to the report bundle 2020-01-18 13:37:53 +02:00
Sulka Haro d095482c2c Run CI Action for Pull Requests 2020-01-14 08:05:51 -08: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
4f9f735164 Pr/5379 (#5441)
* 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

* Added handlers and translations for CGM info

* Defined translate()

* Fixed sensor state reference

* Improved wording for tx age response

* Improved wording for session duration response

* Updated documentation and templates

* Updated README.md TOC and a reference to it

* Added CGM battery info

* Added unit reference to CGM battery levels

* Added handlers and translations for CGM info

* Defined translate()

* Fixed sensor state reference

* Improved wording for tx age response

* Improved wording for session duration response

* Updated documentation and templates

* Updated README.md TOC and a reference to it

* Added CGM battery info

* Added unit reference to CGM battery levels

* Updated API reference in Google Home template

Co-authored-by: Caleb <inventor96@users.noreply.github.com>
2020-01-11 12:40:33 +00:00
Sulka HaroandGitHub df035779ab Merge pull request #5394 from nightscout/fix_timeago
Fix timeago alarms (again)
2020-01-01 13:30:55 +02:00
Sulka Haro 9817b03f57 Remove the server side test 2020-01-01 13:18:52 +02:00
Sulka Haro 44519b939a Fix timeago alarms (again). The changes to the rendered had an unintended consequence of triggering the timeago detection less frequently, causing the code to think the client has been hibernating, thus suppressing the alarms. The update changes the clock to be updated more frequently (this updating the hibernation detection), fixing the issue 2020-01-01 13:11:46 +02:00
Sulka HaroandGitHub 78be0f6a4d mgdl -> mg/dl (#3423) 2020-01-01 11:33:23 +02:00
Sulka HaroandGitHub aeebf0b8a9 Delta support in virtual assistants (#5376)
* Added support for asking delta

* Added time reference

* Made delta reading more informative

* Corrected time reference

* Try shortening the response

* Revert attempt

* Updated templates and documentation

* Minor improvement in response when delta is 0
2020-01-01 10:58:52 +02: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
Sulka HaroandGitHub 41ac93f721 Merge pull request #5113 from nightscout/dev
Nightscout Release 13.0.0
2019-12-17 16:36:05 +02:00
Sulka Haro 07b528cf30 Bump version to 13.0.0 2019-12-16 20:28:41 +02:00
Sulka Haro 1312256673 Unbreak JSON serialization failing on the /properties API due to circular data reference 2019-12-16 19:22:26 +02:00
Sulka HaroandGitHub 83c22f92ab Read BG targets in using mmol when server is in mmol mode (#5291)
* Read BG targets in using mmol when server is in mmol mode

* Change the Heroku template to match the new logic

* Deal with mmol targets being set using commas
2019-12-15 16:13:53 +02:00
Sulka Haro 13758709a1 Fix issues from npm audit 2019-12-14 16:31:54 +00:00
Sulka HaroandGitHub 04b47f6109 Add 4 hour option to view (#5289)
* Revert "change default back to 3HR"

This reverts commit e60ff3aa9d.

* shorten HR to H to avoid line-wrapping on mobile

* try larger label font: 35 instead of 25 (vs. 40)

* add comma

* deviceInfo.recent null check

* default back to 3, w/ 4 as an option

* re-add H to single-digit hours

* * Don't use cache manifest all all for development
* Add 4 hours option to view and change the labelling to remove language issues
* Have page scale the minor pill widths more gracefully
2019-12-14 16:07:47 +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 HaroandGitHub 7b58a2251f Use auth tokens in api-secret (#5214)
* Allow auth tokens to be passed in the api-secret header and used in the client in place of the API secret

* Fix unit test

* Fix admin test

* Reload page when token is used as a secret
2019-12-06 12:27:54 +02:00
Sulka HaroandGitHub 7f21e5a69e Merge pull request #5267 from apanasef/patch-25
Russian translation update edit
2019-12-06 12:25:12 +02:00
Sulka HaroandGitHub 7790f5c827 Merge branch 'dev' into patch-25 2019-12-06 12:24:42 +02:00
Sulka HaroandGitHub dc414b72b1 Merge pull request #5213 from jakebloom/hebrew
More hebrew translations
2019-12-06 12:19:46 +02:00
Sulka HaroandGitHub 57a3f2db23 Merge pull request #5186 from PetrOndrusek/api3-readonly-documents
API3 read-only documents
2019-12-06 12:19:14 +02:00
Sulka HaroandGitHub c153a965bc Merge pull request #5137 from inventor96/update-virtual-assistants-v2
Update virtual assistants v2
2019-12-06 12:18:26 +02:00
Sulka HaroandGitHub 8b19c53222 Merge pull request #5169 from PetrOndrusek/api-prev-versions
API versions list
2019-12-06 12:17:40 +02:00
Sulka HaroandGitHub 915d1aac9e Merge pull request #5211 from jpcunningh/dynamic-auth-width
Set Auth Dialog Width to Client Width Client Smaller Than Default Width
2019-12-06 12:05:40 +02:00