Uploaded image for project: 'MariaDB Foundation Development'
  1. MariaDB Foundation Development
  2. MDBF-1150

Expose CrossReference data via a REST API

    XMLWordPrintable

Details

    Description

      Scope

      To make CrossReference data usable in scripts, applications, and dashboards (e.g., the Release dashboard), this patch exposes the data through a REST API.

      Changes

      This change will implement the route cr/api/testfailures/ which provides read-only access to the data via a ViewSet (i.e., ReadOnlyModelViewSet).

      It reuses the existing TestFailure model (`class TestFailure(models.Model)`) that is also used to display data on the buildbot.mariadb.org/cr web page.

      The select_test_failures function returns a QuerySet that is then serialized to JSON and returned to the client.
      Query parameters will be validated using a special serializer APIQueryParamsSerializer.

      Examples:

      See screenshots attached.

      Attachments

        Activity

          People

            rvarzaru Varzaru Razvan-Liviu
            rvarzaru Varzaru Razvan-Liviu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 3d 3h
                3d 3h