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

Reduce code duplication in SQUASH views

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Templates:
    • Story Points:
      1.4
    • Team:
      SQuaRE

      Description

      Watching a video about mastering Django from O'reilly Safari there's an interesting solution to reduce code duplication when you have views acting on the same set of data but returning slightly different results. The technique is called "switchboard view"

      https://www.safaribooksonline.com/library/view/mastering-django-web/9781783989805/video1_5.html

      this ticket will solve the code duplication we have in the squash views by replacing the endpoints api/AMx, api/PAx, used to retrieve data for the bokeh apps, by a single endpoint api/apps.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                afausti Angelo Fausti
                Reporter:
                afausti Angelo Fausti
                Reviewers:
                J Matt Peterson [X] (Inactive)
                Watchers:
                Angelo Fausti, J Matt Peterson [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel