list of views that has checkouts in a stream - clearcase

how to find the list of views that has checkouts in a stream in clearcase?
1.) cleartool lsstream -l streamname
Gives the list of views
2.) I need to create snapshot view and then list checkouts in that view
cleartool lsco -r
Is there any way to::
ie..,List of all views that has checkouts in a stream

No, unless those views are dynamic (in which case, you can mount them and do a cleartool lsco)
For snapshot view, you would need to access to a local loaded snapshot view, which can quickly become too expensive to do.
Another approach would be to
list activities in a stream
for each activity, describe the activity (listing each versions referenced in it)
If one of those version is checked out, it will be displayed as such, with the name of the view.
The other approach is to consider to vob which includes the roots of the components used in a stream:
cleartool descr -l vob:\aVobTag
That would list any view (UCM or not) which has at least one checked out file.
You can then describe each view (cleartool lsstream -view aview) in order to check if that view is an UCM view on the expected stream.

Related

How to hide Temporary tables in PgAdmin 4

In our project we have a long list of Temporary schemas being created in the DB.
I have to scroll through the whole list of Temporary schemas and then reach the one on which I am working.
Deleting or removing the schema is not under my control.
I have tried the documentation where it stated in Preference -> Browser -> Display -> Show system objects? switch is set to True, the client will display system objects such as system schemas (for example, pg_temp) or system columns (for example, xmin or ctid) in the tree control.
Thus I marked it as False but still I am able to see the list of Temporary tables.
Refreshed the connection also.
Is there any other way to hide the same? Or did I missed something?
In the current version, you can look under
Preferences > Browser > Display > Show system objects ?
The documentation says:
When the Show system objects? switch is set to True, the client will
display system objects such as system schemas (for example, pg_temp)
or system columns (for example, xmin or ctid) in the tree control.
So this will hide them. However, if you want to hide only the temp schemas an nothing else, you could mess with the exposed pgAdmin object that's available in the browser as a global object.
I've created a hack implementation. Feel free to try this, but use it at your own risk, I accept no liability if you lose any data or code.
schemaQuery = window.prompt('Type a string to remove schemas containing this substring:')
function closetemp(ns){
ns.forEach(n=>{
if(n._metadata.data._type == 'coll-schema'){
n._children.forEach(s=>{
if(s._fileName.indexOf(schemaQuery)!=-1){
pgAdmin.Browser.tree.remove(s)
}
})
}
if(n._children!=null){
closetemp(n._children)
}
})
}
closetemp(pgAdmin.Browser.tree.children())
Run that in the browser console and a box will pop up. Type "_temp_" and it will remove every schema containing the string "_temp_" form the browser tree.
It crawls the tree, finds the schemas, and removes the nodes from the tree. It might cause errors I am unaware of, but if you refresh the tree from the menu the temp schemas (or whatever schemas match your string) will appear again.
You could create a bookmarklet and save it so that you don't have to open the browser console. If you save this as a bookmark and set this as the URL, it will remove temp tables when you click on it:
javascript:(()=>{function%20closetemp(ns)%7B%0A%09ns.forEach(n%3D%3E%7B%0A%20%20%20%20if(n._metadata.data._type%20%3D%3D%20'coll-schema')%7B%0A%20%20%20%20%20%20n._children.forEach(s%3D%3E%7B%0A%20%20%20%20%20%20%20%20if(s._fileName.indexOf('_temp_')!%3D-1)%7B%0A%20%20%20%20%20%20%20%20%20%20pgAdmin.Browser.tree.remove(s)%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D)%0A%20%20%20%20%7D%0A%20%20%20%20if(n._children!%3Dnull)%7B%0A%20%20%20%20%09closetemp(n._children)%0A%20%20%20%20%7D%0A%20%20%7D)%0A%7D%0Aclosetemp(pgAdmin.Browser.tree.children())})()

content type not listed in drupal views

Trying to reset up a view in Drupal 7.18 for data in profile2 but when go to add content type, the profile type content is not listed to add.
I think I may have broken the table regarding this because it was working before I changed something and views reported something missing but still showed alright in preview of view but not on page of view where it just showed index list. I tried to fix things by deleting the view and starting again but as I said, profile 2 content type won't even show up.
Is there a way around having to restore with full backup because my last backup I've just realised included this error. Is there a way to repair or import just the profile 2 table (from another backup )?
If it is a 'user' view type, you may have to set up a relationship.
you need to create a view of "Profile Types".

How to view all changes delivered to a stream in RTC source control

How can I view all changes delivered to a stream and/or changes delivered by a specific developer ?
I could see the activities listed for a given ClearCase UCM stream, but I don't see anything with an RTC Stream.
I've been considering using a 'Work Item Query' but this does not seem to allow this functionality ?
You can search for change sets (a bit like you would list ClearCase activities sorted by owner):
Right-click on "Source-Control" and select "Search / Change sets": you will be able to make your query there.
Another less know place o see those change sets is in the "Team Dashboard" view, section "Events log", which you can filter by "Source control changes".
You will find more illustrations on "Change set searching" in:
The RTC feature page and this YouTube video.
The article "Finding Lost Content with Rational Team Concert" proposes some alternatives to change set searches.
This thread, which confirms "You can search for files with a given name, but you cannot currently search for files containing given text."
The result doesn't seem to display files directly through: using the field "Name begins with" is a way to limit the number of files included in those change sets.
And other enhancements are in progress for that feature: see this search.

How to update the property for all member baseline in UCM?

We have composite baseline for our components.
Whenever we release the product after recommend the baseline, I would change the property of baseline to change the promotion level.
By default the promotion level is "INITIAL".
While we release the product i would change the Promotion property as "EXTERNAL RELEASE".
But to do this, I have to go and edit each any every member baseline property.
Is there any way to make changes in composite baseline properties to replicate in it's member?
No, the re is no "inheritance" between the custom values of a composite baseline and its baseline member.
It is best to script the operation, by describing the composite baseline, extract the baseline members name, and do a cleartool mkattr -replace on each one with the new value.
(cleartool mkattr has a -recurs - recursive - option, but it would be for directory only, it doesn't work for non-file-system objects)
cleartool descr -fmt "%[depends_on]Cp\n" aCompositeBaseline#\aPVob
# for each member baselines
cleartool mkattr -replace PromotionLevel "EXTERNAL RELEASE" baseline:aBaseline#\aPVob
Note how I use the fully qualifed name of the object on which I want to modify the custom attribute value: baseline:aBaseline#\aPVob.
Since "EXTERNAL_RELEASE" isn't a default promotion level, you need to define it first: see "About creating custom promotion levels and attribute types for UCM baselines".

Active Directory

How to get the details of the deleted objects from Active directory using LDAP.
The deleted objects are stored in the separate container, to retrieve the objects have the look on this technet site.
It is the inbuilt feature and should have the operating system of Windows Server 2008 or higher.
*This answer comes from Rodney Anderson, contractor who sits next to me and happens to know AD quite well. He says email him with any questions you have (link provided)
Use dsquery.
http://support.microsoft.com/kb/258310 (LDAP Query)
...the other method is a DSquery from the command line using the following command you should be able to retrieve most attributes which remain in the tombstone (everything in one line): Just keep in mind that this query will not necessarily return all attributes which are preserved in a tombstone - some critical objects and changes of the list are hardcoded and will remain in the tombstone no matter what the searchflags state. This is the solution I used and it will take some tweaking for their domain.
dsquery * cn=schema,cn=configuration,dc=yourcomain,dc=com
-filter "(&(objectClass=AttributeSchema)(searchFlags:1.2.840.113556.1.4.803:=8))"
-scope subtree -attr name
On MSDN there is a nice article on finding tombstone objects in Active Directory using the .NET framework DirectorySearcher class.
Well unfortunately there isn't all that much data available from a deleted object. Only about enough data is retained to be able to replicate the deletion to other DC's from my experience. You can get what is available through System.DriectoryServices. Some of this seems to have to do with security and not wanting people to root around looking at old items.
To get the details of Deleted objects from active directory using LDAP server is before getting the details we should be aware of the administration limits.These administration limits are as such like InitRecvTimeout,MaxActiveQueries ,MaxConnections,MaxConnIdleTime,MaxPageSize,MaxPoolThreads,MaxQueryDuration,MaxValRange.
Once we get aware of the limits of the administration we should be able to Default the user setting.
After this go and view current policy setting...at the command prompt type LDAP setting press enter,then type in the connection and then once all the connection got displayed there and then see which all connection is not visible.This will make you known who all user are deleted at the LDAP.
You can use DirectorySearcher to list the Deleted objects with the Tombstone property set to true
using(DirectorySearcher srch = new DirectorySearcher(de))
{
//to return only deleted objects otherwise you can give any valid LDAP filter
srch.Filter = "isDeleted=TRUE";
// Instruct the DirectorySearcher to return deleted objects
srch.Tombstone = true;
srch.FindAll();
//...
}

Resources