{"action":"created","issue":{"url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/issues/64","repository_url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api","labels_url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/issues/64/comments","events_url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/issues/64/events","html_url":"https://github.com/sc0ttkclark/wordpress-fields-api/issues/64","id":137986566,"number":64,"title":"Should Settings API be powered by Fields API, or should Fields API just implement the Settings API?","user":{"login":"sc0ttkclark","id":709662,"avatar_url":"https://avatars.githubusercontent.com/u/709662?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"sc0ttkclark","id":709662,"avatar_url":"https://avatars.githubusercontent.com/u/709662?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false},"assignees":[{"login":"sc0ttkclark","id":709662,"avatar_url":"https://avatars.githubusercontent.com/u/709662?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/milestones/2","html_url":"https://github.com/sc0ttkclark/wordpress-fields-api/milestones/Fields%20API%200.1","labels_url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/milestones/2/labels","id":1138311,"number":2,"title":"Fields API 0.1","description":null,"creator":{"login":"sc0ttkclark","id":709662,"avatar_url":"https://avatars.githubusercontent.com/u/709662?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":38,"state":"open","created_at":"2015-05-28T15:33:37Z","updated_at":"2016-03-09T09:24:11Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-03-02T20:40:21Z","updated_at":"2016-07-13T05:22:06Z","closed_at":null,"body":"Right now, our Settings API implementation in the Fields API works nicely as an integration that utilizes the Settings API itself. That means it stores settings in two places (when registered through the Fields API).\r\n\r\nIf the Settings API itself relied on communicating with the Fields API instead, that would maintain backwards compatibility at the same time as having one datastore for those configurations.\r\n\r\nFurther, any plugins and themes utilizing the Settings API would automatically be accessible through any REST API endpoints that utilize the Fields API.\r\n\r\n- [x] add_settings_section() to add section to `settings-$page` form, callback is the 'description'\r\n- [x] add_settings_field() to add control to section, callback is control output\r\n- [x] do_settings_sections() to get form for `settings-$page` and maybe_render()\r\n- [ ] do_settings_fields() is tricky because of the section maybe_render() outputs a <table> but this function outputs only <tr> rows, the methods are protected which output the <tr> rows, more work needs to be done for compatibility there"},"comment":{"url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/issues/comments/232259223","html_url":"https://github.com/sc0ttkclark/wordpress-fields-api/issues/64#issuecomment-232259223","issue_url":"https://api.github.com/repos/sc0ttkclark/wordpress-fields-api/issues/64","id":232259223,"user":{"login":"sc0ttkclark","id":709662,"avatar_url":"https://avatars.githubusercontent.com/u/709662?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T05:22:06Z","updated_at":"2016-07-13T05:22:06Z","body":"+1 on that it ultimately should be powered by Fields API (in addition to other things like Network Settings, etc)"}}
{"actor":{"display_login":"sc0ttkclark"}}