Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Too "loose" regex in nested views #95

Open
Anigif opened this issue Dec 15, 2015 · 0 comments
Open

Too "loose" regex in nested views #95

Anigif opened this issue Dec 15, 2015 · 0 comments

Comments

@Anigif
Copy link

Anigif commented Dec 15, 2015

When nested views are created for the new branches, the regex used for each listview is project.*branch. But if you have two branches where one ends with the same as the other is called the regex will get too many jobs.

Consider we have a branch stuff and another called new_stuff in our project abc. When jobs are generated the jobs will be called abc-xxx-stuff and abc-xxx-new_stuff, but the view for stuff will also contain the new_stuff jobs as the regex for that view will be abc.*stuff. So the same problem would occur if you had a project called abcdef, since abc is the first part.

I think a solution would be just to add hyphens to the regex: project-.*-branch.

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

No branches or pull requests

1 participant