Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GraphQL data loader Vue component #1979

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

williamjallen
Copy link
Collaborator

#1772 added a brand new GraphQL API. Moving forward, we plan to gradually convert the entire CDash UI to use this new API.

This PR introduces a new Vue component which executes a GraphQL query, and provides the resulting data to a child component. An example usage might look like this:

<graphql-loader
  query="
    query {
      projects {
        id
        name
        builds {
          id
          name
        }
      }
    }
  "
>
  <template v-slot="{ data }">
    Plain text or component here...  Use data like this: {{ data }}
  </template>
</graphql-loader>

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Component added to a random page displayed as expected.

image

@josephsnyder josephsnyder added this pull request to the merge queue Jan 29, 2024
Merged via the queue into Kitware:master with commit a7e1492 Jan 29, 2024
2 checks passed
@williamjallen williamjallen deleted the graphql-loader branch January 29, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants