Skip to main content
1-Visitor
March 15, 2016
Solved

CLI to view Project Infomration to determine whether it is a Top-Level Project or SubProject

  • March 15, 2016
  • 1 reply
  • 4241 views

Hello Support,

In a system there are many projects have been created.

Some are with "si createproject" and others are with "si createsubprojects" commands respectively.

By using "si projectinfo" commands for any project, how to determine with which commands it was created?

In essence, which property within the Project I can see using CLI or GUI to determine "si createproject" was used or not?

Thank you.

Regards

    Best answer by MichaelChatel

    "AddProject" ACL permission can be denied or allowed to control that permission, Pashan.

    1 reply

    16-Pearl
    April 11, 2016

    Hello Pashan None‌,

    There are two ways I can think of to determine if a given project is a top level project:

    1) As you suggested, use si projectinfo -P <project>:  Count the number of crunches ('#') in the Configuration Path.  If there's only one, that should indicate that it's a top level path.

    2) Run si projects, and parse for your project in that list.

    Regards,

    -Kael

    16-Pearl
    April 11, 2016

    I've received confirmation from senior TSEs on the first option.  They also recommend against using the second option for this, because the second option is much less performant, especially if visibility permission checking ("top level filtering") is enabled for that Source Integrity server.

    Regards,
    Kael