{"action":"created","issue":{"url":"https://api.github.com/repos/NCAR/chords/issues/408","repository_url":"https://api.github.com/repos/NCAR/chords","labels_url":"https://api.github.com/repos/NCAR/chords/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/NCAR/chords/issues/408/comments","events_url":"https://api.github.com/repos/NCAR/chords/issues/408/events","html_url":"https://github.com/NCAR/chords/issues/408","id":296040417,"number":408,"title":"Add sensor serial number to help when instruments are moved to new sites","user":{"login":"zastruga","id":3188761,"avatar_url":"https://avatars2.githubusercontent.com/u/3188761?v=4","gravatar_id":"","url":"https://api.github.com/users/zastruga","html_url":"https://github.com/zastruga","followers_url":"https://api.github.com/users/zastruga/followers","following_url":"https://api.github.com/users/zastruga/following{/other_user}","gists_url":"https://api.github.com/users/zastruga/gists{/gist_id}","starred_url":"https://api.github.com/users/zastruga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zastruga/subscriptions","organizations_url":"https://api.github.com/users/zastruga/orgs","repos_url":"https://api.github.com/users/zastruga/repos","events_url":"https://api.github.com/users/zastruga/events{/privacy}","received_events_url":"https://api.github.com/users/zastruga/received_events","type":"User","site_admin":false},"labels":[{"id":239256698,"url":"https://api.github.com/repos/NCAR/chords/labels/feature","name":"feature","color":"0b02e1","default":false}],"state":"open","locked":false,"assignee":{"login":"zastruga","id":3188761,"avatar_url":"https://avatars2.githubusercontent.com/u/3188761?v=4","gravatar_id":"","url":"https://api.github.com/users/zastruga","html_url":"https://github.com/zastruga","followers_url":"https://api.github.com/users/zastruga/followers","following_url":"https://api.github.com/users/zastruga/following{/other_user}","gists_url":"https://api.github.com/users/zastruga/gists{/gist_id}","starred_url":"https://api.github.com/users/zastruga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zastruga/subscriptions","organizations_url":"https://api.github.com/users/zastruga/orgs","repos_url":"https://api.github.com/users/zastruga/repos","events_url":"https://api.github.com/users/zastruga/events{/privacy}","received_events_url":"https://api.github.com/users/zastruga/received_events","type":"User","site_admin":false},"assignees":[{"login":"zastruga","id":3188761,"avatar_url":"https://avatars2.githubusercontent.com/u/3188761?v=4","gravatar_id":"","url":"https://api.github.com/users/zastruga","html_url":"https://github.com/zastruga","followers_url":"https://api.github.com/users/zastruga/followers","following_url":"https://api.github.com/users/zastruga/following{/other_user}","gists_url":"https://api.github.com/users/zastruga/gists{/gist_id}","starred_url":"https://api.github.com/users/zastruga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zastruga/subscriptions","organizations_url":"https://api.github.com/users/zastruga/orgs","repos_url":"https://api.github.com/users/zastruga/repos","events_url":"https://api.github.com/users/zastruga/events{/privacy}","received_events_url":"https://api.github.com/users/zastruga/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-02-09T23:09:34Z","updated_at":"2018-03-15T00:02:26Z","closed_at":null,"author_association":"COLLABORATOR","body":"An instrument is moved from one site to another, with the same instrument id programmed into it.  Data are sent to the same instrument id in CHORDS, resulting in data from two different locations being mixed in the database.\r\n\r\nA proposed solution is to add a sensor serial number to the `Instrument` model with a validation only allowing one instrument at a time to be associated with a unique serial number and active state.  In other words, the same serial number can follow instruments in CHORDS, but only one may be active at any given time.  This will allow tracking of data provenance and calibrations across CHORDS instruments/data.  Initially, the `url_create` endpoint will add a `url_create?serial_num=[SERIAL_NUMBER]` parameter, which will take priority over an `instrument_id` if one is included in the call."},"comment":{"url":"https://api.github.com/repos/NCAR/chords/issues/comments/373215253","html_url":"https://github.com/NCAR/chords/issues/408#issuecomment-373215253","issue_url":"https://api.github.com/repos/NCAR/chords/issues/408","id":373215253,"user":{"login":"mdbartos","id":8175317,"avatar_url":"https://avatars1.githubusercontent.com/u/8175317?v=4","gravatar_id":"","url":"https://api.github.com/users/mdbartos","html_url":"https://github.com/mdbartos","followers_url":"https://api.github.com/users/mdbartos/followers","following_url":"https://api.github.com/users/mdbartos/following{/other_user}","gists_url":"https://api.github.com/users/mdbartos/gists{/gist_id}","starred_url":"https://api.github.com/users/mdbartos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdbartos/subscriptions","organizations_url":"https://api.github.com/users/mdbartos/orgs","repos_url":"https://api.github.com/users/mdbartos/repos","events_url":"https://api.github.com/users/mdbartos/events{/privacy}","received_events_url":"https://api.github.com/users/mdbartos/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T00:02:26Z","updated_at":"2018-03-15T00:02:26Z","author_association":"COLLABORATOR","body":"Based on our conversation from the last telecon, it could be useful to index/tag timeseries data by the instrument alias in influxdb. For instance, forwarding and backing up the timeseries data is currently very difficult, given that instrument id's are provisioned in the order that the instrument assets are created. An instrument alias would give a convenient way to \"key\" data from one CHORDS instance to another."}}
{"actor":{"display_login":"mdbartos"}}