tobyweston / radiate

Build monitor for TeamCity written in Scala
Apache License 2.0
14 stars 3 forks source link

Handle parent projects with no build types in chessboard mode #22

Closed tobyweston closed 11 years ago

tobyweston commented 11 years ago

Chessboard mode interprets a parent project (for example the _Root project) as a regular project and so will display a tile and look for build results. It'll always show grey (Unknown) because there are no build types in the response.

Ignore project like this.

For example, the XML comes back like

<project id="oss" name="Open Source" href="/guestAuth/app/rest/projects/id:oss" description="" archived="false" webUrl="http://localhost:8111/project.html?projectId=oss">
    <parentProject id="_Root" name="<Root project>" href="/guestAuth/app/rest/projects/id:_Root"/>
    <buildTypes/>
    <templates/>
    <parameters/>
    <vcsRoots href="/guestAuth/app/rest/vcs-roots?locator=project:(id:oss)"/>
    <projects>
        <project id="simple_excel" name="Simple Excel" href="/guestAuth/app/rest/projects/id:simple_excel"/>
        <project id="oss_tempus_fugit" name="tempus-fugit" href="/guestAuth/app/rest/projects/id:oss_tempus_fugit"/>
    </projects>
</project>

Notice the builtTypes element is empty.