{"action":"created","issue":{"url":"https://api.github.com/repos/DynamoDS/DynamoRevit/issues/854","repository_url":"https://api.github.com/repos/DynamoDS/DynamoRevit","labels_url":"https://api.github.com/repos/DynamoDS/DynamoRevit/issues/854/labels{/name}","comments_url":"https://api.github.com/repos/DynamoDS/DynamoRevit/issues/854/comments","events_url":"https://api.github.com/repos/DynamoDS/DynamoRevit/issues/854/events","html_url":"https://github.com/DynamoDS/DynamoRevit/pull/854","id":136372045,"number":854,"title":"MAGN-7419 Revit/Category/Create/Category.ByName is busted (2017)","user":{"login":"sm6srw","id":7033002,"avatar_url":"https://avatars.githubusercontent.com/u/7033002?v=3","gravatar_id":"","url":"https://api.github.com/users/sm6srw","html_url":"https://github.com/sm6srw","followers_url":"https://api.github.com/users/sm6srw/followers","following_url":"https://api.github.com/users/sm6srw/following{/other_user}","gists_url":"https://api.github.com/users/sm6srw/gists{/gist_id}","starred_url":"https://api.github.com/users/sm6srw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sm6srw/subscriptions","organizations_url":"https://api.github.com/users/sm6srw/orgs","repos_url":"https://api.github.com/users/sm6srw/repos","events_url":"https://api.github.com/users/sm6srw/events{/privacy}","received_events_url":"https://api.github.com/users/sm6srw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T12:19:21Z","updated_at":"2016-02-26T20:16:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DynamoDS/DynamoRevit/pulls/854","html_url":"https://github.com/DynamoDS/DynamoRevit/pull/854","diff_url":"https://github.com/DynamoDS/DynamoRevit/pull/854.diff","patch_url":"https://github.com/DynamoDS/DynamoRevit/pull/854.patch"},"body":"### Purpose\r\n\r\n###### Allow Category.ByName to accept the category name, the category enum name or the truncated category enum name. For example:\r\n\"Cable Trays\"\r\n\"OST_CableTray\"\r\n\"CableTray\"\r\n![image](https://cloud.githubusercontent.com/assets/7033002/13319487/ec3e76e8-db8f-11e5-944a-d8925b5b856c.png)\r\n\r\n\r\n* Only the category enum name has been supported before.\r\n\r\n###### Display the category name with proper display of subcategories in the Categories combo:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/7033002/13319393/65076d74-db8f-11e5-97d6-e4088ff80dac.png)\r\n\r\n* Subcategories are displayed as \"Parent Category - Subcategory\".\r\n* Serialization has not changed. The truncated enum name is still used.\r\n* Internal/deprecated categories are now filtered out. This will fix \"MAGN-6909 Categories drop down fails for several categories\".\r\n\r\n\r\n### Declarations\r\n\r\nCheck these if you believe they are true\r\n\r\n- [x] The code base is in a better state after this PR\r\n- [x] Is documented according to the [standards](https://github.com/DynamoDS/Dynamo/wiki/Coding-Standards)\r\n- [x] The level of testing this PR includes is appropriate\r\n- [ ] User facing strings, if any, are extracted into `*.resx` files\r\n- [ ] All tests pass using the self-service CI.\r\n- [x] Snapshot of UI changes, if any.\r\n\r\n\r\n### Reviewers\r\n\r\n@mjkkirschner \r\n@QilongTang \r\n\r\n* This PR is for Revit 2017\r\n\r\n### FYIs\r\n\r\n@jnealb "},"comment":{"url":"https://api.github.com/repos/DynamoDS/DynamoRevit/issues/comments/189464065","html_url":"https://github.com/DynamoDS/DynamoRevit/pull/854#issuecomment-189464065","issue_url":"https://api.github.com/repos/DynamoDS/DynamoRevit/issues/854","id":189464065,"user":{"login":"QilongTang","id":3942418,"avatar_url":"https://avatars.githubusercontent.com/u/3942418?v=3","gravatar_id":"","url":"https://api.github.com/users/QilongTang","html_url":"https://github.com/QilongTang","followers_url":"https://api.github.com/users/QilongTang/followers","following_url":"https://api.github.com/users/QilongTang/following{/other_user}","gists_url":"https://api.github.com/users/QilongTang/gists{/gist_id}","starred_url":"https://api.github.com/users/QilongTang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QilongTang/subscriptions","organizations_url":"https://api.github.com/users/QilongTang/orgs","repos_url":"https://api.github.com/users/QilongTang/repos","events_url":"https://api.github.com/users/QilongTang/events{/privacy}","received_events_url":"https://api.github.com/users/QilongTang/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T20:16:46Z","updated_at":"2016-02-26T20:16:46Z","body":"LGTM"}}