Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-9540

Fix issue in bokeh session

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Fix issue in bokeh session when accessing the bokeh app directly from the bokeh URL (e.g from sqrbot) and back from the django URL.

      eb 20 18:45:03 jenkins-squash scl[23194]: File "service.py", line 209, in get_args:
      Feb 20 18:45:03 jenkins-squash scl[23194]: tmp = doc().session_context.request.arguments Traceback (most recent call last):
      Feb 20 18:45:03 jenkins-squash scl[23194]: File "/opt/apps/qa-dashboard/venv/lib/python3.5/site-packages/bokeh/application/handlers/code_runner.py", line 83, in run
      Feb 20 18:45:03 jenkins-squash scl[23194]: exec(self._code, module.__dict__)
      Feb 20 18:45:03 jenkins-squash scl[23194]: File "/opt/apps/qa-dashboard/squash/dashboard/viz/metrics.py", line 346, in <module>
      Feb 20 18:45:03 jenkins-squash scl[23194]: curdoc().add_root(Metrics().layout)
      Feb 20 18:45:03 jenkins-squash scl[23194]: File "/opt/apps/qa-dashboard/squash/dashboard/viz/metrics.py", line 32, in __init__
      Feb 20 18:45:03 jenkins-squash scl[23194]: self.compose_layout()
      Feb 20 18:45:03 jenkins-squash scl[23194]: File "/opt/apps/qa-dashboard/squash/dashboard/viz/metrics.py", line 47, in compose_layout
      Feb 20 18:45:03 jenkins-squash scl[23194]: ('window', 'months')])
      Feb 20 18:45:03 jenkins-squash scl[23194]: File "/opt/apps/qa-dashboard/squash/dashboard/viz/service.py", line 209, in get_args
      Feb 20 18:45:03 jenkins-squash scl[23194]: tmp = doc().session_context.request.arguments
      Feb 20 18:45:03 jenkins-squash scl[23194]: AttributeError: 'NoneType' object has no attribute 'arguments'
      Feb 20 18:45:03 jenkins-squash scl[23194]: 2017-02-20 18:45:03,880 200 GET /metrics/autoload.js?bokeh-autoload-element=4574b32b-09a8-49b7-8a06-3ef93448a6dc (140.252.90.89) 3.53ms
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                afausti Angelo Fausti
                Reporter:
                afausti Angelo Fausti
                Watchers:
                Angelo Fausti
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel