DCSIMG
August 2011 - Posts - Baruch Frei
Sign in | Join | Help

August 2011 - Posts

August '11 TFS Power Tools Release

Published at Aug 19 2011, 04:13 PM by BaruchF

Yesterday Microsoft released the new version of the TFS Power tools.

See what Brian Harry blogged about it here.

First of all, the installation made simpler since you don’t have to

uninstall previous version, just install new version over the old one.

Only one thing  – the installation prompts that Windows Explorer

process should be close.

image

If you press Ignore reboot will be required.

Anyway, if you kill the mentioned processes through Task manager,

no need to reboot.

Here some of the new Features in this release:

  • WorkItem Search

image

  • Rollback on Changeset from history

image

  • Rollback from Source Control Explorer

image

Grab it from here.

Take a look also at the updated Build Extensions.

Enjoy !

TFS Web Access – Init Linked Query as Collapsed

Published at Aug 18 2011, 08:43 AM by BaruchF
When you open a linked WorkItem Query in TFS Web Access the

default initial state is expand all and if you have massive tree of

linked WorkItem it’s kind of annoying:

image

Today one of my customers asked me if I can change this default

behavior and make it appear by default with all nodes collapsed.

BTW, in Team Explorer there are buttons for collapse and expand all

but Web Access doesn’t offer this option as described here.

After a little digging in pages an java scripts I found the solution.

Disclaimer: The solution provided below is on your own risk.

On the server that hosts TFS 2010 navigate to:

C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Access\Web\Resources\Scripts .

Find the file QueryResultGrid.js (backup original file before you make

any change). Open the file and find initialize function at the end of the

function before the line:

this.m_initialized = true;

Copy and paste this line:

this.collapseAllNodes();

The function now should look like this:

/*overridden methods*/
initialize: function () {
TSWA.QueryResultGrid.callBaseMethod(this, 'initialize');

this.m_rows = {};
this.m_gutterRows = {};
this.m_rowStack = [];
this.m_neededWorkItemsStack = [];
this.m_selectedRows = {};

this.prepareQueryInfo();
this.takeMeasurements();
this.attachDOMEvents();

if (this.m_queryInfo.isDirty) {
this.setDirty(true, false);
}

Sys.Debug.trace(String.format("Query ResultGrid on initialize"));
this.layout();
this.collapseAllNodes();
this.m_initialized = true;
},

Save and reopen web page.

That’s it !

image

How it works ? this Java Script dynamically creates the result grid  on

demand, if you will scroll down the file you will fund that the function

collapseAllNodes already declared, we just added a call to it at the

end of grid initialization.

Thanks to Shlomo for his help.

Workflow Designer Patch

Published at Aug 09 2011, 08:58 PM by BaruchF

Everyone who works with workflow designer (and if you are

TFS Build Developer – you do it a lot Smile) encounter the problem

with Workflow Designer slowness and crashes (happened to me

like 20 times today Sad smile) .

Today, Microsoft announce a patch for that !

This patch includes fixes to ASP.Net & Silverlight as well and other

35 issues and 6 features as you can find in KB 2468871.

Read more in Buck Hodges post.

Grab it from Here.

 

Happy Building.