{"action":"opened","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1508","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1508/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1508/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1508/events","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/1508","id":54509242,"number":1508,"title":"[github] [dataverse] [production] Dropdown for current branch on Files page resets to default on folder collapse","user":{"login":"rliebz","id":5321575,"avatar_url":"https://avatars.githubusercontent.com/u/5321575?v=3","gravatar_id":"","url":"https://api.github.com/users/rliebz","html_url":"https://github.com/rliebz","followers_url":"https://api.github.com/users/rliebz/followers","following_url":"https://api.github.com/users/rliebz/following{/other_user}","gists_url":"https://api.github.com/users/rliebz/gists{/gist_id}","starred_url":"https://api.github.com/users/rliebz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rliebz/subscriptions","organizations_url":"https://api.github.com/users/rliebz/orgs","repos_url":"https://api.github.com/users/rliebz/repos","events_url":"https://api.github.com/users/rliebz/events{/privacy}","received_events_url":"https://api.github.com/users/rliebz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-15T21:49:46Z","updated_at":"2015-01-15T21:49:46Z","closed_at":null,"body":"This occurs similarly on both GitHub and Dataverse with branches and versions, respectively. While the backends are largely different, the issue is the same. I'm on OSX Yosemite using Google Chrome. \r\n\r\nSteps to reproduce for GitHub:\r\n---\r\n1. Go to a project with the GitHub enabled on a repo with multiple branches and visit the Files tab.\r\n2. Click the dropdown and choose any branch other than the default. The files for that branch will be loaded.\r\n3. Click the name of the repo or the [-] icon to collapse it. \r\n    - At this point, the dropdown display will reset to the default branch.\r\n4. Re-open the folder. The dropdown displays the name for the default branch, while the contents of the repo are from the non-default branch that was selected in step 2. The action buttons for the repo correspond to the default branch as well. \r\n\r\nExpected Behavior\r\n---\r\nAfter collapsing the repo, the branch will not change from what is currently selected.\r\n\r\nActual Behavior\r\n---\r\nAfter collapsing the repo, the branch will always appear reset to the default branch. Contents of the repo are unaffected."}}