{"action":"created","issue":{"url":"https://api.github.com/repos/pivotal-cf/om/issues/226","repository_url":"https://api.github.com/repos/pivotal-cf/om","labels_url":"https://api.github.com/repos/pivotal-cf/om/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/pivotal-cf/om/issues/226/comments","events_url":"https://api.github.com/repos/pivotal-cf/om/issues/226/events","html_url":"https://github.com/pivotal-cf/om/issues/226","id":348505533,"node_id":"MDU6SXNzdWUzNDg1MDU1MzM=","number":226,"title":"`staged-config` does not handle selectors with spaces as their value","user":{"login":"jtarchie","id":75184,"node_id":"MDQ6VXNlcjc1MTg0","avatar_url":"https://avatars2.githubusercontent.com/u/75184?v=4","gravatar_id":"","url":"https://api.github.com/users/jtarchie","html_url":"https://github.com/jtarchie","followers_url":"https://api.github.com/users/jtarchie/followers","following_url":"https://api.github.com/users/jtarchie/following{/other_user}","gists_url":"https://api.github.com/users/jtarchie/gists{/gist_id}","starred_url":"https://api.github.com/users/jtarchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtarchie/subscriptions","organizations_url":"https://api.github.com/users/jtarchie/orgs","repos_url":"https://api.github.com/users/jtarchie/repos","events_url":"https://api.github.com/users/jtarchie/events{/privacy}","received_events_url":"https://api.github.com/users/jtarchie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T22:10:40Z","updated_at":"2018-08-07T22:10:41Z","closed_at":null,"author_association":"MEMBER","body":"When using the `staged-config` on the `p-redis` tile, the YAML file contained a selector property set as:\r\n\r\n```yaml\r\n  .properties.small_plan_selector:\r\n    value: Plan Active\r\n```\r\n\r\nThe implementations of `staged-config` assumes that the `value` of selector is also the the name used in the properties scoping. For example,\r\n\r\n```yaml\r\n  .properties.some_selector\r\n    value: small\r\n```\r\n\r\nwould filter out all properties that did not match the name `.properties.some_selector.small`.\r\n\r\nSince the value of the `p-redis` tile, all properties that weren't `.properties.small_plan_selector.Plan Active` were filtered out.\r\n\r\nIt turns out that the selector property name is not correct. *gasp*\r\n\r\nThe selector `value` above and the property name differ.\r\n\r\nBased on what we seem from the `p-redis` properties, we should be filtering out everything that is not `.properties.small_plan_selector.active`.\r\n\r\nI don't know if there is any way to programmatically do with the OM API without actually having the tile metdata."},"comment":{"url":"https://api.github.com/repos/pivotal-cf/om/issues/comments/411219513","html_url":"https://github.com/pivotal-cf/om/issues/226#issuecomment-411219513","issue_url":"https://api.github.com/repos/pivotal-cf/om/issues/226","id":411219513,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTIxOTUxMw==","user":{"login":"cf-gitbot","id":5589368,"node_id":"MDQ6VXNlcjU1ODkzNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/5589368?v=4","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T22:10:41Z","updated_at":"2018-08-07T22:10:41Z","author_association":"MEMBER","body":"We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the [story](https://www.pivotaltracker.com/story/show/159610987). \n\nThe labels on this github issue will be updated when the story is started."}}
{"actor":{"display_login":"cf-gitbot"}}