Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branches in branch mappings cannot contain a '/' #230

Open
Nick-Hall opened this issue Jun 15, 2017 · 7 comments
Open

Branches in branch mappings cannot contain a '/' #230

Nick-Hall opened this issue Jun 15, 2017 · 7 comments

Comments

@Nick-Hall
Copy link

When I click "Update Mappings" with a branch set to "maintenance/gramps50" it changes to "gramps50".

@dregad
Copy link
Member

dregad commented Jun 16, 2017

Which VCS plugin is this with ?

@dregad
Copy link
Member

dregad commented Jun 16, 2017

Nevermind, I just saw you mentioned this in #229

@dregad
Copy link
Member

dregad commented Jun 16, 2017

I'm not able to reproduce this.
screenshot-20170616-1202

Which version of SI plugin are you using ?

@Nick-Hall
Copy link
Author

We are using Source Control Integration 2.0.3 and Source GitHub Integration 2.0.0.

@Nick-Hall
Copy link
Author

I found the problem. The branch name cannot be modified. I created a mapping with "gramps50" by mistake, and then tried to change it to "maintenance/gramps50".

The solution was to delete the mapping and create a new one.

@dregad
Copy link
Member

dregad commented Jun 19, 2017

The branch name cannot be modified

Thanks for the feedback. I never realized that until today... And in fact I'm not sure it can be fixed easily as the table uses repo_id + branch name as primary key, and not an arbitrary ID field.

To avoid future confusion, the simplest would be to make the field read-only.

I'll also check if it's feasible to modify the code to allow updating the branch name, but that might require a schema change.

@dregad
Copy link
Member

dregad commented Sep 14, 2017

To avoid future confusion, the simplest would be to make the field read-only.

#243 has been opened to track this as a workaround

This issue remains open to track the better fix, which would require adding a primary key to the branch table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants