Skip to content

Commit

Permalink
fix ui opts and examples for visualizer code gen (guacsec#1121)
Browse files Browse the repository at this point in the history
Signed-off-by: pxp928 <parth.psu@gmail.com>
  • Loading branch information
pxp928 committed Aug 2, 2023
1 parent bdd1b0c commit 9f1ccf2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions pkg/assembler/graphql/examples/certify_good.gql
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ query CertifactGoodQ6 {
mutation CertifyGoodM1 {
ingestCertifyGood(
subject: {artifact: {algorithm: "md5", digest: "2b00042f7481c7b056c4b410d28f33cf"}},
pkgMatchType: {pkg: ALL_VERSIONS}
certifyGood: {
justification: "why",
origin: "testing backend",
Expand All @@ -103,6 +104,7 @@ mutation CertifyGoodM1 {
mutation CertifyGoodM2 {
ingestCertifyGood(
subject: {artifact: {algorithm: "md5", digest: "0ABCDEF0FEDCBA01234567890ABCDEF0"}},
pkgMatchType: {pkg: ALL_VERSIONS}
certifyGood: {
justification: "why2",
origin: "testing backend",
Expand Down
22 changes: 11 additions & 11 deletions pkg/assembler/graphql/examples/ui_opts.gql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
query GetPkg ($spec: PkgSpec) {
query GetPkg ($spec: PkgSpec!) {
packages(pkgSpec: $spec){
...allPkgTree
}
Expand All @@ -10,7 +10,7 @@ query GetPkgTypes {
}
}

query GetPkgNamespaces ($spec : PkgSpec) {
query GetPkgNamespaces ($spec : PkgSpec!) {
packages(pkgSpec: $spec){
type
namespaces {
Expand All @@ -20,7 +20,7 @@ query GetPkgNamespaces ($spec : PkgSpec) {
}


query GetPkgNames ($spec : PkgSpec) {
query GetPkgNames ($spec : PkgSpec!) {
packages(pkgSpec: $spec){
type
namespaces {
Expand All @@ -32,7 +32,7 @@ query GetPkgNames ($spec : PkgSpec) {
}
}

query GetPkgVersions ($spec : PkgSpec) {
query GetPkgVersions ($spec : PkgSpec!) {
packages(pkgSpec: $spec){
type
namespaces {
Expand All @@ -51,43 +51,43 @@ query GetPkgVersions ($spec : PkgSpec) {
}
}

query GetSrc ($spec: SourceSpec) {
query GetSrc ($spec: SourceSpec!) {
sources(sourceSpec: $spec){
...allSrcTree
}
}

query GetArtifact ($spec: ArtifactSpec) {
query GetArtifact ($spec: ArtifactSpec!) {
artifacts(artifactSpec: $spec){
...allArtifactTree
}
}

query GetCve ($spec: CVESpec) {
query GetCve ($spec: CVESpec!) {
cve(cveSpec: $spec) {
...allCveTree
}
}

query GetIsDependency($spec: IsDependencySpec) {
query GetIsDependency($spec: IsDependencySpec!) {
IsDependency(isDependencySpec: $spec){
...allIsDependencyTree
}
}

query GetIsOccurrence($spec: IsOccurrenceSpec) {
query GetIsOccurrence($spec: IsOccurrenceSpec!) {
IsOccurrence(isOccurrenceSpec: $spec){
...allIsOccurrencesTree
}
}

query GetHasSourceAt($spec: HasSourceAtSpec) {
query GetHasSourceAt($spec: HasSourceAtSpec!) {
HasSourceAt(hasSourceAtSpec: $spec){
...allHasSourceAtTree
}
}

query GetCertifyVuln($spec: CertifyVulnSpec) {
query GetCertifyVuln($spec: CertifyVulnSpec!) {
CertifyVuln(certifyVulnSpec: $spec){
...allCertifyVulnTree
}
Expand Down

0 comments on commit 9f1ccf2

Please sign in to comment.