Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44644

SSE Events ignored on activity page when a custom Org factory is used

    • Blue Ocean 1.1, Blue Ocean 1.1

      When a custom OrganizationFactory is registered SSE events are not processed correctly in the Activity page (re-running an existent build does not update the UI).

      The event is delivered but some specific data must be wrong, I suspect it is the organization not being correctly computed (I've removed my custom OrganizationFactory for testing and it fixes the issue). FWIW my org factory is just setting the Organization root as a specific folder inside the Jenkins instance (instead of the Jenkins root folder), in the screencast "AnotherTeam" is the root of my organization (returned on OrganizationFactory.get(String) wrapped in a BlueOrganization object).

          [JENKINS-44644] SSE Events ignored on activity page when a custom Org factory is used

          Antonio Muñiz created issue -
          Antonio Muñiz made changes -
          Description Original: When a custom {{OrganizationFactory}} is registered SSE events are not processed correctly in the _Activity_ page (re-running an existent build does not update the UI).

          !activity-run2.gif!

          The event is delivered but some specific data must be wrong, I suspect it is the organization not being correctly computed (I've removed my custom {{OrganizationFactory}} for testing and it fixes the issue). FWIW my org factory is just setting the Organization root as a specific folder inside the Jenkins instance (instead of the Jenkins root folder), in the screencast "AnotherTeam" is the root of my organization (returned on {{OrganizationFactory.get(String)}} wrapped in a {{BlueOrganization}} object).
          New: When a custom {{OrganizationFactory}} is registered SSE events are not processed correctly in the _Activity_ page (re-running an existent build does not update the UI).

          !activity-run2.gif|height=450,width=700!

          The event is delivered but some specific data must be wrong, I suspect it is the organization not being correctly computed (I've removed my custom {{OrganizationFactory}} for testing and it fixes the issue). FWIW my org factory is just setting the Organization root as a specific folder inside the Jenkins instance (instead of the Jenkins root folder), in the screencast "AnotherTeam" is the root of my organization (returned on {{OrganizationFactory.get(String)}} wrapped in a {{BlueOrganization}} object).

          Michael Neale added a comment -

          vivek perhaps you can bring amuniz along when you chat to alobato - solve this then? 

          Michael Neale added a comment - vivek perhaps you can bring amuniz along when you chat to alobato - solve this then? 

          Michael Neale added a comment -

          amuniz if there was some code sample to see this - would help, otherwise a bit of guess work. 

           

          I wonder if this is related to the fix in https://issues.jenkins-ci.org/browse/JENKINS-44625 - which seems to be confused by the folder as well. 

          Michael Neale added a comment - amuniz if there was some code sample to see this - would help, otherwise a bit of guess work.    I wonder if this is related to the fix in https://issues.jenkins-ci.org/browse/JENKINS-44625  - which seems to be confused by the folder as well. 
          Michael Neale made changes -
          Epic Link New: JENKINS-35759 [ 171771 ]
          Michael Neale made changes -
          Summary Original: SSE Events not working on Activity page New: SSE Events ignored on activity page when a custom Org factory is used
          Michael Neale made changes -
          Assignee New: Vivek Pandey [ vivek ]
          Michael Neale made changes -
          Sprint New: Blue Ocean 1.1 [ 321 ]
          Ryan Campbell made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          Vivek Pandey added a comment -

          michaelneale yes meeting with Antonio and Alvaro this morning to sort these issues.

          Vivek Pandey added a comment - michaelneale yes meeting with Antonio and Alvaro this morning to sort these issues.

            vivek Vivek Pandey
            amuniz Antonio Muñiz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: