Skip to content

Commit

Permalink
fix: Add missing filter support to unattestable list
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Jul 28, 2023
1 parent 35b3585 commit 7ce4788
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion graph-gateway/src/unattestable_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// from getting to users.
// Derived from https://github.com/graphprotocol/graph-node/blob/master/graph/src/data/query/error.rs
#[rustfmt::skip]
pub const UNATTESTABLE_ERROR_MESSAGE_FRAGMENTS: [&str; 18] = [
pub const UNATTESTABLE_ERROR_MESSAGE_FRAGMENTS: [&str; 22] = [
"Non-list value resolved for list field", // ListValueError
"Failed to get entities from store:", // ResolveEntitiesError
"argument must be between 0 and", // RangeArgumentsError
Expand All @@ -22,6 +22,12 @@ pub const UNATTESTABLE_ERROR_MESSAGE_FRAGMENTS: [&str; 18] = [
"invalid subgraph manifest file", // InvalidSubgraphManifest
"is larger than the allowed limit of", // ResultTooBig
// TODO: ValidationError

// graph-node features
"\"block__timestamp\" does not exist", // v0.28.0
"Invalid value provided for argument `orderBy`: Enum(\"block__timestamp\")", // v0.28.0
"ield \"and\" is not defined by type", // v0.30.0
"ield \"or\" is not defined by type", // v0.30.0
];

// Note: The linked PRs may be merged. But these must still be special-cased unless the minimum
Expand Down

0 comments on commit 7ce4788

Please sign in to comment.