{"action":"created","issue":{"url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance/issues/1303","labels_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance/issues/1303/labels{/name}","comments_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance/issues/1303/comments","events_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance/issues/1303/events","html_url":"https://github.com/the-blue-alliance/the-blue-alliance/issues/1303","id":121029247,"number":1303,"title":"Add Admin Message to API Status Endpoint","user":{"login":"phil-lopreiato","id":2754863,"avatar_url":"https://avatars.githubusercontent.com/u/2754863?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-lopreiato","html_url":"https://github.com/phil-lopreiato","followers_url":"https://api.github.com/users/phil-lopreiato/followers","following_url":"https://api.github.com/users/phil-lopreiato/following{/other_user}","gists_url":"https://api.github.com/users/phil-lopreiato/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-lopreiato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-lopreiato/subscriptions","organizations_url":"https://api.github.com/users/phil-lopreiato/orgs","repos_url":"https://api.github.com/users/phil-lopreiato/repos","events_url":"https://api.github.com/users/phil-lopreiato/events{/privacy}","received_events_url":"https://api.github.com/users/phil-lopreiato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-08T15:22:38Z","updated_at":"2015-12-08T16:51:58Z","closed_at":null,"body":"Will allow us to write a custom message (with expiration date) to the app somehome. Basically, this is the server side component for https://github.com/the-blue-alliance/the-blue-alliance-android/issues/418\r\n\r\nExtends #1256 to also add `text` and `expiration` (UNIX timestamp) to the response, inside a sub-dict `message` (or `null` if no message available). Both will be input from `/admin/apistatus` and stored with the other data in the sitevar. \r\n\r\n```\r\n{\r\n  max_season: 2015,\r\n  is_datafeed_down: false,\r\n  android: {\r\n    min_app_version: 123456\r\n  },\r\n  ios: {\r\n    min_app_version: 1243\r\n  },\r\n  down_events: [\r\n    2015test,\r\n    2015down\r\n  ],\r\n  message: {\r\n    \"text\": \"blah\",\r\n    \"expiration\": 123456\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance/issues/comments/162942972","html_url":"https://github.com/the-blue-alliance/the-blue-alliance/issues/1303#issuecomment-162942972","issue_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance/issues/1303","id":162942972,"user":{"login":"phil-lopreiato","id":2754863,"avatar_url":"https://avatars.githubusercontent.com/u/2754863?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-lopreiato","html_url":"https://github.com/phil-lopreiato","followers_url":"https://api.github.com/users/phil-lopreiato/followers","following_url":"https://api.github.com/users/phil-lopreiato/following{/other_user}","gists_url":"https://api.github.com/users/phil-lopreiato/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-lopreiato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-lopreiato/subscriptions","organizations_url":"https://api.github.com/users/phil-lopreiato/orgs","repos_url":"https://api.github.com/users/phil-lopreiato/repos","events_url":"https://api.github.com/users/phil-lopreiato/events{/privacy}","received_events_url":"https://api.github.com/users/phil-lopreiato/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T16:51:58Z","updated_at":"2015-12-08T16:51:58Z","body":"Yes, I think this approach is much more reliable. Mainly for devices that miss gcm messages, installs after we do the push, people without myTBA, etc. \n\nMaybe we want to keep the gcm push for lower priority message, or transform it into a send-to-sync message for status endpoint. "}}