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

update my site #6

Merged
merged 194 commits into from
Jul 29, 2014
Merged

update my site #6

merged 194 commits into from
Jul 29, 2014

Conversation

wagnerpe
Copy link
Owner

No description provided.

brianhanifin and others added 30 commits July 2, 2014 13:25
I added a space to test Codeship for the tutorial.
Wrap protected functions with: if (verifyAuthorization(req, res)) {}
aka moving /settings to bottom
This sets up two additional API endpoints explicitly used for testing.
Also, constrain all parsing of environment variables to a single
location.

This change also creates no API at all unless there is an API secret
defined.

Also the API_SECRET is really just a shared key private key, we
actually use the sha1 sum digest of the key.
to comply with recent change to Express. This gets rid of the
depreciated warnings at the command line when launching the server.
At startup server.js now attempts to create the necessary collections.
If they exist already they will NOT be overwritten. If default data
population is necessary, a JSON object may be passed for population.

Unless I am missing something, this means the users will NOT have to
manually add the ‘settings’ collection. It will happen automatically in
the background.

I also set it up to initialize the Entries collection as ‘entries’ if
no name has been provided, and the database does not exist. No default
data population occurs for entries.

This requires that the website be setup with a mongo user with write
permissions. Of course we were going to need that for the API anyway.
unless running on localhost. *I need to test this on Heroku and Azure.*
brianhanifin and others added 27 commits July 27, 2014 21:06
* Querystring values now replace underscores with a space, pluses are now treated as any other character.
* Added type parameter to showNotifications(note, type). Now blue, green, red, and yellow background can be used (by passing the type as "info", "success", "urgent", "warn").
* Changed other links to text links.
@jasoncalabrese pointed out that some agents do odd things with
underscores and that using a hyphen is more common.
This also adds tests to ensure that the API_SECRET handling works as
expected.
Cherry-picked in the wrong order

This reverts commit 8e56ef1.
That way the CSS and HTML can stay enabled. When we are ready to add code to ui-utils.js we can just start running.
Adding warning + urgent colored backgrounds when BG is out of date by 10 or 20 minutes.
For parents monitoring multiple kids. Replaces "Nightscout" in the toolbar.
Base API - settings, basic auth, and experimental endpoints
wagnerpe added a commit that referenced this pull request Jul 29, 2014
@wagnerpe wagnerpe merged commit 4b6bd60 into wagnerpe:master Jul 29, 2014
wagnerpe pushed a commit that referenced this pull request Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants