Topic
5 replies Latest Post - ‏2013-06-12T14:19:35Z by benray
mementovitae
mementovitae
6 Posts
ACCEPTED ANSWER

Pinned topic how to customize version tree's tootips?

‏2013-06-07T10:03:17Z |

Hi!

On the attached screenshot you can see that the "Created By : " field in the version tree tooltip contains only the creator's last name. We'd like to customise the tooltip to display the user's domain login name, or his full name (i.e. a uniqe id, which the last name is not).

Any hints how to achieve that?

Maciek

  • benray
    benray
    74 Posts
    ACCEPTED ANSWER

    Re: how to customize version tree's tootips?

    ‏2013-06-10T14:42:31Z  in response to mementovitae

    The string in the gui should mirror what you see in the "cleartool describe -fmt "%Fu \n" <version>" output from command line. The strings are written to the VOB database at checkin by the client where the checkin was performed, depending on how that client resolved the user's full name (from Active Directory for example). Once they are in the database they are not really modifiable.

    Have a look at this technote for some more info about how the full_name field from AD is used by the Windows client during the transaction.

    http://www-01.ibm.com/support/docview.wss?uid=swg21229679

    Note this section:

    "The name string you entered is truncated at the first comma, semicolon, colon, open paren, open angle bracket, open bracket, or open brace. The leading and trailing blanks are removed."

    So if you had something like "Sieczka, John" it would be truncated to "Sieczka". There isn't any configuration to display these strings differently in the verstion tree.

    Updated on 2013-06-10T14:43:01Z at 2013-06-10T14:43:01Z by benray
    • mementovitae
      mementovitae
      6 Posts
      ACCEPTED ANSWER

      Re: how to customize version tree's tootips?

      ‏2013-06-11T11:25:32Z  in response to benray

      Thanks, this explains.

      We can't change the AD records just for the CC sake, thus I have tried adding the DisableGecos setting to my registry, and after having restarted CC services and the client on my machine, still only my last name is present in the version tree tooltip, for the versions created after the registry edit. Can you try if this registry edit works for you as advertised by IBM?

      Updated on 2013-06-11T11:27:33Z at 2013-06-11T11:27:33Z by mementovitae
      • benray
        benray
        74 Posts
        ACCEPTED ANSWER

        Re: how to customize version tree's tootips?

        ‏2013-06-11T15:24:03Z  in response to mementovitae

        I'm not sure I understand. The DisableGecos setting is intended to _disable_ full name writes to the vob database on checkin. If you have that set and checkin a file it records an empty string.

        Again, once the string is written to the database on checkin, it is permanently stored as a string in the db record. There is no client configuration to display it a particular way.

        • mementovitae
          mementovitae
          6 Posts
          ACCEPTED ANSWER

          Re: how to customize version tree's tootips?

          ‏2013-06-12T08:34:52Z  in response to benray

          > The DisableGecos setting is intended to _disable_ full name writes to the vob database on checkin.

          Exactly.

          > If you have that set and checkin a file it records an empty string.

          This is what I expected, yet I still got my last name recorded after a checkin, even though I have added a registry key of type REG_DWORD HKEY_LOCAL_MACHINE\SOFTWARE\Atria\ClearCase\CurrentVersion\DisableGecos, set it to the value 1 and restarted CC services and the client on my machine.
           

          So my point is that the aforementioned registry edit does not work as advertised, for me at least. I'm using native CC client 7.1.2.3 on Win7 Enterprise SP1 64bit. The VOB server is 7.1.1.3, running on SLES 10 SP3 64bit.

          I would like to try disabling full name recoginition mechanism on a Win client, because we have many CC users having the same last name, and our AD Full Name records are in the form "Lastname, Name", which leads to ambigous/missleading information in the version tree tooltips for the users. Say we have 5 Smiths, each one in a different team. Their peers know only 1 of the Smiths. When they rely on version tree tooltips to identify the checkin author, they happen to assume not the actual Smith who edited the file. This confuses everybody involved, leads to delayed information feedback loops etc.

          I expect that after I manage to disable the full name recogintion, the information in the version tree tooltip, for the newly checked-in versions, will be something like "login.domain@machine_short_name", which will be unique. If this shows to be the case, we can provide a workaround to our users who comaplin about being unable to identify the right Smith according to the version tree tooltip content.

          Thus I'm asking here to help me disable the full name recogintion mechanism, as I can't manage it according to IBM's instructions.

          Hope this explains.

          • benray
            benray
            74 Posts
            ACCEPTED ANSWER

            Re: how to customize version tree's tootips?

            ‏2013-06-12T14:19:35Z  in response to mementovitae

            Thanks - I misunderstood what you wanted to do. I just tried the reg key on a Win 7 client on CC 7.1.2.0, as well as where it should be on 64-bit systems in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Atria\ClearCase\CurrentVersion, and I'm not able to get it to stop pulling the AD full name either. 

            I'd suggest you open a PMR so the Windows CC support team can help determine either how to get this working or whether it may be a defect.