Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Same filename on different RTC Component folder

 Is there a way to detect that same filename was used in different Component folders within the same Project Area?

0 votes



3 answers

Permanent link
There is nothing built-in to detect this, but you could write a custom pre-condition.

Do you mean within a single stream, or across all streams?

Do you want the detection on checkin time (i.e. workspace update), or at stream delivery time?

0 votes

Comments

@Geoffrey

The scenario is within a single stream. Better if we can have it on check-in time but having it at stream delivery time would also work for us.

Doing this at checkin time would be very expensive.   Doing this at deliver time would be even more expensive.  Just for interest's sake, why would you want such a precondition?   The whole point of file system directories is so that you can have files with the same name in different directories.


Permanent link

If you want to have it during check-in, it will crate lot of overhead to RTC which isn't ideal.

You could do some passive scripting do this. It's a lot of work though. This could be a like a scheduled script which can run every night.

0 votes


Permanent link

Custom server level check-in preconditions/advisors can be created for RTC 6.0.5 and higher. This is described here:
  https://jazz.net/library/article/89651

Note that Karthik is right and the computational requirements/performance penalty will likely be huge dependent on the number of components and files per component.

Also note that the built in pre-conditon "Restrict Check-in of Resources With the Same Name" only looks at the same component on the same repository workspace and not in all the history of the component, likely for a similar reason.

0 votes

Comments

I believe that pre-condition only looks at files in the workspace in the same directory as the file being checked in ... not at all files in the component. 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 23 '18, 2:47 a.m.

Question was seen: 1,954 times

Last updated: Apr 01 '18, 12:46 a.m.

Confirmation Cancel Confirm