Permalink
Commits on Aug 3, 2017
Commits on Aug 1, 2017
  1. Fix mobile sessions syncing

    czorek committed Aug 1, 2017
Commits on Jul 6, 2017
Commits on May 11, 2017
Commits on May 10, 2017
Commits on Apr 22, 2017
  1. Update README.md

    marekciupak committed Apr 22, 2017
  2. Update README.md

    marekciupak committed Apr 22, 2017
Commits on Feb 17, 2017
Commits on Jan 25, 2017
Commits on Jan 24, 2017
  1. Increase timeout for elasticsearch connection

    marekciupak committed Jan 24, 2017
    Based on the doc:
    https://github.com/elastic/elasticsearch-ruby/tree/v1.0.14/elasticsearch-transport#setting-timeouts
    
    Attempt to solve the issue:
    ```
    Faraday::TimeoutError: Timeout::Error
    [PROJECT_ROOT]/app/models/elastic/measurement.rb:13:in `import'
    ```
    https://app.honeybadger.io/projects/47179/faults/32094890
Commits on Jan 23, 2017
Commits on Jan 12, 2017
  1. Update .gitignore

    marekciupak committed Jan 12, 2017
  2. Add StreamsRepository

    marekciupak committed Jan 12, 2017
Commits on Jan 4, 2017
  1. Add a guard clause in index.rake task

    czorek committed Jan 4, 2017
    It can happen that a stream is deleted while the script is running.
Commits on Jan 3, 2017
  1. Add MeasurementPresenter

    marekciupak committed Jan 3, 2017
    To fix elasticsearch indexing. Measurement#as_indexed_json is used by
    elasticsearch and should contain all required attributes.
Commits on Dec 24, 2016
  1. Do not perform so long db transactions

    marekciupak committed Dec 24, 2016
    We will treat recalculating stream metadata as _not_ a part of adding
    new measurements atomic operation. It can always be performed later
    and separetly.
    
    It fixes:
    
    https://app.honeybadger.io/projects/47179/faults/31229366
    
    ```
    [PROJECT_ROOT]/app/models/stream.rb:135 :in `build_measurements!`
    
    ActiveRecord::StatementInvalid: Mysql2::Error: Lock wait timeout
    exceeded; try restarting transaction: UPDATE `streams` SET
    `measurements_count` = COALESCE(`measurements_count`, 0) + 1 WHERE
    `streams`.`id` = 60216
    ```
    
    Future improvements:
    
    Recalculating stream metadata probably should be moved to a separate
    _uniq_ worker, since it takes more and more time for longer streams.
    
    It is important for fixed sessions (many existing measurements per
    stream + update happens every minute). Recalcuating operations may
    overlap ;)
Commits on Dec 19, 2016
Commits on Nov 21, 2016
Commits on Nov 14, 2016
  1. Remove DST hacks

    czorek committed Nov 14, 2016
Commits on Nov 10, 2016
Commits on Nov 9, 2016
  1. Remove console.log

    czorek committed Nov 9, 2016