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

Bewest/api/create entries #40

Merged
merged 7 commits into from
Jul 16, 2014
Merged

Conversation

bewest
Copy link
Member

@bewest bewest commented Jul 14, 2014

Sketching out creating entries.

What do you guys think?

@bewest
Copy link
Member Author

bewest commented Jul 14, 2014

This is to help out with #35

@jasoncalabrese
Copy link
Member

I'd like to define the _id based on a hash of some key values to prevent storing duplicate values.

I borrowed some code from tidepool for the api I added had in project-glu, https://github.com/jasoncalabrese/project-glu/blob/master/lib/models/entry.js#L31

Maybe something like that would work? With the current 2 day upload on startup we can upload lots of duplicate data.

The _id hashing should probably happen in entities.js

bewest added 5 commits July 14, 2014 02:38
The api function now returns something useful in addition to doing a little bit
of work.
It used to do a little bit of work, now it returns the result.
Clean up and comment a bunch of code.
bewest added a commit that referenced this pull request Jul 16, 2014
@bewest bewest merged commit 07a1438 into feature/base-api Jul 16, 2014
@bewest bewest deleted the bewest/api/create-entries branch July 16, 2014 04:32
sulkaharo pushed a commit that referenced this pull request Aug 28, 2019
cominixo pushed a commit to cominixo/cgm-remote-monitor that referenced this pull request Mar 1, 2021
cominixo pushed a commit to cominixo/cgm-remote-monitor that referenced this pull request Mar 1, 2021
…ssue#40

Update version of Elixir to 1.9.3 and Erlang to 22.2 fixes nightscout#40
freddyyi pushed a commit to freddyyi/cgm-remote-monitor that referenced this pull request Apr 22, 2022
Fixes an issue where treatment units were all rewritten on load, rega…
jamorham referenced this pull request in jamorham/nightscout-vps Dec 2, 2022
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.

2 participants