SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-997

Project logo as a widget in project dashboard

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BRANDING-0.2
    • Component/s: Branding
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Add a widget to display an image at project level. This image will show your project logo, customer logo, etc.

      Development seems to be very easy (just a property setting at project level and the widget).

        Activity

        Hide
        Evgeny Mandrikov added a comment -

        See comment for SONARPLUGINS-379 - reading value for widget from project settings may lead to errors.

        Show
        Evgeny Mandrikov added a comment - See comment for SONARPLUGINS-379 - reading value for widget from project settings may lead to errors.
        Hide
        Antonio Calero added a comment -

        Then, what is the best way to do that? Maybe through a property in pom.xml?

        Show
        Antonio Calero added a comment - Then, what is the best way to do that? Maybe through a property in pom.xml?
        Hide
        Evgeny Mandrikov added a comment - - edited

        In fact there is no big difference between property from pom.xml and property from Sonar settings - to avoid problems they both should be persisted in database during analysis as a measure to be able to retrieve value in widget, so from my point of view it's heavy implementation for such minor feature.

        Show
        Evgeny Mandrikov added a comment - - edited In fact there is no big difference between property from pom.xml and property from Sonar settings - to avoid problems they both should be persisted in database during analysis as a measure to be able to retrieve value in widget, so from my point of view it's heavy implementation for such minor feature.
        Hide
        Evgeny Mandrikov added a comment -

        But lucky you - I've added simple widget with WidgetProperty in r3387 which is able to display image by url, and it means that minimal required Sonar version now is 2.4. I don't have plan to release next version, so if you want to use/test it, then you should build plugin from trunk.

        Show
        Evgeny Mandrikov added a comment - But lucky you - I've added simple widget with WidgetProperty in r3387 which is able to display image by url, and it means that minimal required Sonar version now is 2.4. I don't have plan to release next version, so if you want to use/test it, then you should build plugin from trunk.
        Hide
        Antonio Calero added a comment -

        Great! I will try it as soon as possible

        Show
        Antonio Calero added a comment - Great! I will try it as soon as possible
        Hide
        Antonio Calero added a comment -

        I have been testing the snapshot and there is a problem, the widget displays the same image for all projects.

        It seems that the widget property is global, and is set for all projects, not only the selected project.

        That way we can't set an image for each project

        Show
        Antonio Calero added a comment - I have been testing the snapshot and there is a problem, the widget displays the same image for all projects. It seems that the widget property is global, and is set for all projects, not only the selected project. That way we can't set an image for each project
        Hide
        Evgeny Mandrikov added a comment -

        Let me check and I'll come back to you after that.

        Show
        Evgeny Mandrikov added a comment - Let me check and I'll come back to you after that.
        Hide
        Evgeny Mandrikov added a comment -

        Finally implemented in r3689.
        Project logo can be configured via project links as shown in attached screenshot.

        Show
        Evgeny Mandrikov added a comment - Finally implemented in r3689 . Project logo can be configured via project links as shown in attached screenshot.

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Antonio Calero
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: