Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-36172

Issue navigator stops working if favourite filters can't be retrieved

      The issue navigator makes a REST request to rest/api/2/filter/favourite when it loads. This request is expected to respond with an array of objects with filter data in them.

      If this REST request fails – e.g., gives a non-200 response, times out, or contains something that isn't an array – then the issue navigator stops working properly.

        1. empty-request-response.png
          empty-request-response.png
          231 kB
        2. failed-request.png
          failed-request.png
          211 kB
        3. normal-request-data.png
          normal-request-data.png
          242 kB
        4. normal-request-response.png
          normal-request-response.png
          295 kB

            [JRASERVER-36172] Issue navigator stops working if favourite filters can't be retrieved

            ssue Nav requests /rest/api/2/filters/favourite?expand=subscriptions[-5], which means that it'll return a list of all of the user's favourite filters, where every filter will also include a list of everybody who subscribes to that filter.

            Why does it need the list of subscribers if it only shows a list of filters?

            Sergey Svishchev added a comment - ssue Nav requests /rest/api/2/filters/favourite?expand=subscriptions [-5] , which means that it'll return a list of all of the user's favourite filters, where every filter will also include a list of everybody who subscribes to that filter. Why does it need the list of subscribers if it only shows a list of filters?

            Daz added a comment -

            It seems I accidentally committed all my changes for this issue using a key of JDEV-36172 instead of JRA-36172

            Daz added a comment - It seems I accidentally committed all my changes for this issue using a key of JDEV-36172 instead of JRA-36172

            Daz added a comment -

            Was merged, new KA released (I think), but seems I forgot to change the issue status. Should be in JIRA master now.

            Daz added a comment - Was merged, new KA released (I think), but seems I forgot to change the issue status. Should be in JIRA master now.

            Daz added a comment -

            In the process of building and releasing a new version of KickAss, but there's test failures caused by recent changes to JIRA master

            Daz added a comment - In the process of building and releasing a new version of KickAss, but there's test failures caused by recent changes to JIRA master

            I reject it:

            • New version of issue nav plugin was not released
            • Kickass version was not bumped

            Grzegorz Tanczyk (Inactive) added a comment - I reject it: New version of issue nav plugin was not released Kickass version was not bumped

            kujbusn, as Chris mentioned above, this issue will occur in edge cases - instances with hundreds of filters and multiple subscriptions. Whether your instance would be affected after an upgrade depends on the size of it. If you wish to discuss a specific case further, feel free to open a case at support.atlassian.com.

            Dobroslawa Wierzbicka (Inactive) added a comment - kujbusn , as Chris mentioned above, this issue will occur in edge cases - instances with hundreds of filters and multiple subscriptions. Whether your instance would be affected after an upgrade depends on the size of it. If you wish to discuss a specific case further, feel free to open a case at support.atlassian.com.

            NorbertK added a comment -

            What is the workaround until it's get fixed? How can we determine how many filters or subscriptions are sufficient? It's working fine in 5.1.x but not in 6.1, so it's a blocker in our Jira upgrade project.

            NorbertK added a comment - What is the workaround until it's get fixed? How can we determine how many filters or subscriptions are sufficient? It's working fine in 5.1.x but not in 6.1, so it's a blocker in our Jira upgrade project.

            Daz added a comment - - edited

            Issue Nav requests /rest/api/2/filters/favourite?expand=subscriptions[-5], which means that it'll return a list of all of the user's favourite filters, where every filter will also include a list of everybody who subscribes to that filter.

            If a user had hundreds of filters, and there were several dozen subscriptions to each, the response size would be huge. If it was sufficiently huge, that could cause timeouts for the request, meaning the browser gets an empty response. That empty response is then getting misinterpreted by the Issue Nav, and causes some knock-on effects of the issue nav not working.

            Daz added a comment - - edited Issue Nav requests /rest/api/2/filters/favourite?expand=subscriptions [-5] , which means that it'll return a list of all of the user's favourite filters, where every filter will also include a list of everybody who subscribes to that filter. If a user had hundreds of filters, and there were several dozen subscriptions to each, the response size would be huge. If it was sufficiently huge, that could cause timeouts for the request, meaning the browser gets an empty response. That empty response is then getting misinterpreted by the Issue Nav, and causes some knock-on effects of the issue nav not working.

              rtekhov Roman Tekhov (Inactive)
              cdarroch Daz
              Affected customers:
              3 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: