Skip to content

BE Improve admin licence page

Luke Bennett requested to merge improve-admin-licence-page into master

What does this MR do?

This is the backend to vue-ify the instance licenses page. Really it just adds GraphQL queries and mutations for the FE to consume.

Please view the Table of MRs.

Table of MRs

CE EE
frontend TBD https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9297
backend https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25333 https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8956
admin docs TBD TBD
graphql docs TBD https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9545

This MR specifically:

  • Adds EE namespaced decorator for query and mutation types

  • Adds graphql queries

    • licenses: returns all licenses w/ pagination and sorting

      Screenshot_2019-02-11_at_15.28.44

    • license: returns a license with id (not queried in the FE MR directly but I wired it as the resolver existed anyway for mutations)

      Screenshot_2019-02-11_at_15.29.16

  • Adds graphql mutation

    • licenseDelete: deletes license with id

      Screenshot_2019-02-07_at_04.50.39

Helpful stufffff

To create 20 licenses:

$ echo "20.times { License.create!(data: License.current.data) }" | rails c

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by 🤖 GitLab Bot 🤖

Merge request reports