{"action":"created","issue":{"url":"https://api.github.com/repos/solidusio/solidus/issues/182","labels_url":"https://api.github.com/repos/solidusio/solidus/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/solidusio/solidus/issues/182/comments","events_url":"https://api.github.com/repos/solidusio/solidus/issues/182/events","html_url":"https://github.com/solidusio/solidus/pull/182","id":95498946,"number":182,"title":"Static model preferences for Gateways","user":{"login":"jhawthorn","id":131752,"avatar_url":"https://avatars.githubusercontent.com/u/131752?v=3","gravatar_id":"","url":"https://api.github.com/users/jhawthorn","html_url":"https://github.com/jhawthorn","followers_url":"https://api.github.com/users/jhawthorn/followers","following_url":"https://api.github.com/users/jhawthorn/following{/other_user}","gists_url":"https://api.github.com/users/jhawthorn/gists{/gist_id}","starred_url":"https://api.github.com/users/jhawthorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhawthorn/subscriptions","organizations_url":"https://api.github.com/users/jhawthorn/orgs","repos_url":"https://api.github.com/users/jhawthorn/repos","events_url":"https://api.github.com/users/jhawthorn/events{/privacy}","received_events_url":"https://api.github.com/users/jhawthorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/solidusio/solidus/milestones/2","html_url":"https://github.com/solidusio/solidus/milestones/1.0.0","labels_url":"https://api.github.com/repos/solidusio/solidus/milestones/2/labels","id":1216818,"number":2,"title":"1.0.0","description":"Issues we require for 1.0","creator":{"login":"jhawthorn","id":131752,"avatar_url":"https://avatars.githubusercontent.com/u/131752?v=3","gravatar_id":"","url":"https://api.github.com/users/jhawthorn","html_url":"https://github.com/jhawthorn","followers_url":"https://api.github.com/users/jhawthorn/followers","following_url":"https://api.github.com/users/jhawthorn/following{/other_user}","gists_url":"https://api.github.com/users/jhawthorn/gists{/gist_id}","starred_url":"https://api.github.com/users/jhawthorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhawthorn/subscriptions","organizations_url":"https://api.github.com/users/jhawthorn/orgs","repos_url":"https://api.github.com/users/jhawthorn/repos","events_url":"https://api.github.com/users/jhawthorn/events{/privacy}","received_events_url":"https://api.github.com/users/jhawthorn/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":3,"state":"open","created_at":"2015-07-20T20:15:05Z","updated_at":"2015-07-23T14:29:35Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-07-16T18:43:16Z","updated_at":"2015-07-23T17:05:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/solidusio/solidus/pulls/182","html_url":"https://github.com/solidusio/solidus/pull/182","diff_url":"https://github.com/solidusio/solidus/pull/182.diff","patch_url":"https://github.com/solidusio/solidus/pull/182.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/solidusio/solidus/issues/comments/124168593","html_url":"https://github.com/solidusio/solidus/pull/182#issuecomment-124168593","issue_url":"https://api.github.com/repos/solidusio/solidus/issues/182","id":124168593,"user":{"login":"adammathys","id":876067,"avatar_url":"https://avatars.githubusercontent.com/u/876067?v=3","gravatar_id":"","url":"https://api.github.com/users/adammathys","html_url":"https://github.com/adammathys","followers_url":"https://api.github.com/users/adammathys/followers","following_url":"https://api.github.com/users/adammathys/following{/other_user}","gists_url":"https://api.github.com/users/adammathys/gists{/gist_id}","starred_url":"https://api.github.com/users/adammathys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammathys/subscriptions","organizations_url":"https://api.github.com/users/adammathys/orgs","repos_url":"https://api.github.com/users/adammathys/repos","events_url":"https://api.github.com/users/adammathys/events{/privacy}","received_events_url":"https://api.github.com/users/adammathys/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T17:05:21Z","updated_at":"2015-07-23T17:05:21Z","body":"As with [spree_config_preferences](https://github.com/bonobos/spree_config_preferences), it's still possible to view the preferences in the admin when loading from a YAML file. However, it now hides all of the preference fields. Making it impossible to update them without first consciously deciding to convert to the database store preferences. (Also, the assignment operation is a no-op when using the static preferences.)\r\n![static](https://cloud.githubusercontent.com/assets/876067/8856735/7098a4aa-3121-11e5-95c1-244d8d5c585f.png)\r\n\r\nFor reference, this is what it looks like when editing a gateway with preferences stored in the database:\r\n![dynamic](https://cloud.githubusercontent.com/assets/876067/8856764/bdc55d72-3121-11e5-8ed7-24a2219d2bdc.png)"}}