Skip to content

Corpus Management - Corpus Table - Swap out mock table data for real query

This is the frontend portion of the backend !72793 (merged)

Designs

Implement the designs from the MVC (https://www.figma.com/file/eSIeuIPKFwEDs4X9ky2O5E/Corpus-Registry?node-id=156%3A0) which was previously designed as part of this design issue

Implementation Plan

  • Remove mockedPackages and @client directive in ee/app/assets/javascripts/security_configuration/corpus_management/graphql/queries/get_corpuses.query.graphql

  • Swap out for real query:

Initial Query

query Project {
  project(fullPath:"gitlab-org/gitlab-test") {
    corpuses{
     nodes {
       id,
      	package {
      	  id
          pipelines
      	}
     } 
    }
  }
}

Second Query iteration

query Project {
  project(fullPath:"gitlab-org/gitlab-test") {
    corpuses{
     nodes {
       id,
       (TBD fields)
      	package {
      	  id
          pipelines
      	}
     } 
    }
  }
}
  • Conditionally render available columns.
  • Note this issue does not cover pagination or delete
  • Add unit tests
Edited by -