Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to filter out files for review when selecting a Change Set

Jim Foster April 26, 2012

I would like to know if it is possible to configure Crucible to filter out certain kinds of files, by wildcard file name, when a Change Set is selected for review.

Our projects contain files that get updated, but do not need to be reviewed. Namely, generated code and project files. For example I would like to filter out, *.sln, *.csproj, *.dbml, *.Designer.cs (but not *.cs).

Thanks,

Jim

1 answer

1 accepted

0 votes
Answer accepted
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 29, 2012

It's a bit other way. First you add the changeset and then remove what is not needed. Refer http://confluence.atlassian.com/display/CRUCIBLE/Selecting+the+Files+for+the+Review#SelectingtheFilesfortheReview-SelectingChangesetsforReview

The section says

Click the checkbox next to a changeset ID to add the entire changeset. Note,

  • You cannot add individual file revisions to a review, although you can remove them once the changeset is added. Click 'Remove all revisions from review' to remove all.
Jim Foster April 29, 2012

Thanks for the answer. Yes, I knew I could do that, I was just hoping that there was a way of adding a permenant filter up front so that I would not have to go in and remove files from each and every review. Thanks anyway.

Chii
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2012

You can add files to review using the 'search for files' option instead of changeset, then click on the advanced search (see https://img.skitch.com/20121012-dic6ebfc698n1mytgyky8sab81.png and https://img.skitch.com/20121012-ria7736dcafn7kncdmbmn53r2m.png ). You can then specify an eyeQL search for the specific changeset that you wish to review, and add in a filter to filter out all of the revisions that doesn't conform to your policy.

for example, to filter out all the xml and the zip files, use:

select revisions from dir "/" where csid=0c586d07b407c86ea24a5971bc953f24546037eb and (path not like "*.xml" and path not like "*.zip")

doing this will give you a list of revisions for the changeset, and you can then add them easily.

Jim Foster October 11, 2012

Hey Joe,

So where does that csid come from? And is that select storable in Cruible so it does not need to be typed each time? The list in the original post was just a sample list of things to filter out.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events