Skip to content

Commit

Permalink
Merge pull request #249 from 0xff-dev/dataset-graphql
Browse files Browse the repository at this point in the history
feat: dataset graphql api
  • Loading branch information
bjwswang authored Nov 21, 2023
2 parents c5a6da3 + 89baee6 commit bfa39c9
Show file tree
Hide file tree
Showing 13 changed files with 9,295 additions and 3,295 deletions.
3 changes: 3 additions & 0 deletions api/v1alpha1/versioneddataset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ type VersionedDatasetSpec struct {

// Which version of the dataset it inherits from
InheritedFrom string `json:"inheritedFrom,omitempty"`

// DisplayName
CommonSpec `json:",inline"`
}

type FileStatus struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
spec:
description: VersionedDatasetSpec defines the desired state of VersionedDataset
properties:
creator:
description: Creator defines datasource creator (AUTO-FILLED by webhook)
type: string
dataset:
description: Dataset which this `VersionedDataset` belongs to
properties:
Expand All @@ -64,6 +67,12 @@ spec:
- kind
- name
type: object
description:
description: Description defines datasource description
type: string
displayName:
description: DisplayName defines datasource display name
type: string
fileGroups:
description: FileGroups included in this `VersionedDataset` Grouped
by Datasource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
spec:
description: VersionedDatasetSpec defines the desired state of VersionedDataset
properties:
creator:
description: Creator defines datasource creator (AUTO-FILLED by webhook)
type: string
dataset:
description: Dataset which this `VersionedDataset` belongs to
properties:
Expand All @@ -64,6 +67,12 @@ spec:
- kind
- name
type: object
description:
description: Description defines datasource description
type: string
displayName:
description: DisplayName defines datasource display name
type: string
fileGroups:
description: FileGroups included in this `VersionedDataset` Grouped
by Datasource
Expand Down
36 changes: 36 additions & 0 deletions gqlgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,39 @@ models:
resolver: true
listKnowledgeBases:
resolver: true
DatasetQuery:
fields:
getDataset:
resolver: true
listDatasets:
resolver: true
DatasetMutation:
fields:
createDataset:
resolver: true
updateDataset:
resolver: true
deleteDatasets:
resolver: true
Dataset:
fields:
versions:
resolver: true
VersionedDatasetQuery:
fields:
getVersionedDataset:
resolver: true
listVersionedDatasets:
resolver: true
VersionedDatasetMutation:
fields:
createVersionedDataset:
resolver: true
updateVersionedDataset:
resolver: true
deleteVersionedDatasets:
resolver: true
VersionedDataset:
fields:
files:
resolver: true
Loading

0 comments on commit bfa39c9

Please sign in to comment.