Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switch niftysave analyzer to pull from new queue endpoint (#369)
- Loading branch information
Showing
8 changed files
with
2,792 additions
and
133 deletions.
There are no files selected for viewing
651 changes: 651 additions & 0 deletions
651
packages/database/fauna/migrations/2021-09-01T22_20_52.420Z/schema.graphql
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
.../database/fauna/migrations/2021-09-01T22_20_52.420Z/update-function-scheduledAnalyses.fql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Update(Function("scheduledAnalyses"), { | ||
"body": Query(Lambda(["size", "after", "before"], Let([{ | ||
"refs": Call("paginate", [Documents(Collection("ScheduledAnalyze")), { | ||
"size": Var("size"), | ||
"after": Var("after"), | ||
"before": Var("before") | ||
}]) | ||
}], Map(Var("refs"), Lambda("ref", Get(Var("ref"))))))), | ||
"data": { | ||
"gql": { | ||
"meta": { | ||
"location": "Query", | ||
"field": { | ||
"name": "scheduledAnalyses", | ||
"directives": [{ | ||
"name": "resolver", | ||
"args": { | ||
"name": "scheduledAnalyses", | ||
"paginated": true | ||
} | ||
}, { | ||
"name": "relation", | ||
"args": {} | ||
}], | ||
"description": "Returns page of scheduled analyze tasks", | ||
"type": { | ||
"NotNull": { | ||
"List": { | ||
"NotNull": { | ||
"Named": "ScheduledAnalyze" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"role": null | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.