Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
List of target branches is no longer refreshed when switching target repository during merge request creation.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tobias Schäfer  
View profile  
 More options Aug 15 2012, 9:53 am
From: Tobias Schäfer <tosch...@googlemail.com>
Date: Wed, 15 Aug 2012 06:53:34 -0700 (PDT)
Local: Wed, Aug 15 2012 9:53 am
Subject: List of target branches is no longer refreshed when switching target repository during merge request creation.

Hello,

I guess I found a regression in Gitorious 2.2.

*What I did:*
I'm using Gitorious 2.2 with multiple repository clones. I would like to
create a merge request from one repository to another.

In the source repository I call "Request merge" and a page which contains
drop-downs for target repository, target branch and source branch is shown.
All three drop-downs are preselected with values. I now change the target
repository because I need another one than the default.

*What happened:*
The drop-down target branches is empty.

*What I expected:*
In previous versions of Gitorious (possibly 2.0) the drop-down with target
branches was refreshed depending on the selected target repository. Instead
of being empty it showed the branches of the target repository. This no
longer works.

*Note:* even if the target repository which was preselected is selected
again the list of target branches will remain empty

*A first analysis:*
When changing the drop-down target repository according to Firebug the
following POSTS are sent:
http://git/project/my-project/merge_requests/target_branches
http://git/project/my-project/merge_requests/commit_list

Both return with code 200 (OK), but the first POST returns an empty list
(there are no option elements in the select element):
<p>
  <label for="merge_request_target_branch">Target Branch</label><br />
  <small class="hint">The target branch you wish your changes to be merged
into</small><br />
  <select id="merge_request_target_branch"
name="merge_request[target_branch]"></select>
</p>

However, I have no idea why the request returns an empty list of target
branches.

Can someone confirm this as a bug? What information is needed to get this
fixed? I've been looking in the code and traced the list creation down to
http://gitorious.org/gitorious/mainline/blobs/master/app/views/merge_...
but I don't know where the collection "target_branches" is being created
and why it is empty.

btw, the following temporary hack leads to a JavaScript error if the list
of commits is empty and therefore there is no radio button with the index 0:

<!-- Note: Temporary hack ahead, remove during merge request page redesign.
  Having to select a range of commits is mandatory but not checked
  by default and not obvious to users. The merge request page needs
  overall redesign, until then we'll just select the whole commit by default
  after the commit-list table has finished rendering and initalizing. -->
<script>
  var selectFirstCommitRadioBtn = function(){
    $("#commit_table").find("input[type=radio]")[0].click();
  };
  setTimeout(selectFirstCommitRadioBtn,1000);
</script>

Regards
Tobias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Schäfer  
View profile  
 More options Oct 10 2012, 1:57 am
From: Tobias Schäfer <tosch...@googlemail.com>
Date: Tue, 9 Oct 2012 22:57:06 -0700 (PDT)
Local: Wed, Oct 10 2012 1:57 am
Subject: Re: List of target branches is no longer refreshed when switching target repository during merge request creation.

This bug was tracked as https://issues.gitorious.org/issues/125 and was
resolved yesterday. I can confirm that my issue has been fixed.

Marius, thanks for the patch.

Regards,
Tobias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »