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

URL for sqrbot should be discovered from the SQuaSH API

    Details

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

      Description

      Sqrbot should discover the URL for SQuaSH plots from the SQuaSH API, that prevents breaking sqrbot if there are changes in the URL

        Attachments

          Issue Links

            Activity

            Hide
            afausti Angelo Fausti added a comment - - edited

            The metrics api endpoint now returns the URL to open the time series plot for that metric.

            See the monitor-url below.

            Example:

            https://angelo-squash-squash.lsst.codes/dashboard/api/metrics

            or for a specific metric

            https://angelo-squash-squash.lsst.codes/dashboard/api/metrics/AM1

            {
                "metric": "AM1",
                "unit": "marcsec",
                "description": "The maximum rms of the astrometric distance distribution for stellar pairs with separations of D=5 arcmin (repeatability) (milliarcsec).",
             
                ...
             
                "links": {
                    "monitor-url": "https://angelo-squash-squash.lsst.codes/dashboard/regression/?metric=AM1&window=weeks",
                    "self": "https://angelo-squash-squash.lsst.codes/dashboard/api/metrics/AM1/"
                }
            

            Show
            afausti Angelo Fausti added a comment - - edited The metrics api endpoint now returns the URL to open the time series plot for that metric. See the monitor-url below. Example: https://angelo-squash-squash.lsst.codes/dashboard/api/metrics or for a specific metric https://angelo-squash-squash.lsst.codes/dashboard/api/metrics/AM1 { "metric" : "AM1" , "unit" : "marcsec" , "description" : "The maximum rms of the astrometric distance distribution for stellar pairs with separations of D=5 arcmin (repeatability) (milliarcsec)." ,   ...   "links" : { "monitor-url" : "https://angelo-squash-squash.lsst.codes/dashboard/regression/?metric=AM1&window=weeks" , "self" : "https://angelo-squash-squash.lsst.codes/dashboard/api/metrics/AM1/" }
            Hide
            afausti Angelo Fausti added a comment - - edited

            Adam Thornton you should be able to test now using my sandbox

            https://angelo-squash-squash.lsst.codes/dashboard/api/

            and here is the PR for review:

            https://github.com/lsst-sqre/qa-dashboard/pull/40

            Show
            afausti Angelo Fausti added a comment - - edited Adam Thornton you should be able to test now using my sandbox https://angelo-squash-squash.lsst.codes/dashboard/api/ and here is the PR for review: https://github.com/lsst-sqre/qa-dashboard/pull/40
            Hide
            athornton Adam Thornton added a comment -

            Looks good. I'll try to get to testing this afternoon or tomorrow.

            Show
            athornton Adam Thornton added a comment - Looks good. I'll try to get to testing this afternoon or tomorrow.
            Hide
            athornton Adam Thornton added a comment -

            DM-9725 is my work to sqrbot and uservice-metricdeviation.

            Show
            athornton Adam Thornton added a comment - DM-9725 is my work to sqrbot and uservice-metricdeviation.

              People

              • Assignee:
                afausti Angelo Fausti
                Reporter:
                afausti Angelo Fausti
                Reviewers:
                Adam Thornton
                Watchers:
                Adam Thornton, Angelo Fausti
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel