{"action":"created","comment":{"url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/comments/35357783","id":35357783,"diff_hunk":"@@ -347,9 +347,21 @@ def set_selected_topics(self, selected_topics):\n                                                          len(selected_topics)))\n         self._selected_topics = selected_topics\n \n+    # TODO(Enhancement) Save/Restore tree expansion state\n+    def save_settings(self, plugin_settings, instance_settings):\n+        header_state = self.topics_tree_widget.header().saveState()\n+        instance_settings.set_value('tree_widget_header_state', header_state)\n+        instance_settings.set_value('settings_exist', True)\n+\n+    def restore_settings(self, pluggin_settings, instance_settings):\n+        if not instance_settings.value('settings_exist'):\n+            return\n+        if instance_settings.contains('tree_widget_header_state'):\n+            header_state = instance_settings.value('tree_widget_header_state')\n+            if not self.topics_tree_widget.header().restoreState(header_state):\n+                rospy.logwarn(\"Failed to restore state, using defaults...\")","path":"rqt_topic/src/rqt_topic/topic_widget.py","position":16,"original_position":16,"commit_id":"d213d7839979e355a12a67d25e147a2447fdcd4c","original_commit_id":"d213d7839979e355a12a67d25e147a2447fdcd4c","user":{"login":"dirk-thomas","id":1335366,"avatar_url":"https://avatars.githubusercontent.com/u/1335366?v=3","gravatar_id":"","url":"https://api.github.com/users/dirk-thomas","html_url":"https://github.com/dirk-thomas","followers_url":"https://api.github.com/users/dirk-thomas/followers","following_url":"https://api.github.com/users/dirk-thomas/following{/other_user}","gists_url":"https://api.github.com/users/dirk-thomas/gists{/gist_id}","starred_url":"https://api.github.com/users/dirk-thomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirk-thomas/subscriptions","organizations_url":"https://api.github.com/users/dirk-thomas/orgs","repos_url":"https://api.github.com/users/dirk-thomas/repos","events_url":"https://api.github.com/users/dirk-thomas/events{/privacy}","received_events_url":"https://api.github.com/users/dirk-thomas/received_events","type":"User","site_admin":false},"body":"If you want to keep it the message should state which plugin and that the header state failed to restore.","created_at":"2015-07-23T18:54:10Z","updated_at":"2015-07-23T18:54:10Z","html_url":"https://github.com/ros-visualization/rqt_common_plugins/pull/327#discussion_r35357783","pull_request_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/327","_links":{"self":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/comments/35357783"},"html":{"href":"https://github.com/ros-visualization/rqt_common_plugins/pull/327#discussion_r35357783"},"pull_request":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/327"}}},"pull_request":{"url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/327","id":40416383,"html_url":"https://github.com/ros-visualization/rqt_common_plugins/pull/327","diff_url":"https://github.com/ros-visualization/rqt_common_plugins/pull/327.diff","patch_url":"https://github.com/ros-visualization/rqt_common_plugins/pull/327.patch","issue_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues/327","number":327,"state":"open","locked":false,"title":"rqt_topic: Save/Restore header state, Column ordering","user":{"login":"ablasdel","id":2374428,"avatar_url":"https://avatars.githubusercontent.com/u/2374428?v=3","gravatar_id":"","url":"https://api.github.com/users/ablasdel","html_url":"https://github.com/ablasdel","followers_url":"https://api.github.com/users/ablasdel/followers","following_url":"https://api.github.com/users/ablasdel/following{/other_user}","gists_url":"https://api.github.com/users/ablasdel/gists{/gist_id}","starred_url":"https://api.github.com/users/ablasdel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ablasdel/subscriptions","organizations_url":"https://api.github.com/users/ablasdel/orgs","repos_url":"https://api.github.com/users/ablasdel/repos","events_url":"https://api.github.com/users/ablasdel/events{/privacy}","received_events_url":"https://api.github.com/users/ablasdel/received_events","type":"User","site_admin":false},"body":"Current value is clearly the most important of these fields and should come first by default.","created_at":"2015-07-21T02:10:20Z","updated_at":"2015-07-23T18:54:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fffaa9178c1958264ddc2d7bb84526ce92ac0af9","assignee":{"login":"ablasdel","id":2374428,"avatar_url":"https://avatars.githubusercontent.com/u/2374428?v=3","gravatar_id":"","url":"https://api.github.com/users/ablasdel","html_url":"https://github.com/ablasdel","followers_url":"https://api.github.com/users/ablasdel/followers","following_url":"https://api.github.com/users/ablasdel/following{/other_user}","gists_url":"https://api.github.com/users/ablasdel/gists{/gist_id}","starred_url":"https://api.github.com/users/ablasdel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ablasdel/subscriptions","organizations_url":"https://api.github.com/users/ablasdel/orgs","repos_url":"https://api.github.com/users/ablasdel/repos","events_url":"https://api.github.com/users/ablasdel/events{/privacy}","received_events_url":"https://api.github.com/users/ablasdel/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/327/commits","review_comments_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/327/comments","review_comment_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues/327/comments","statuses_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/statuses/d213d7839979e355a12a67d25e147a2447fdcd4c","head":{"label":"ros-visualization:ablasdel-rqt-topic-reorder-columns-1","ref":"ablasdel-rqt-topic-reorder-columns-1","sha":"d213d7839979e355a12a67d25e147a2447fdcd4c","user":{"login":"ros-visualization","id":2328629,"avatar_url":"https://avatars.githubusercontent.com/u/2328629?v=3","gravatar_id":"","url":"https://api.github.com/users/ros-visualization","html_url":"https://github.com/ros-visualization","followers_url":"https://api.github.com/users/ros-visualization/followers","following_url":"https://api.github.com/users/ros-visualization/following{/other_user}","gists_url":"https://api.github.com/users/ros-visualization/gists{/gist_id}","starred_url":"https://api.github.com/users/ros-visualization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros-visualization/subscriptions","organizations_url":"https://api.github.com/users/ros-visualization/orgs","repos_url":"https://api.github.com/users/ros-visualization/repos","events_url":"https://api.github.com/users/ros-visualization/events{/privacy}","received_events_url":"https://api.github.com/users/ros-visualization/received_events","type":"Organization","site_admin":false},"repo":{"id":7289642,"name":"rqt_common_plugins","full_name":"ros-visualization/rqt_common_plugins","owner":{"login":"ros-visualization","id":2328629,"avatar_url":"https://avatars.githubusercontent.com/u/2328629?v=3","gravatar_id":"","url":"https://api.github.com/users/ros-visualization","html_url":"https://github.com/ros-visualization","followers_url":"https://api.github.com/users/ros-visualization/followers","following_url":"https://api.github.com/users/ros-visualization/following{/other_user}","gists_url":"https://api.github.com/users/ros-visualization/gists{/gist_id}","starred_url":"https://api.github.com/users/ros-visualization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros-visualization/subscriptions","organizations_url":"https://api.github.com/users/ros-visualization/orgs","repos_url":"https://api.github.com/users/ros-visualization/repos","events_url":"https://api.github.com/users/ros-visualization/events{/privacy}","received_events_url":"https://api.github.com/users/ros-visualization/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ros-visualization/rqt_common_plugins","description":"","fork":false,"url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins","forks_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/forks","keys_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/teams","hooks_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/hooks","issue_events_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues/events{/number}","events_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/events","assignees_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/assignees{/user}","branches_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/branches{/branch}","tags_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/tags","blobs_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/languages","stargazers_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/stargazers","contributors_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/contributors","subscribers_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/subscribers","subscription_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/subscription","commits_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/contents/{+path}","compare_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/merges","archive_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/downloads","issues_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues{/number}","pulls_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/labels{/name}","releases_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/releases{/id}","created_at":"2012-12-22T19:34:02Z","updated_at":"2015-04-30T18:06:48Z","pushed_at":"2015-07-23T18:45:25Z","git_url":"git://github.com/ros-visualization/rqt_common_plugins.git","ssh_url":"git@github.com:ros-visualization/rqt_common_plugins.git","clone_url":"https://github.com/ros-visualization/rqt_common_plugins.git","svn_url":"https://github.com/ros-visualization/rqt_common_plugins","homepage":"","size":10150,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":60,"forks":68,"open_issues":60,"watchers":13,"default_branch":"groovy-devel"}},"base":{"label":"ros-visualization:groovy-devel","ref":"groovy-devel","sha":"c5b877b02a83a270cbe02d0d35316ffc46c09d9f","user":{"login":"ros-visualization","id":2328629,"avatar_url":"https://avatars.githubusercontent.com/u/2328629?v=3","gravatar_id":"","url":"https://api.github.com/users/ros-visualization","html_url":"https://github.com/ros-visualization","followers_url":"https://api.github.com/users/ros-visualization/followers","following_url":"https://api.github.com/users/ros-visualization/following{/other_user}","gists_url":"https://api.github.com/users/ros-visualization/gists{/gist_id}","starred_url":"https://api.github.com/users/ros-visualization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros-visualization/subscriptions","organizations_url":"https://api.github.com/users/ros-visualization/orgs","repos_url":"https://api.github.com/users/ros-visualization/repos","events_url":"https://api.github.com/users/ros-visualization/events{/privacy}","received_events_url":"https://api.github.com/users/ros-visualization/received_events","type":"Organization","site_admin":false},"repo":{"id":7289642,"name":"rqt_common_plugins","full_name":"ros-visualization/rqt_common_plugins","owner":{"login":"ros-visualization","id":2328629,"avatar_url":"https://avatars.githubusercontent.com/u/2328629?v=3","gravatar_id":"","url":"https://api.github.com/users/ros-visualization","html_url":"https://github.com/ros-visualization","followers_url":"https://api.github.com/users/ros-visualization/followers","following_url":"https://api.github.com/users/ros-visualization/following{/other_user}","gists_url":"https://api.github.com/users/ros-visualization/gists{/gist_id}","starred_url":"https://api.github.com/users/ros-visualization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros-visualization/subscriptions","organizations_url":"https://api.github.com/users/ros-visualization/orgs","repos_url":"https://api.github.com/users/ros-visualization/repos","events_url":"https://api.github.com/users/ros-visualization/events{/privacy}","received_events_url":"https://api.github.com/users/ros-visualization/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ros-visualization/rqt_common_plugins","description":"","fork":false,"url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins","forks_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/forks","keys_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/teams","hooks_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/hooks","issue_events_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues/events{/number}","events_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/events","assignees_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/assignees{/user}","branches_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/branches{/branch}","tags_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/tags","blobs_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/languages","stargazers_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/stargazers","contributors_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/contributors","subscribers_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/subscribers","subscription_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/subscription","commits_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/contents/{+path}","compare_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/merges","archive_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/downloads","issues_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues{/number}","pulls_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/labels{/name}","releases_url":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/releases{/id}","created_at":"2012-12-22T19:34:02Z","updated_at":"2015-04-30T18:06:48Z","pushed_at":"2015-07-23T18:45:25Z","git_url":"git://github.com/ros-visualization/rqt_common_plugins.git","ssh_url":"git@github.com:ros-visualization/rqt_common_plugins.git","clone_url":"https://github.com/ros-visualization/rqt_common_plugins.git","svn_url":"https://github.com/ros-visualization/rqt_common_plugins","homepage":"","size":10150,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":60,"forks":68,"open_issues":60,"watchers":13,"default_branch":"groovy-devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/327"},"html":{"href":"https://github.com/ros-visualization/rqt_common_plugins/pull/327"},"issue":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues/327"},"comments":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/issues/327/comments"},"review_comments":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/327/comments"},"review_comment":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/pulls/327/commits"},"statuses":{"href":"https://api.github.com/repos/ros-visualization/rqt_common_plugins/statuses/d213d7839979e355a12a67d25e147a2447fdcd4c"}}}}