Sulka Haro
1c5a7e64df
Fix Procfile, Dockerfile
2021-02-02 20:13:57 +02:00
Sulka Haro
b3ccaf3505
Bump version to 14.2.0
2021-02-02 19:57:10 +02:00
Sulka Haro and GitHub
d7e011d8f5
Refactoring organisation, bundling and security improvements ( #6765 )
...
* * Simplified bundling to just one bundle
* Removed cache invalidation token from bundling
* Generate strong persistent random string on deploy to use for JWT signing
* WIP: moving api-secret and JWT signing to a separate centralized security component
* Moved some server components away from project root
* Fix issues reported by linter
* Ignore detect-object-injection everywhere but the client
* Make admin message button red
* Remove alarms for some security alerts on code
* api_secret is now fully contained in the enclave
2021-02-02 19:53:30 +02:00
Sulka Haro and GitHub
3ab718ca37
New Crowdin updates ( #6833 )
...
* New translations en.json (Portuguese)
* New translations en.json (Spanish)
* New translations en.json (Hebrew)
* New translations en.json (Japanese)
* New translations en.json (Arabic)
* New translations en.json (Hindi)
* New translations en.json (Croatian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Slovenian)
* New translations en.json (Polish)
* New translations en.json (Dutch)
* New translations en.json (Korean)
* New translations en.json (Italian)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Hungarian)
* New translations en.json (Finnish)
* New translations en.json (German)
* New translations en.json (Danish)
* New translations en.json (Czech)
* New translations en.json (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Greek)
* New translations en.json (Portuguese)
* Update source file en.json
* New translations en.json (Finnish)
* New translations en.json (German)
2021-02-02 19:35:13 +02:00
6643eb9c20
Added a specific rendering for BG Check events on the Day to Day report. ( #6530 )
...
Added an option to hide BG Check and other events on the Day to Day report.
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-02-02 19:23:08 +02:00
d762694b83
Bolus settings ( #6834 )
...
* Add bolus plugin and restructure rendering settings
* Add setting to prevent automated micro boluses from triggering notifications and snoozing alarms
* clean up
* Small change to the bolus-settings branch so it supports flexible configuration that enables the old behavior
* Translations
* Fix settings default
Co-authored-by: Jason Calabrese <jason@cbrese.com >
2021-02-02 19:14:32 +02:00
84ac8f7e74
replace deprecated bodyParser ctor ( #6819 )
...
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-02-01 17:59:10 +02:00
Sulka Haro and GitHub
6587293855
New Crowdin updates ( #6804 )
...
* New translations en.json (Hebrew)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Greek)
* New translations en.json (German)
* New translations en.json (Dutch)
* New translations en.json (Swedish)
* New translations en.json (Czech)
* New translations en.json (Hungarian)
* New translations en.json (Croatian)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Russian)
* New translations en.json (Chinese Simplified)
* New translations en.json (Bulgarian)
* New translations en.json (Greek)
* New translations en.json (Greek)
* New translations en.json (Portuguese)
* New translations en.json (Portuguese)
* New translations en.json (Portuguese)
* New translations en.json (Portuguese)
2021-02-01 17:51:17 +02:00
Sulka Haro and GitHub
04ca7b240b
Unit test teardown improvements ( #6821 )
...
* Clear module require()s between tests
Clear profile cache between tests
* Fix authentication for careportal test
* Add logging to see where the careportal test gets to
* Even more logging for headless setup
* Change to use before and after in careportal test
* Add time logging
* Bump headless setup time to a full minute
* More timers to figure out what's slow in GA
* Bump up timeout on failing test
2021-02-01 17:50:48 +02:00
31e2010608
Update mongo-storage.js ( #6811 )
...
- use default time outs
- remove MongoDB_URI (including user name and password) from public error message
- fix typos
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-02-01 17:23:05 +02:00
b188a2a565
#6701 Report storage tests ( #6814 )
...
* #6701 Report storage tests
Functional and unit tests
* #6701 Test cleanup
* #6701 js-storage teardown
The first time js-storage is required it evaluates if it's running in the browser or not: https://github.com/julien-maurel/js-storage/blob/master/js.storage.js#L423 and will define the localstorage getters and setters accordingly. This becomes an issue if testing localstorage between UI and non-UI tests. reportstorage.test.js was requiring it before hashauth.test.js causing a conflict.
* #6701 false positive test
The page isn't refreshing
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-01-31 12:41:00 +02:00
Caleb and GitHub
cc873d8127
Typo correction for translation ( #6805 )
2021-01-29 10:40:34 +02:00
bassettb and GitHub
c91ec78af4
Round insulin value in treatment tooltip ( #6776 )
...
* rename toFixedMin to toRoundedStr
* round the insulin value
2021-01-26 22:08:00 +02:00
Sulka Haro and GitHub
034eea9422
Changes the bundling so the site works on old Safari versions ( #6800 )
...
* Changes the bundling so the site works on old Safari versions
* Fix quotes
* Cache babel output for faster development
2021-01-26 22:05:28 +02:00
Sulka Haro and GitHub
1372d0c7c5
Catch error from websocket device status dedupe ( #6777 )
...
* Catch error from websocket device status dedupe
* Patch two more locations that don't catch errors correctly
2021-01-26 22:04:43 +02:00
Sulka Haro and GitHub
c1dce74e50
New Crowdin updates ( #6769 )
...
* New translations en.json (Russian)
* New translations en.json (Romanian)
* New translations en.json (Bulgarian)
* New translations en.json (Finnish)
* New translations en.json (Hindi)
* New translations en.json (French)
* New translations en.json (Swedish)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Italian)
* New translations en.json (Slovenian)
* New translations en.json (Slovenian)
* New translations en.json (Arabic)
* New translations en.json (Greek)
* New translations en.json (French)
* New translations en.json (Bulgarian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Bulgarian)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (French)
* New translations en.json (Croatian)
* New translations en.json (Italian)
* New translations en.json (French)
* New translations en.json (Italian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (German)
* New translations en.json (Hebrew)
* New translations en.json (Italian)
* New translations en.json (Hindi)
* New translations en.json (Croatian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Slovenian)
* New translations en.json (Polish)
* New translations en.json (Dutch)
* New translations en.json (Korean)
* New translations en.json (Japanese)
* New translations en.json (Hungarian)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Finnish)
* New translations en.json (German)
* New translations en.json (Danish)
* New translations en.json (Czech)
* New translations en.json (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Greek)
* New translations en.json (Arabic)
2021-01-26 22:00:57 +02:00
d51a6745a3
#6701 Save report preferences ( #6761 )
...
Proof of concept to demonstrate saving report preferences
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-01-26 21:42:26 +02:00
85aea0fec5
Added sensor code transmitter ID fields ( #6780 )
...
* Copied #5442 - Duplicated @c-robertson's work
* Added tx id and sensor code to tooltip
* Added swagger docs for the new fields
* Added missing language keys
* Added new fields to sage plugin display
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-01-26 21:33:10 +02:00
Caleb and GitHub
5aa98eeaf6
Implemented #6720 - Added es_ES template for Alexa ( #6779 )
2021-01-21 10:51:58 +02:00
Sulka Haro and GitHub
8500a1b33d
New Crowdin updates ( #6713 )
...
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Hebrew)
* New translations en.json (Hungarian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Slovenian)
* New translations en.json (Polish)
* New translations en.json (Dutch)
* New translations en.json (Korean)
* New translations en.json (Japanese)
* New translations en.json (Italian)
* New translations en.json (Finnish)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (German)
* New translations en.json (Danish)
* New translations en.json (Czech)
* New translations en.json (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Greek)
* New translations en.json (Croatian)
* Update source file en.json
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Greek)
* New translations en.json (French)
* New translations en.json (Dutch)
* New translations en.json (Greek)
* New translations en.json (Swedish)
* New translations en.json (Czech)
* New translations en.json (Russian)
* New translations en.json (Romanian)
* Update source file en.json
* New translations en.json (Hebrew)
* New translations en.json (Hungarian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Slovenian)
* New translations en.json (Polish)
* New translations en.json (Dutch)
* New translations en.json (Korean)
* New translations en.json (Japanese)
* New translations en.json (Italian)
* New translations en.json (Finnish)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (German)
* New translations en.json (Danish)
* New translations en.json (Czech)
* New translations en.json (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Greek)
* New translations en.json (Croatian)
* New translations en.json (Romanian)
* New translations en.json (Hebrew)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Hungarian)
* New translations en.json (Hebrew)
* New translations en.json (Hungarian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Slovenian)
* New translations en.json (Polish)
* New translations en.json (Dutch)
* New translations en.json (Korean)
* New translations en.json (Japanese)
* New translations en.json (Italian)
* New translations en.json (Finnish)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (German)
* New translations en.json (Danish)
* New translations en.json (Czech)
* New translations en.json (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Greek)
* New translations en.json (Croatian)
* Update source file en.json
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Greek)
* New translations en.json (Swedish)
* New translations en.json (German)
* New translations en.json (Russian)
* New translations en.json (Czech)
* New translations en.json (German)
* New translations en.json (Hungarian)
* New translations en.json (Hungarian)
* New translations en.json (Dutch)
* New translations en.json (Hebrew)
* New translations en.json (Russian)
* New translations en.json (French)
* New translations en.json (Spanish)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Russian)
* New translations en.json (French)
* New translations en.json (Spanish)
* New translations en.json (Danish)
* New translations en.json (Portuguese, Brazilian)
2021-01-17 20:32:40 +02:00
Sulka Haro
175e21c221
Merge branch 'master' into dev
2021-01-17 20:10:32 +02:00
Sulka Haro
14872695ba
Move to package-lock, as per #5735
2021-01-17 20:08:14 +02:00
f6f7e18888
Allow api3 behind reverse proxy ( #5631 )
...
* Allow api3 behind reverse proxy
* fix test
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-01-17 19:46:28 +02:00
ccd591d4ef
Add eslint security plugin ( #5450 )
...
Co-authored-by: Jakob Sandberg <jakobs@zillowgroup.com >
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-01-17 19:45:42 +02:00
3ee90d6927
feat: disable pump battery alarms at night option ( #5359 )
...
* feat: add feature to disable pump battery alarms at night
* add timezone handling for server side
* Update pump.test.js
* Update pump.test.js
* Update pump.test.js
Co-authored-by: Jeremy Cunningham <jpcunningh@gmail.com >
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-01-17 15:31:31 +02:00
Sulka Haro and GitHub
647ed20de1
Clean statics & bundle more ( #6745 )
...
* * Remove unused old version of MFB
* Bundle food, profile editor
* Clean up the static folders
* Fix tests
2021-01-17 12:20:48 +02:00
Sulka Haro
c0b96a714e
Fix admin localization
2021-01-14 09:29:00 +02:00
Sulka Haro and GitHub
44c544a9ac
Support pump status upload display override ( #6698 )
2021-01-12 16:45:23 +02:00
Sulka Haro
e893d73e31
Cherry picking CI flow file so users don't get a CI build fail after merging to latest release
2021-01-12 14:08:06 +02:00
Stephen Brown II and GitHub
22c0071205
Don't run docker push on forks ( #6718 )
...
Skip the docker push steps if the repo owner is not 'nightscout'.
2021-01-09 13:54:41 +11:00
Sulka Haro
1351d35066
* Improved internal API for injecting values into localization keys
...
* Fix a hard to translate key that was split to two separate values
2021-01-08 16:25:51 +02:00
cfdbaa8bbd
APIv3: wrapping all results in JSON ( #6703 )
...
* APIv3: isolating documents from tests (not allowing clashes of calculated identifiers)
* removing unused async keyword
* fixing api v3 swagger and moving it to /api3-docs
* APIv3: adding cachedCollection stub of cachedCollection storage implementation
* APIv3: mongo cachedCollection storage implementation
* APIv3: testing and debugging cache updates
* APIv3: more testing on cache updates
* APIv3: fixing bad async functions
* APIv3: finishing cache invalidation tests
* APIv3: wrapping VERSION result
* APIv3: wrapping STATUS result
* APIv3: wrapping DELETE result
* APIv3: wrapping READ result + partially SEARCH and HISTORY
* APIv3: wrapping CREATE result
* APIv3: wrapping UPDATE + PATCH result
* APIv3: wrapping LAST MODIFIED result
* APIv3: updating swagger doc
* APIv3: updating tutorial.md
* APIv3: tuning tests
* APIv3: merge dev
Co-authored-by: Petr Ondrusek <petr.ondrusek@seznam.cz >
Co-authored-by: Petr Ondrůšek <petr.ondrusek@okin.eu >
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-01-07 22:58:23 +02:00
Sulka Haro and GitHub
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
df6d9aadc3
Re-enable partial report test
2021-01-07 14:45:13 +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
Sulka Haro and GitHub
3eeacc3a9f
Merge pull request #6650 from nightscout/dev
...
Release 14.1.0
14.1.0
2021-01-06 18:50:06 +02:00
Sulka Haro
46e4d172bb
* Additional unit test for the authorization API
...
* Stop logging the API SECRET
2021-01-04 23:43:16 +02:00
Sulka Haro and GitHub
82a9e18cc8
New Crowdin updates ( #6700 )
...
* New translations en.json (Hebrew)
* New translations en.json (Hungarian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Slovenian)
* New translations en.json (Polish)
* New translations en.json (Dutch)
* New translations en.json (Korean)
* New translations en.json (Japanese)
* New translations en.json (Italian)
* New translations en.json (Finnish)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (German)
* New translations en.json (Danish)
* New translations en.json (Czech)
* New translations en.json (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Greek)
* New translations en.json (Croatian)
* Update source file en.json
* New translations en.json (Dutch)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Czech)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (German)
2021-01-04 19:10:47 +02:00
Caleb and GitHub
3c61266118
Removed duplicate translation key ( #6699 )
2021-01-02 12:28:03 +02:00
Caleb and GitHub
773f89ec5a
Added support for multiple uploaders in virtual assistant delta calculation ( #6559 )
...
* Added support for multiple uploaders in delta calculation
* Moved moment creation
* Moved delta stuff into bgnow plugin
* Typo
* Removed old implementation
* Removed accidental translations
* Added new translation key
2021-01-02 12:26:22 +02:00
405eb0d86d
german translations template for googlehome integration ( #6674 )
...
Co-authored-by: tanja3981 <tanja3981@users.noreply.github.com >
2021-01-01 22:53:36 +02:00
Sulka Haro and GitHub
923cdad6a2
New Crowdin updates ( #6675 )
...
* New translations en.json (Hebrew)
* New translations en.json (Hungarian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Slovenian)
* New translations en.json (Polish)
* New translations en.json (Dutch)
* New translations en.json (Korean)
* New translations en.json (Japanese)
* New translations en.json (Italian)
* New translations en.json (Finnish)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (German)
* New translations en.json (Danish)
* New translations en.json (Czech)
* New translations en.json (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Greek)
* New translations en.json (Croatian)
* New translations en.json (Dutch)
* New translations en.json (Greek)
* New translations en.json (Romanian)
* New translations en.json (Finnish)
* Update source file en.json
* New translations en.json (Romanian)
* New translations en.json (Romanian)
* New translations en.json (Finnish)
* New translations en.json (Romanian)
* New translations en.json (Romanian)
* New translations en.json (Turkish)
* Update source file en.json
* New translations en.json (Hebrew)
* New translations en.json (Hungarian)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Slovenian)
* New translations en.json (Polish)
* New translations en.json (Dutch)
* New translations en.json (Korean)
* New translations en.json (Japanese)
* New translations en.json (Italian)
* New translations en.json (Finnish)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (German)
* New translations en.json (Danish)
* New translations en.json (Czech)
* New translations en.json (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Romanian)
* New translations en.json (Russian)
* New translations en.json (Swedish)
* New translations en.json (Greek)
* New translations en.json (Croatian)
* New translations en.json (Greek)
* New translations en.json (French)
* New translations en.json (Czech)
* New translations en.json (Norwegian Bokmal)
* Update source file en.json
* New translations en.json (Romanian)
* New translations en.json (Norwegian Bokmal)
* New translations en.json (Russian)
* New translations en.json (Finnish)
* New translations en.json (Czech)
* New translations en.json (Czech)
* Update source file en.json
2021-01-01 19:39:07 +02:00
6b28a148ee
APIv3: Cache invalidation + refactoring ( #6688 )
...
* APIv3: isolating documents from tests (not allowing clashes of calculated identifiers)
* removing unused async keyword
* fixing api v3 swagger and moving it to /api3-docs
* APIv3: adding cachedCollection stub of cachedCollection storage implementation
* APIv3: mongo cachedCollection storage implementation
* APIv3: testing and debugging cache updates
* APIv3: more testing on cache updates
* APIv3: fixing bad async functions
* APIv3: finishing cache invalidation tests
Co-authored-by: Petr Ondrusek <petr.ondrusek@seznam.cz >
Co-authored-by: Petr Ondrůšek <petr.ondrusek@okin.eu >
Co-authored-by: Sulka Haro <sulka@sulka.net >
2021-01-01 19:31:19 +02:00
Lennart Goedhart and GitHub
411463e595
Replace Travis build with a GitHub Action ( #6690 )
...
* Create Docker release workflow for GA
* Remove Travis workflow
* Remove dependency on Makefile
* Update default environment to Node 14
* Use git SHA instead of version for `dev` images
2021-01-01 21:40:51 +11:00
Ben West
76f198a8cf
Merge branch 'wip/bewest/mmconnect' of github.com:nightscout/cgm-remote-monitor into wip/bewest/mmconnect
2020-12-30 14:00:51 -08:00
Ben West and GitHub
e3784ea44c
Merge branch 'dev' into wip/bewest/mmconnect
2020-12-30 14:00:01 -08: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
Sulka Haro
f36048dc14
Fix a bug with auth calls that send a false API secret
2020-12-27 13:48:59 +02:00
Sulka Haro
186e9786b3
Rename Weekly Success report to Weekly Distribution
2020-12-24 11:26:06 +02:00
Ben West and GitHub
4b98d355e0
Merge branch 'dev' into wip/bewest/mmconnect
2020-12-22 09:50:45 -08:00