Uploaded image for project: 'Community Development'
  1. Community Development
  2. COMDEV-168

getjson.py fetches everything each time

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • Reporter Tool
    • None

    Description

      The reporter tool uses the script getjson.py to fetch various items of data for each of the projects to which the login has access.

      However some of the data is expensive to fetch, e.g. the JIRA data.
      This is done even if the user does not click on the tab.
      Although the data is cached, it can only be cached for a short time (currently 2 days is used).

      For logins who are members of multiple projects that use JIRA, it can take so long to fetch the JIRA info that the CGI script times out. Retrying will eventually allow the app to work. [e.g. a member of Commons will potentially need to download 50 JIRA statistics]

      It would be better if the data were only fetched when needed, though this would still cause issues for PMCs like Commons.

      Alternatively, the data could be fetched by a cron job.
      A disadvantage is that the data might be fetched even when it is not going to be used. Note: the cron job could/should be scheduled for times when JIRA is not as busy; also it could be set to run relatively slowly (i.e. with pauses between fetches).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment