Skip to content

List all project secrets (Frontend)

Context

With the backend API available, the frontend can switch from client-side resolvers to actually making GraphQL requests to get real data.

There may also be changes to the design to be made while we are connecting the frontend to the backend data.

Work completed prior to milestone start

Sample query:

query {
    projectSecrets(
      projectPath:"root/egg",
      first: 5,
  	) {
     	edges {
        cursor
     	  node {
          branch
     	    description
          environment
          name
          project {
            id
          }
     	  }
     	}
    	pageInfo {
        endCursor
        hasNextPage
        hasPreviousPage
        startCursor
      }
  }
}

Objective

  • Switch from client-side resolver to actual GraphQL request
  • Remove expired column
  • Remove status column

References

Edited by Mireya Andres