Skip to content

Commit

Permalink
test: add regression test for I18nString filter
Browse files Browse the repository at this point in the history
The AQL fragment created by this filter generates an internal error in ArangoDB 3.12.0 due to a regression.

The bug will be fixed with ArangoDB 3.12.1.
  • Loading branch information
Yogu committed Aug 6, 2024
1 parent 16b79b9 commit c287624
Show file tree
Hide file tree
Showing 9 changed files with 307 additions and 184 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
1 change: 1 addition & 0 deletions spec/regression/logistics/model/country.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type Country
@roles(read: ["allusers"], readWrite: ["admin"]) {
isoCode: String @key
description: [Translation]
descriptionI18nString: I18nString
totalInvestment: String @roles(readWrite: "accounting")
someKey: String @flexSearch
}
12 changes: 12 additions & 0 deletions spec/regression/logistics/test-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"translation": "Germany"
}
],
"descriptionI18nString": {
"de": "Deutschland",
"en": "Germany"
},
"totalInvestment": "EUR 50000000",
"someKey": "1"
},
Expand All @@ -31,6 +35,10 @@
"translation": "United Kingdom"
}
],
"descriptionI18nString": {
"de": "Vereinigtes Königreich",
"en": "United Kingdom"
},
"totalInvestment": "EUR 3000000",
"someKey": "2"
},
Expand All @@ -47,6 +55,10 @@
"translation": "United States"
}
],
"descriptionI18nString": {
"de": "Vereinigte Staaten",
"en": "United States"
},
"someKey": null
},
{
Expand Down
42 changes: 41 additions & 1 deletion spec/regression/logistics/tests/deprecations.result.json
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,16 @@
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "consignee_country_descriptionI18nString_ASC",
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "consignee_country_descriptionI18nString_DESC",
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "consignee_country_totalInvestment_ASC",
"isDeprecated": true,
Expand Down Expand Up @@ -621,6 +631,16 @@
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "destinationCountry_descriptionI18nString_ASC",
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "destinationCountry_descriptionI18nString_DESC",
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "destinationCountry_totalInvestment_ASC",
"isDeprecated": true,
Expand Down Expand Up @@ -701,6 +721,16 @@
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "originCountry_descriptionI18nString_ASC",
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "originCountry_descriptionI18nString_DESC",
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "originCountry_totalInvestment_ASC",
"isDeprecated": true,
Expand Down Expand Up @@ -851,6 +881,16 @@
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "destination_country_descriptionI18nString_ASC",
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "destination_country_descriptionI18nString_DESC",
"isDeprecated": true,
"deprecationReason": "OrderBy values that include relations or references are deprecated"
},
{
"name": "destination_country_totalInvestment_ASC",
"isDeprecated": true,
Expand Down Expand Up @@ -1104,4 +1144,4 @@
]
}
}
}
}
Loading

0 comments on commit c287624

Please sign in to comment.