PulseTile / PulseTile-React-Core

PulseTile framework - developed with ReactJS
Apache License 2.0
10 stars 12 forks source link

Changes for api/initialise #281

Closed BogdanScherban closed 6 years ago

BogdanScherban commented 6 years ago

For the issue: https://github.com/PulseTile/PulseTile-React-Core/issues/277

Until user data is prepared server returns the result: { "status":"loading_data", "new_patient": true | false }

We change class name of : 'loading with-tips progress-long' - if new_patient is true 'loading with-tips progress-short' - if new_patient is false

After this we run api/initialise request until result is: { ok: true, mode: 'secure' }

Frequency of request is 1 per 1 second if user isn't new. Frequency of request is 1 per 5 second if user is new.

codecov-io commented 6 years ago

Codecov Report

Merging #281 into develop will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #281   +/-   ##
========================================
  Coverage    97.91%   97.91%           
========================================
  Files          120      120           
  Lines         1533     1533           
  Branches       237      237           
========================================
  Hits          1501     1501           
  Misses          26       26           
  Partials         6        6

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 61f6c40...e6e90bb. Read the comment docs.