{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/967","repository_url":"https://api.github.com/repos/cloudfoundry/cli","labels_url":"https://api.github.com/repos/cloudfoundry/cli/issues/967/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/issues/967/comments","events_url":"https://api.github.com/repos/cloudfoundry/cli/issues/967/events","html_url":"https://github.com/cloudfoundry/cli/issues/967","id":180326632,"number":967,"title":"cf marketplace lists disabled plans","user":{"login":"jamesjoshuahill","id":4203006,"avatar_url":"https://avatars.githubusercontent.com/u/4203006?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesjoshuahill","html_url":"https://github.com/jamesjoshuahill","followers_url":"https://api.github.com/users/jamesjoshuahill/followers","following_url":"https://api.github.com/users/jamesjoshuahill/following{/other_user}","gists_url":"https://api.github.com/users/jamesjoshuahill/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesjoshuahill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesjoshuahill/subscriptions","organizations_url":"https://api.github.com/users/jamesjoshuahill/orgs","repos_url":"https://api.github.com/users/jamesjoshuahill/repos","events_url":"https://api.github.com/users/jamesjoshuahill/events{/privacy}","received_events_url":"https://api.github.com/users/jamesjoshuahill/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudfoundry/cli/labels/in%20progress","name":"in progress","color":"3461AD"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-30T15:03:56Z","updated_at":"2016-10-03T13:30:03Z","closed_at":null,"body":"* Commands\r\n```bash\r\ncf create-service-broker SERVICE_BROKER USERNAME PASSWORD URL\r\n# Note: the service offering has more than one plan\r\n\r\ncf enable-service-access SERVICE -p PLAN_NAME\r\n\r\ncf marketplace\r\n# OR\r\ncf marketplace -s SERVICE\r\n```\r\n\r\n* What occurred, incl. error and/or stack trace\r\nThe output of `cf marketplace` lists all the plans of the service offering.\r\nThe output of `cf marketplace -s SERVICE_NAME` lists all the plans of the service offering.\r\n\r\n* What you expected to occur\r\nWe expected `marketplace` commands to list one plan only, i.e. the PLAN_NAME used in the `cf enable-service-access` command.\r\n\r\n* CLI Version  \r\n6.22.1+6b7af9c-2016-09-24\r\n\r\n* CC API Endpoint Version  \r\n2.57.0\r\n\r\n* CF Trace\r\nHere is an excerpt that to show that we noticed that `public` is not true for both plans:\r\n```\r\nREQUEST\r\nGET /v2/service_plans?q=service_guid%3A<SERVICE_PLAN_GUID> HTTP/1.1\r\n\r\nRESPONSE\r\n{\r\n  \"total_results\": 2,\r\n  \"total_pages\": 1,\r\n  \"prev_url\": null,\r\n  \"next_url\": null,\r\n  \"resources\": [\r\n    {\r\n      \"metadata\": {\r\n        ...\r\n      },\r\n      \"entity\": {\r\n        \"name\": \"100mb\",\r\n        \"free\": true,\r\n        ...\r\n        \"public\": true,\r\n        \"active\": true,\r\n      }\r\n    },\r\n    {\r\n      \"metadata\": {\r\n        ...\r\n      },\r\n      \"entity\": {\r\n        \"name\": \"1gb\",\r\n        \"free\": true,\r\n        ...\r\n        \"public\": false,\r\n        \"active\": true,\r\n        ...\r\n      }\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n* Platform & Shell Details  \r\nMac OS X 10.11.6\r\niTerm 3.0.9\r\nbash 4.4"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/comments/251105747","html_url":"https://github.com/cloudfoundry/cli/issues/967#issuecomment-251105747","issue_url":"https://api.github.com/repos/cloudfoundry/cli/issues/967","id":251105747,"user":{"login":"jamesjoshuahill","id":4203006,"avatar_url":"https://avatars.githubusercontent.com/u/4203006?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesjoshuahill","html_url":"https://github.com/jamesjoshuahill","followers_url":"https://api.github.com/users/jamesjoshuahill/followers","following_url":"https://api.github.com/users/jamesjoshuahill/following{/other_user}","gists_url":"https://api.github.com/users/jamesjoshuahill/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesjoshuahill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesjoshuahill/subscriptions","organizations_url":"https://api.github.com/users/jamesjoshuahill/orgs","repos_url":"https://api.github.com/users/jamesjoshuahill/repos","events_url":"https://api.github.com/users/jamesjoshuahill/events{/privacy}","received_events_url":"https://api.github.com/users/jamesjoshuahill/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T13:30:03Z","updated_at":"2016-10-03T13:30:03Z","body":"Thanks @nickwei84. Yes, I can confirm that this was behaviour was seen as the admin user. Why does the admin user see disabled (non-public) plans?"}}
{"actor":{"display_login":"jamesjoshuahill"}}