Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13455

Geo-map: work with Ben designing RESTful API for Geo-map page

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 30.0.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 2021 - Aug 18 - Sept 1
    • HB Backlog Status:
      Backlog NG
    • Acceptance / Success Criteria:
      Hide

      provide a doc for the design

      Show
      provide a doc for the design

      Description

      Work with Ben to design a RESTful API that will be more suitable for the Geo-map page. This design can be helpful for future work when we decide to rework or improve the existing RESTful API. 

      The redesign may solve the following problems:

      1. Reduce the number of REST calls for one page, this will improve the performance, and shortening the page's loading time. 
      2. Save bandwidth. Pagination is not suitable for the geo-map page because we need all nodes to show up on the map at one time. Hence slim the size of one record became essential. The current RESTful response for getting a node contains around 80 fields, while only 12 are used for the geo-map page. The RESTful call for alarms has more than 40 fields, include two text paragraphs of descriptions. The geo-map page only uses 7 fields. 
      3. UI data can be more consistent. Doing separate RESTful calls for Alarms and Nodes may cause inconsistent data for the alarm, node page, and map subpage. Because the alarm and node records for one node may arrive at a different time. 

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jane.hou Jane Hou
              Reporter:
              jane.hou Jane Hou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration