Skip to content
Merged
Show file tree
Hide file tree
Changes from 62 commits
Commits
Show all changes
318 commits
Select commit Hold shift + click to select a range
376a712
Logic correction
inventor96 Oct 21, 2019
e10d483
Fix tests failing in dev (#5127)
sulkaharo Oct 21, 2019
67e6cdd
Merge branch 'update-virtual-assistants' into update-virtual-assistan…
inventor96 Oct 21, 2019
2d07c54
Performance fixes (#5134)
sulkaharo Oct 22, 2019
fab2453
Don't load retro data if not needed. Merge retro data faster if it's …
sulkaharo Oct 22, 2019
bda8793
Updated Alexa template to comply with new requirements
inventor96 Oct 22, 2019
85b8a9e
Merge branch 'update-virtual-assistants-fix-alexa-rollup' into update…
inventor96 Oct 22, 2019
243ff2e
Load data in one pass (#5142)
sulkaharo Oct 23, 2019
4fd2843
D3 Upgrade Residual Cleanup (#5140)
jpcunningh Oct 23, 2019
4131080
fix forecast time max to client focusRangeMS instead of 30 min (#5143)
jpcunningh Oct 23, 2019
afd12fd
Fix initial forecast point display
sulkaharo Oct 23, 2019
8d33c6e
Fix forecast time randomly resetting to 30 minutes for openaps users
sulkaharo Oct 23, 2019
c1244ea
Stop Focus Circles from Eating Entries (#5145)
jpcunningh Oct 25, 2019
28b892e
Fix forecast behaviour (#5160)
sulkaharo Oct 28, 2019
9c42fed
Update node pushover library to fix crash in case Pushover service is…
sulkaharo Oct 30, 2019
5c5821a
adding list of supported APIs versions (GET /api/versions)
PetrOndrusek Oct 30, 2019
13dd0fa
Fixed a few missing definitions
inventor96 Nov 1, 2019
164ea06
API3: add locking documents using isReadOnly flag
PetrOndrusek Nov 2, 2019
c6e2b58
Translation improvements
inventor96 Nov 5, 2019
98b222c
Defined `translate()` in upbat plugin
inventor96 Nov 5, 2019
b9dc376
Migrated titles to use translate()
inventor96 Nov 5, 2019
c33aebb
Migrated static intent titles to use translate()
inventor96 Nov 5, 2019
43a32b3
Misc fixes for tests (even though they didn't fail 🤔)
inventor96 Nov 5, 2019
bde4750
Merge pull request #9 from inventor96/update-virtual-assistants-v2
inventor96 Nov 7, 2019
51a7c12
API3: testing isReadOnly feature
PetrOndrusek Nov 7, 2019
2050ddc
API3: more readonly field name variants
PetrOndrusek Nov 7, 2019
f0fb480
Added instructions on how to update skills/agents
inventor96 Nov 10, 2019
c4ee62b
fix devicestatus retro merge (#5193)
jpcunningh Nov 10, 2019
fcfc209
Turkish language updates (#5192)
XP2025A Nov 10, 2019
c6e7635
Fix falsely suspended timeago alarms (#5170)
fibbers Nov 10, 2019
1b8dc27
Adding to #5121 (#5126)
unsoluble Nov 10, 2019
d3bd77b
Extra info (delta and last measurement time) on clock view. (#5151)
ireneusz-ptak Nov 10, 2019
9877a51
Wording tweaks to go with #4810 (#4866)
unsoluble Nov 10, 2019
5bc6799
GitHub actions build (#5168)
sulkaharo Nov 10, 2019
dfd99fc
Merge branch 'master' into dev
sulkaharo Nov 10, 2019
d55b2d0
Move the units configuration detection to a place where it's guarante…
sulkaharo Nov 10, 2019
2e36813
Fix the check for environments without the units setting
sulkaharo Nov 10, 2019
f7750b3
Rename xdrip-js to xdripjs (#4959)
jpcunningh Nov 10, 2019
013300a
Added customization step for Alexa skill updates
inventor96 Nov 11, 2019
0c6929f
Language Update: added missing German Translations (#5172)
herzogmedia Nov 11, 2019
534c443
Don't use dynamic scale unless entries in database (#5195)
jpcunningh Nov 12, 2019
4342eaa
Language Matters: change "Normal" to "In Range" in glucose distributi…
sulkaharo Nov 13, 2019
78c0778
Added/updated TOC's
inventor96 Nov 15, 2019
beda457
set auth dialog width to client width if smaller than default width
Nov 15, 2019
4e48952
More hebrew translations
Nov 17, 2019
ba012f9
Added note regarding the use of the Alexa online simulator
inventor96 Nov 19, 2019
22c889d
fix focus scale hour format
Nov 22, 2019
ace12ca
trip open-top size to fit
Nov 23, 2019
b5b2f2a
fix clearing alarming when clearning CurrentSGV
Nov 23, 2019
73667f9
do not set direction if not current
Nov 23, 2019
c449d39
Handled 0 for pump reservoir
inventor96 Nov 23, 2019
72a89b6
rollback npm-shrinkwrap.json
Nov 28, 2019
b7ab2ad
Fix for distributionpage
whooze Nov 29, 2019
1e2e948
Russian translation update edit
apanasef Dec 4, 2019
c4f5ffa
Use default entries count instead of distributed number literals
Dec 5, 2019
3170345
Handle mmol to mgdl conversions with a constant reference (#5274)
jakobsandberg Dec 6, 2019
25a6345
Use default entries count instead of distributed number literals (#5273)
sulkaharo Dec 6, 2019
7db7167
Merge pull request #5236 from jpcunningh/d3-cleanup
sulkaharo Dec 6, 2019
301181c
Merge pull request #5249 from whooze/dev
sulkaharo Dec 6, 2019
dde86b0
Merge pull request #5233 from jpcunningh/fix-hour-format-on-focus-scale
sulkaharo Dec 6, 2019
915d1aa
Merge pull request #5211 from jpcunningh/dynamic-auth-width
sulkaharo Dec 6, 2019
8b19c53
Merge pull request #5169 from PetrOndrusek/api-prev-versions
sulkaharo Dec 6, 2019
c153a96
Merge pull request #5137 from inventor96/update-virtual-assistants-v2
sulkaharo Dec 6, 2019
57a3f2d
Merge pull request #5186 from PetrOndrusek/api3-readonly-documents
sulkaharo Dec 6, 2019
dc414b7
Merge pull request #5213 from jakebloom/hebrew
sulkaharo Dec 6, 2019
7790f5c
Merge branch 'dev' into patch-25
sulkaharo Dec 6, 2019
7f21e5a
Merge pull request #5267 from apanasef/patch-25
sulkaharo Dec 6, 2019
6abd6be
Added sanity check for the bridge interval value (#4717)
ahaarrestad Dec 6, 2019
7b58a22
Use auth tokens in api-secret (#5214)
sulkaharo Dec 6, 2019
d05c160
Fix dependency vulnerabilities
sulkaharo Dec 6, 2019
149ca1a
Added basal and bolus averages besides TDD and carbs (#4216)
lixgbg Dec 6, 2019
8194a87
Remove the leading 0 from the version, so we can comply to how versio…
sulkaharo Dec 6, 2019
378406b
Merge pull request #10 from nightscout/dev
inventor96 Dec 7, 2019
0ea36ab
Removed unsused var ic (#5288)
hgreving Dec 14, 2019
de70aa2
Use constants instead of number literals for http status codes (#5276)
jakobsandberg Dec 14, 2019
a764412
Updated release name and number (#5280)
inventor96 Dec 14, 2019
5cc19ae
Allow use cgm-remote-monitor as npm package. (#4847)
GermanBluefox Dec 14, 2019
04b47f6
Add 4 hour option to view (#5289)
sulkaharo Dec 14, 2019
51781f7
[Clock] Fix incorrect delta calculation (#5286)
ireneusz-ptak Dec 14, 2019
1d005f9
Hide unit suffix for SMBs issued by AndroidAPS (#4771)
cascer1 Dec 14, 2019
1375870
Fix issues from `npm audit`
sulkaharo Dec 14, 2019
83c22f9
Read BG targets in using mmol when server is in mmol mode (#5291)
sulkaharo Dec 15, 2019
1312256
Unbreak JSON serialization failing on the /properties API due to circ…
sulkaharo Dec 16, 2019
07b528c
Bump version to 13.0.0
sulkaharo Dec 16, 2019
41ac93f
Merge pull request #5113 from nightscout/dev
sulkaharo Dec 17, 2019
e4e417b
Merge branch 'dev' of github.com:inventor96/cgm-remote-monitor into dev
inventor96 Dec 17, 2019
4578e17
Release ref update v2 (#5301)
inventor96 Dec 17, 2019
6021a0a
Fix auth dialog sizing error (#5315)
jpcunningh Dec 17, 2019
721aa02
Fix auth dialog sizing error (#5314)
jpcunningh Dec 18, 2019
f57ccb8
Release 13.0.1 (#5329)
sulkaharo Dec 18, 2019
14e8c8c
Bump version to 13.0.2-dev
sulkaharo Dec 18, 2019
e0667c9
fix some random test failures (#5341)
jpcunningh Dec 20, 2019
6f43f47
Merge branch 'dev' of github.com:inventor96/cgm-remote-monitor into dev
inventor96 Dec 27, 2019
0c9f819
Added support for asking delta
inventor96 Dec 27, 2019
a4c0425
Added time reference
inventor96 Dec 27, 2019
a7e49b3
Made delta reading more informative
inventor96 Dec 27, 2019
7a1fc6d
Corrected time reference
inventor96 Dec 27, 2019
c9c9495
Try shortening the response
inventor96 Dec 27, 2019
014df85
Revert attempt
inventor96 Dec 27, 2019
6475310
Updated templates and documentation
inventor96 Dec 27, 2019
161c496
Minor improvement in response when delta is 0
inventor96 Dec 27, 2019
23d25a4
German translations improved and added (#5360)
tanja3981 Jan 1, 2020
aeebf0b
Delta support in virtual assistants (#5376)
sulkaharo Jan 1, 2020
9718bc7
Fix Alexa Launch and SessionEnded Requests (#5377)
Bartlomiejsz Jan 1, 2020
a4ce06f
Fix #5149 - discord link on CONTRIBUTING.md doesn't do anything (#5380)
Bartlomiejsz Jan 1, 2020
8139cb9
Fix #5146 - display of treatment with only Fat and Protein set (#5381)
Bartlomiejsz Jan 1, 2020
f7922a6
Basic report page style fixes and updates (#5387)
andrew-dixon Jan 1, 2020
031c5be
Add missing Polish translations and improve existing (#5382)
Bartlomiejsz Jan 1, 2020
1c579a7
Addressed virtual assistant usage with Authentication Roles (#5388)
inventor96 Jan 1, 2020
78be0f6
mgdl -> mg/dl (#3423)
sulkaharo Jan 1, 2020
44519b9
Fix timeago alarms (again). The changes to the rendered had an uninte…
sulkaharo Jan 1, 2020
9817b03
Remove the server side test
sulkaharo Jan 1, 2020
df03577
Merge pull request #5394 from nightscout/fix_timeago
sulkaharo Jan 1, 2020
60be07c
Fix Graph Display Without Recent Devicestatus (#5409)
jpcunningh Jan 6, 2020
ee0b1e8
Update Russian (#5415)
apanasef Jan 6, 2020
0def1f2
Add server teardown ability (#5410)
PetrOndrusek Jan 6, 2020
bb34500
Additional German Translations and corrections (#5405)
herzogmedia Jan 6, 2020
5e47c4d
Fix #5188 - move predictions to bundle and don't render chart on pred…
Bartlomiejsz Jan 6, 2020
ddbda15
Move toolbar and authentication status to partial and include on each…
Bartlomiejsz Jan 6, 2020
4098689
Virtual assistant code simplification (#5400)
inventor96 Jan 11, 2020
4f9f735
Pr/5379 (#5441)
sulkaharo Jan 11, 2020
c49ea37
Volunteer for Polish translations (#5396)
Bartlomiejsz Jan 11, 2020
2f60d8d
Api3 output renderers (#5425)
PetrOndrusek Jan 12, 2020
5c15243
Restore glucose distribution test (#5434)
jakobsandberg Jan 12, 2020
81d926a
Increase coverage of tests on units utility and clean up timeago test…
jakobsandberg Jan 12, 2020
937aa47
Refactor to encapsulate duplicated settings logic (#5426)
jakobsandberg Jan 12, 2020
64663d2
Send coverage reports to Codacy (#5444)
sulkaharo Jan 12, 2020
7dc292e
Resolve unnecessary uses of eslint-ignore (#5436)
jakobsandberg Jan 12, 2020
3a1d9be
Fix eslint errors and add npm script for eslint (#5427)
jakobsandberg Jan 14, 2020
04edbec
Remove redundant checks on entry ID (#5440)
jakobsandberg Jan 14, 2020
d095482
Run CI Action for Pull Requests
sulkaharo Jan 14, 2020
3386ac6
Update DayToDay report for Loop Overrides (#5452)
jonfawcett Jan 18, 2020
baad198
Fix earlier merge error with predictions having moved to the report b…
sulkaharo Jan 18, 2020
6045547
fix brushing loop (#5499)
jpcunningh Feb 1, 2020
c86b890
Update README.md (#5480)
hummelstrand Feb 3, 2020
c0f6b22
Added period of days into headline of glucose distribution and percen…
peterleimbach Feb 3, 2020
82f0076
Move app caching to a service worker (#5504)
sulkaharo Feb 5, 2020
b1ec21c
Added indexes to 'entries' and 'treatments' along with other updates …
a-harrison Feb 5, 2020
765d7f8
Fix: Round interporlated mg/dL value to an integer
sulkaharo Feb 8, 2020
44ab2a7
Plugin to show database size (% of available space or in MiB) (#5496)
dlvoy Feb 10, 2020
65b9f38
Trying to fix random fail of APIv3 tests (#5519)
PetrOndrusek Feb 11, 2020
cd2ad5e
client - mobile - Axis label font is scaled on small screens (#5512)
stephencmorton Feb 16, 2020
77795ca
Split view (#5518)
sulkaharo Feb 16, 2020
729747a
Allow flagging specific settings to be not exposed the /properties an…
sulkaharo Feb 16, 2020
dcf8248
Add more variables to the special list
sulkaharo Feb 16, 2020
43165a0
[DEV][FIX] Fix dbsize plugin to make it hideable again (#5529)
dlvoy Feb 22, 2020
be678c0
Removed duplicate if statement (#5531)
altaired Feb 22, 2020
68fb745
Update Dutch translations (#5532)
Feb 22, 2020
7d95b06
Fix settings test
sulkaharo Feb 22, 2020
32f4791
Update version to 13.1.0
sulkaharo Feb 22, 2020
9611373
Merge branch 'master' into dev for release
sulkaharo Feb 22, 2020
4cdd00d
Fix topbar collapse on small screens (#5562)
sulkaharo Mar 9, 2020
17eb4ae
Option to switch off bolus amount outputs (#5522)
andrew-dixon Apr 14, 2020
7c5a69d
Fix d3 portrait to landscape brush failure (#5638)
jpcunningh May 5, 2020
9236771
Sanitize data from manual careportal entries so only fields with actu…
sulkaharo May 5, 2020
db0e08c
do not redirect to profile editor by default (#5671)
bewest Jun 12, 2020
f3fab56
Fix Issue #5486 - Device Status Days Feature (#5651)
mtfoley Jun 12, 2020
3d6f488
Configurable clock views (#5625)
ireneusz-ptak Jun 12, 2020
5698ae2
Add remote bolus/carbs + otp entry for loop (#5598)
josep1972 Jun 12, 2020
500de79
Sometimes at the very start no profiles provided. (#5591)
GermanBluefox Jun 12, 2020
802d986
Fixes #4991 - Now selects basal profile based day by day (#5572)
fromorbonia Jun 12, 2020
0ae6431
prepare hotfix for MMConnect/EU - 2020-06-28
bewest Jun 28, 2020
f611f1b
bump pointing at right tag
bewest Jun 29, 2020
1062a0d
prepare hotfix for MMConnect/EU - 2020-06-28
bewest Jun 28, 2020
bcd6df2
bump pointing at right tag
bewest Jun 29, 2020
cc1edf2
Merge pull request #5721 from nightscout/wip/bewest/mmconnect-eu
bewest Jun 30, 2020
acf0d39
hotfix attempt 2 - carelink 2020 sso updates
bewest Jun 30, 2020
06982d7
hotfix 3 - attempt 3 at carelink 2020 sso updates
bewest Jun 30, 2020
93c8447
attempt 4 at hotfix for nightscout
bewest Jul 1, 2020
8fba311
hotfix 5 - incorporates latest axios changes
bewest Jul 1, 2020
7283560
Fix for boluscalc issue (#5729)
ireneusz-ptak Jul 2, 2020
9528b79
npm install --save minimed-connect-to-nightscout@^1.4.0
bewest Jul 2, 2020
2fc559e
Change DISPLAY_UNITS to use readENV's default value and added several…
joracine Jul 12, 2020
9b048dd
Fix audit errors, button order (#5694)
sulkaharo Jul 12, 2020
b8e69d9
Fix temporary target cancellation
sulkaharo Aug 18, 2020
356a236
Added documentation on the use of Alpha Testing (#5784)
inventor96 Aug 18, 2020
5ffa5eb
Wip/bewest/mmconnect eu (#5731)
bewest Aug 18, 2020
f4f456a
* Updated several packages to remove issues from NPM audit
sulkaharo Aug 18, 2020
359e6a6
* Limit the default number of profiles returned by the API to fix iss…
sulkaharo Aug 19, 2020
2936559
Upgrade Helmet to 4.0.0
sulkaharo Aug 19, 2020
fd90f4e
CSP and service worker improvements (#5856)
sulkaharo Aug 20, 2020
3e1cc14
Serve the CSP to everyone
sulkaharo Aug 20, 2020
d504a66
Split view CSP support (#5864)
sulkaharo Aug 21, 2020
0c22963
Re-enable CSP configuration (#5867)
sulkaharo Aug 22, 2020
46e3d8f
Merge remote-tracking branch 'official/hotfix/2020-06-28/carelink' in…
bewest Aug 28, 2020
26ebdbd
Bump share2nightscout-bridge plugin
bewest Aug 28, 2020
6613e76
feat Add robots.txt to disallow site crawling
sulkaharo Aug 30, 2020
22d1506
Fix dbsize for usage with Atlas (#5962)
dlvoy Sep 8, 2020
89dfe21
Openaps performance improvement (#5945)
jpcunningh Sep 8, 2020
67fb939
Adapt to MongoDB Atlas (#5893)
aviau Sep 8, 2020
d26091b
Fix Issue #5763 - Change $.ajax to /api/v1/profile (#5704)
mtfoley Sep 8, 2020
0ee3628
Bug fixes for Service Worker (#5970)
pazaan Sep 9, 2020
8019005
Optimize Nightscout database usage (#5947)
sulkaharo Sep 9, 2020
c113424
Bumping version to 14.0.0 given this is a relatively large update and…
sulkaharo Sep 10, 2020
5aef245
Remove logging statements
sulkaharo Sep 10, 2020
ace19e1
fix brushing recursion
Sep 10, 2020
57e33a0
Normalize treatments to support absolute doses from the amount field
sulkaharo Sep 12, 2020
be422f0
Add Loop Carbs foodType, absorptionTime to Reports for ISSUE #5701 (#…
kskandispersonal Sep 12, 2020
14621a4
Update README to point to new docs
sulkaharo Sep 13, 2020
e54a6b8
Merge pull request #5526 from nightscout/dev
sulkaharo Sep 13, 2020
3928565
Fix `Treatments` report for `mmol/L` users
pazaan Sep 13, 2020
0c11bf0
Bump version to 14.0.1
sulkaharo Sep 13, 2020
f04e7d7
Merge pull request #5983 from pazaan/pazaan/fix-iquorice-treatment-re…
sulkaharo Sep 13, 2020
4f85e19
Merge pull request #5984 from nightscout/dev
sulkaharo Sep 13, 2020
663f439
Bump dev to 14.0.2
sulkaharo Sep 13, 2020
e9c09af
Merge branch 'dev' into fix-recursion
Sep 13, 2020
5cdba4a
Merge pull request #5987 from jpcunningh/fix-recursion
sulkaharo Sep 14, 2020
345b171
Merge pull request #5980 from nightscout/absolute_amount
sulkaharo Sep 14, 2020
cd256ab
Serve Last-Modified header for the service worker to help with some b…
sulkaharo Sep 14, 2020
685ae5c
Cleaned old appcache references
sulkaharo Sep 14, 2020
5f0b77b
* Remove unnecessary logging to help with Papertrail limits
sulkaharo Sep 15, 2020
b620164
When merging inserts and updates from the database, ensure we always …
sulkaharo Sep 15, 2020
0a79cb1
Bump treatment delta loading to four hours
sulkaharo Sep 15, 2020
fbe3e9b
One more increase to treatment load time to cover long overrides
sulkaharo Sep 16, 2020
92f23e6
Merge pull request #6004 from nightscout/dev
sulkaharo Sep 16, 2020
90f91c3
* Bump version to 14.0.3
sulkaharo Sep 16, 2020
b62ab3c
Bumped up the number of treatments loaded / day for reporting
sulkaharo Sep 16, 2020
8a1d6bf
Fix reports unit test
sulkaharo Sep 16, 2020
a0043ec
Bump treatments default limit default to 1000 objects for queries tha…
sulkaharo Sep 16, 2020
6e50c23
Merge pull request #6009 from nightscout/dev
sulkaharo Sep 16, 2020
0c7e9bf
* Require created_at for Treatments on insert
sulkaharo Sep 19, 2020
f878ce1
Add support for CGM data and device statuses. Refactor dataloader to …
sulkaharo Sep 20, 2020
a75c5a3
Fix data order for REST API
sulkaharo Sep 20, 2020
1059232
* Add cache update events to websocket API
sulkaharo Sep 21, 2020
54008a7
Remove excess logging
sulkaharo Sep 22, 2020
cde9aa3
Merge pull request #6056 from nightscout/cache_invalidation
sulkaharo Sep 22, 2020
3f1081e
Bump version to .4
sulkaharo Sep 22, 2020
a95ad79
Merge pull request #6078 from nightscout/dev
sulkaharo Sep 23, 2020
de792d2
Bump version to 14.0.5 and fix #6050
sulkaharo Sep 24, 2020
07eee47
Fix Pebble API detecting mmol units from settings
sulkaharo Sep 24, 2020
8ac9734
Make settings parsing whitespace tolerant
sulkaharo Sep 25, 2020
f846165
* Fix security test
sulkaharo Sep 25, 2020
a8956bc
Don't report an error on every reconnect
sulkaharo Sep 25, 2020
d3c1613
Less intimidating error page on start, which also checks for api_secret
sulkaharo Sep 25, 2020
eec131b
Add file missing from last commit
sulkaharo Sep 25, 2020
84c245c
Fix tests
sulkaharo Sep 25, 2020
54a5b35
Remove require statement breaking deploys
sulkaharo Sep 27, 2020
4d2a731
Update --feature-request--.md
sulkaharo Sep 27, 2020
5af8d63
Update --bug-report.md
sulkaharo Sep 27, 2020
6d6cf31
Update --individual-troubleshooting-help.md
sulkaharo Sep 27, 2020
48096fc
Merge branch 'master' into dev
sulkaharo Sep 27, 2020
dfa86a9
Fix memory leak and cache update issues in 14.0.4 (#6133)
sulkaharo Sep 27, 2020
0670c5a
Add error cat to error page
sulkaharo Sep 27, 2020
4ba636d
Fix MONGODB_URI reference in error message
sulkaharo Sep 27, 2020
9315b06
Merge pull request #6135 from nightscout/dev
sulkaharo Sep 27, 2020
0dd1254
Bump version to 14.0.6
sulkaharo Sep 28, 2020
a8b53f5
Support uploading device statuses in batches (#6147)
sulkaharo Sep 28, 2020
48f5578
Make empty cache detection a bit more aggressive to account for cache…
sulkaharo Sep 28, 2020
1818810
Merge pull request #6148 from nightscout/dev
sulkaharo Sep 28, 2020
0aed5c9
Update README.md
sulkaharo Oct 3, 2020
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
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI test

on: [push]

jobs:
build:

runs-on: ubuntu-16.04

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Install MongoDB
run: |
wget -qO - https://www.mongodb.org/static/pgp/server-3.6.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo apt-get install -y --allow-downgrades mongodb-org=3.6.14 mongodb-org-server=3.6.14 mongodb-org-shell=3.6.14 mongodb-org-mongos=3.6.14 mongodb-org-tools=3.6.14
- name: Start MongoDB
run: sudo systemctl start mongod
- name: Run tests
run: npm run-script test-ci
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ bundle/bundle.out.js
.idea/
*.iml
my.env
my.*.env

*.env
static/bower_components/
.*.sw?
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ matrix:
include:
- node_js: "10"
<<: *node_js-steps
- node_js: "node" # Latest Node is not supported, and recommend, but we'll test it to know incompatibility issues
- node_js: "12" # Latest Node is not supported, and recommend, but we'll test it to know incompatibility issues
<<: *node_js-steps
35 changes: 12 additions & 23 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,16 @@
[![Build Status][build-img]][build-url]
[![Dependency Status][dependency-img]][dependency-url]
[![Coverage Status][coverage-img]][coverage-url]
[![Gitter chat][gitter-img]][gitter-url]
[![Stories in Ready][ready-img]][waffle]
[![Stories in Progress][progress-img]][waffle]
[![Discord chat][discord-img]][discord-url]

[build-img]: https://img.shields.io/travis/nightscout/cgm-remote-monitor.svg
[build-url]: https://travis-ci.org/nightscout/cgm-remote-monitor
[dependency-img]: https://img.shields.io/david/nightscout/cgm-remote-monitor.svg
[dependency-url]: https://david-dm.org/nightscout/cgm-remote-monitor
[coverage-img]: https://img.shields.io/coveralls/nightscout/cgm-remote-monitor/master.svg
[coverage-url]: https://coveralls.io/r/nightscout/cgm-remote-monitor?branch=master
[gitter-img]: https://img.shields.io/badge/Gitter-Join%20Chat%20%E2%86%92-1dce73.svg
[gitter-url]: https://gitter.im/nightscout/public
[ready-img]: https://badge.waffle.io/nightscout/cgm-remote-monitor.svg?label=ready&title=Ready
[waffle]: https://waffle.io/nightscout/cgm-remote-monitor
[progress-img]: https://badge.waffle.io/nightscout/cgm-remote-monitor.svg?label=in+progress&title=In+Progress
[discord-img]: https://img.shields.io/discord/629952586895851530?label=discord%20chat
[discord-url]: https://discordapp.com/channels/629952586895851530/629952669967974410

## Installation for development

Expand Down Expand Up @@ -67,13 +62,9 @@ If you want to additionaly test the site in production mode, create a file calle

## REST API

Nightscout implements a REST API for data syncronization. The API is documented using Swagger. To access the documentation
for the API, run Nightscout locally and load the documentation from /api-docs (or read the associated swagger.json and swagger.yaml
files locally).
Nightscout implements a REST API for data syncronization. The API is documented using Swagger. To access the documentation for the API, run Nightscout locally and load the documentation from /api-docs (or read the associated swagger.json and swagger.yaml files locally).

Note all dates used to access the API and dates stored in the objects are expected to comply with the ISO-8601 format and
be deserializable by the Javascript Date class. Of note here is the dates can contain a plus sign which has a special meaning in URL encoding, so when issuing requests that place dates to the URL, take special care to ensure the data is properly URL
encoded.
Note all dates used to access the API and dates stored in the objects are expected to comply with the ISO-8601 format and be deserializable by the Javascript Date class. Of note here is the dates can contain a plus sign which has a special meaning in URL encoding, so when issuing requests that place dates to the URL, take special care to ensure the data is properly URL encoded.

## Design & new features

Expand Down Expand Up @@ -104,7 +95,7 @@ If in doubt, format your code with `js-beautify --indent-size 2 --comma-first -

## Create a prototype

Fork cgm-remote-monitor and create a branch. You can create a branch using `git checkout -b wip/add-my-widget`. This creates a new branch called `wip/add-my-widget`. The `wip` stands for work in progress and is a common prefix so that when know what to expect when reviewing many branches.
Fork cgm-remote-monitor and create a branch. You can create a branch using `git checkout -b wip/add-my-widget`. This creates a new branch called `wip/add-my-widget`. The "`wip`" stands for work-in-progress and is a common prefix so that we know what to expect when reviewing many branches.

## Submit a pull request

Expand All @@ -114,11 +105,9 @@ This can be done by checking your code `git commit -avm 'my improvements are her

Now that the commits are available on github, you can click on the compare buttons on your fork to create a pull request. Make sure to select [Nightscout's `dev` branch](https://github.com/nightscout/cgm-remote-monitor/tree/dev).

We assume all new Pull Requests are at least smoke tested by the author and all code in the PR actually works.
Please include a description of what the features do and rationalize why the changes are needed.
We assume all new Pull Requests are at least smoke tested by the author and all code in the PR actually works. Please include a description of what the features do and rationalize why the changes are needed.

If you add any new NPM module dependencies, you have to rationalize why they are needed - we prefer pull requests that reduce dependencies, not add them.
Before releasing a a new version, we check with `npm audit` if our dependencies don't have known security issues.
If you add any new NPM module dependencies, you have to rationalize why they are needed - we prefer pull requests that reduce dependencies, not add them. Before releasing a a new version, we check with `npm audit` if our dependencies don't have known security issues.

When adding new features that add configuration options, please ensure the `README` document is amended with information on the new configuration.

Expand All @@ -141,7 +130,7 @@ We encourage liberal use of the comments, including images where appropriate.

## Co-ordination

Most cgm-remote-monitor hackers use github's ticketing system, along with Facebook cgm-in-the-cloud, and gitter.
We primarily use GitHub's ticketing system for discussing PRs and bugs, and [Discord][discord-url] for general development chatter.

We use git-flow, with `master` as our production, stable branch, and `dev` is used to queue up for upcoming releases. Everything else is done on branches, hopefully with names that indicate what to expect.

Expand All @@ -151,7 +140,7 @@ Every commit is tested by travis. We encourage adding tests to validate your de

## Other Dev Tips

* Join the [Gitter chat][gitter-url]
* Join the [Discord chat][discord-url].
* Get a local dev environment setup if you haven't already.
* Try breaking up big features/improvements into small parts. It's much easier to accept small PR's.
* Create tests for your new code as well as the old code. We are aiming for a full test coverage.
Expand Down Expand Up @@ -256,7 +245,7 @@ Languages with less than 90% coverage will be removed in a future Nightscout ver
| Español (`es`) |Please volunteer|OK|
| Suomi (`fi`)|[@sulkaharo] |OK|
| Français (`fr`)|Please volunteer|OK|
| עברית (`he`)|Please volunteer|OK|
| עברית (`he`)| [@jakebloom] |OK|
| Hrvatski (`hr`)|[@OpossumGit]|OK|
| Italiano (`it`)|Please volunteer|OK|
| 日本語 (`ja`)|[@LuminaryXion]|Working on this|
Expand All @@ -278,7 +267,7 @@ Languages with less than 90% coverage will be removed in a future Nightscout ver
### List of all contributors
| Contribution area | List of contributors |
| ------------------------------------- | -------------------- |
| All active developers: | [@jasoncalabrese] [@jpcunningh] [@jweismann] [@komarserjio] [@mdomox] [@MilosKozak] [@PieterGit] [@rickfriele] [@sulkaharo]
| All active developers: | [@jasoncalabrese] [@jpcunningh] [@jweismann] [@komarserjio] [@mdomox] [@MilosKozak] [@PieterGit] [@rickfriele] [@sulkaharo] [@unsoluble]
| All active testers/documentors: | [@danamlewis] [@jamieowendexcom] [@mcdafydd] [@oteroos] [@rarneson] [@tynbendad] [@unsoluble]
| All active translators: | [@apanasef] [@jizhongwen] [@viderehh] [@herzogmedia] [@LuminaryXion] [@OpossumGit]

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ travis:
python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
# NODE_ENV=test ${MONGO_SETTINGS} \
# ${ISTANBUL} cover ${MOCHA} --report lcovonly -- --timeout 5000 -R tap ${TESTS}
for var in tests/*.js; do ${MONGO_SETTINGS} ${MOCHA} --timeout 30000 --exit --bail -R tap $$var; done | tap-set-exit
for var in tests/*.js; do ${MONGO_SETTINGS} ${MOCHA} --timeout 30000 --exit --bail -R tap $$var; done

docker_release:
# Get the version from the package.json file
Expand Down
Loading