Skip to content
This repository was archived by the owner on Feb 29, 2020. It is now read-only.
This repository was archived by the owner on Feb 29, 2020. It is now read-only.

change annotation refresher to use internal angular caching #470

@stuartnelson3

Description

@stuartnelson3

the annotation refresher is doing it's own hacky thing to cache requests for annotations.

this can be replaced with https://docs.angularjs.org/api/ng/service/$http#caching, but maintaining the same api.

change the GET request to set cache: true:

$http.get(dashboardURL + 'annotations', {
  params: {
    'tags[]': t,
    until: until,
    range: r
  },
  cache: true
})

then have the clearCache function delete the $httpCache.

something along these lines. The rest of the code can go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions