Skip to main content
1-Visitor
Mar 15, 2016 10:40 PM UTC
Solved

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

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

    5-Regular Member
    Apr 15, 2016 8:00 PM UTC

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

    11 replies

    16-Pearl
    Apr 11, 2016 7:36 PM UTC

    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

    Translate
    16-Pearl
    Apr 11, 2016 7:46 PM UTC

    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

    Translate