{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/2731","labels_url":"https://api.github.com/repos/elastic/kibana/issues/2731/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/2731/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/2731/events","html_url":"https://github.com/elastic/kibana/pull/2731","id":55214352,"number":2731,"title":"Field formatting","user":{"login":"spalger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spalger","html_url":"https://github.com/spalger","followers_url":"https://api.github.com/users/spalger/followers","following_url":"https://api.github.com/users/spalger/following{/other_user}","gists_url":"https://api.github.com/users/spalger/gists{/gist_id}","starred_url":"https://api.github.com/users/spalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalger/subscriptions","organizations_url":"https://api.github.com/users/spalger/orgs","repos_url":"https://api.github.com/users/spalger/repos","events_url":"https://api.github.com/users/spalger/events{/privacy}","received_events_url":"https://api.github.com/users/spalger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/4.1.0","name":"4.1.0","color":"ffffff"},{"url":"https://api.github.com/repos/elastic/kibana/labels/review","name":"review","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"panda01","id":549944,"avatar_url":"https://avatars.githubusercontent.com/u/549944?v=3","gravatar_id":"","url":"https://api.github.com/users/panda01","html_url":"https://github.com/panda01","followers_url":"https://api.github.com/users/panda01/followers","following_url":"https://api.github.com/users/panda01/following{/other_user}","gists_url":"https://api.github.com/users/panda01/gists{/gist_id}","starred_url":"https://api.github.com/users/panda01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panda01/subscriptions","organizations_url":"https://api.github.com/users/panda01/orgs","repos_url":"https://api.github.com/users/panda01/repos","events_url":"https://api.github.com/users/panda01/events{/privacy}","received_events_url":"https://api.github.com/users/panda01/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-01-22T21:53:58Z","updated_at":"2015-05-01T22:03:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/kibana/pulls/2731","html_url":"https://github.com/elastic/kibana/pull/2731","diff_url":"https://github.com/elastic/kibana/pull/2731.diff","patch_url":"https://github.com/elastic/kibana/pull/2731.patch"},"body":"Fixes #2882\r\n\r\nPrereq PRs:\r\n - [x] #3640\r\n - [x] #3518 \r\n - [x] #3577\r\n - [x] #3685 \r\n - [ ] #3704\r\n\r\nThis PR adds an initial implementation of field formatters. The default formats are defined in the \"stringify\" module, and registered with the `registry/field_formats` registry. The formats registered with the registry declare their type compatibility, which makes them an option when choosing the format for a particular field.\r\n\r\nEvery field type has a default field format, which is defined in the `defaultFieldFormats` config variable. This variable defines the default format for field types, but also a default for the default.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1329312/7073415/3ab26450-dea8-11e4-9cb7-e6bf75af1d43.png)\r\n\r\nModifying the format for a field is done within the index pattern settings. In the field table, a new `format` column shows the name of the format in use for that field. Clicking the cell reveals a select box, which when changed will update the format specified for that field. Choosing the `- default -` setting will cause that field to once again inherit the default format for that field type.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1329312/7073433/56abd7e0-dea8-11e4-934a-3ba2b71fd170.png)\r\n![image](https://cloud.githubusercontent.com/assets/1329312/7073445/62691bd8-dea8-11e4-908a-7fde1f62e464.png)\r\n\r\nThe non-default format names for each field are stored in the `fieldFormatMap` property on the indexPattern object, helping format names persist across field-list refreshes."},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/98251534","html_url":"https://github.com/elastic/kibana/pull/2731#issuecomment-98251534","issue_url":"https://api.github.com/repos/elastic/kibana/issues/2731","id":98251534,"user":{"login":"spalger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spalger","html_url":"https://github.com/spalger","followers_url":"https://api.github.com/users/spalger/followers","following_url":"https://api.github.com/users/spalger/following{/other_user}","gists_url":"https://api.github.com/users/spalger/gists{/gist_id}","starred_url":"https://api.github.com/users/spalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalger/subscriptions","organizations_url":"https://api.github.com/users/spalger/orgs","repos_url":"https://api.github.com/users/spalger/repos","events_url":"https://api.github.com/users/spalger/events{/privacy}","received_events_url":"https://api.github.com/users/spalger/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T22:03:49Z","updated_at":"2015-05-01T22:03:49Z","body":"@w33ble good find, for now just putting a warning in the field editor and solving in #3735"}}