Skip to content

Commit 4382f9f

Browse files
committed
test: add regression test for I18nString filter
The AQL fragment created by this filter generates an internal error in ArangoDB 3.12.0 due to a regression. The bug has been fixed in ArangoDB 3.12.1.
1 parent ad5af7f commit 4382f9f

8 files changed

+304
-184
lines changed

spec/regression/logistics/model/country.graphqls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ type Country
33
@roles(read: ["allusers"], readWrite: ["admin"]) {
44
isoCode: String @key
55
description: [Translation]
6+
descriptionI18nString: I18nString
67
totalInvestment: String @roles(readWrite: "accounting")
78
someKey: String @flexSearch
89
}

spec/regression/logistics/test-data.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"translation": "Germany"
1616
}
1717
],
18+
"descriptionI18nString": {
19+
"de": "Deutschland",
20+
"en": "Germany"
21+
},
1822
"totalInvestment": "EUR 50000000",
1923
"someKey": "1"
2024
},
@@ -31,6 +35,10 @@
3135
"translation": "United Kingdom"
3236
}
3337
],
38+
"descriptionI18nString": {
39+
"de": "Vereinigtes Königreich",
40+
"en": "United Kingdom"
41+
},
3442
"totalInvestment": "EUR 3000000",
3543
"someKey": "2"
3644
},
@@ -47,6 +55,10 @@
4755
"translation": "United States"
4856
}
4957
],
58+
"descriptionI18nString": {
59+
"de": "Vereinigte Staaten",
60+
"en": "United States"
61+
},
5062
"someKey": null
5163
},
5264
{

spec/regression/logistics/tests/deprecations.result.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,16 @@
521521
"isDeprecated": true,
522522
"deprecationReason": "OrderBy values that include relations or references are deprecated"
523523
},
524+
{
525+
"name": "consignee_country_descriptionI18nString_ASC",
526+
"isDeprecated": true,
527+
"deprecationReason": "OrderBy values that include relations or references are deprecated"
528+
},
529+
{
530+
"name": "consignee_country_descriptionI18nString_DESC",
531+
"isDeprecated": true,
532+
"deprecationReason": "OrderBy values that include relations or references are deprecated"
533+
},
524534
{
525535
"name": "consignee_country_totalInvestment_ASC",
526536
"isDeprecated": true,
@@ -621,6 +631,16 @@
621631
"isDeprecated": true,
622632
"deprecationReason": "OrderBy values that include relations or references are deprecated"
623633
},
634+
{
635+
"name": "destinationCountry_descriptionI18nString_ASC",
636+
"isDeprecated": true,
637+
"deprecationReason": "OrderBy values that include relations or references are deprecated"
638+
},
639+
{
640+
"name": "destinationCountry_descriptionI18nString_DESC",
641+
"isDeprecated": true,
642+
"deprecationReason": "OrderBy values that include relations or references are deprecated"
643+
},
624644
{
625645
"name": "destinationCountry_totalInvestment_ASC",
626646
"isDeprecated": true,
@@ -701,6 +721,16 @@
701721
"isDeprecated": true,
702722
"deprecationReason": "OrderBy values that include relations or references are deprecated"
703723
},
724+
{
725+
"name": "originCountry_descriptionI18nString_ASC",
726+
"isDeprecated": true,
727+
"deprecationReason": "OrderBy values that include relations or references are deprecated"
728+
},
729+
{
730+
"name": "originCountry_descriptionI18nString_DESC",
731+
"isDeprecated": true,
732+
"deprecationReason": "OrderBy values that include relations or references are deprecated"
733+
},
704734
{
705735
"name": "originCountry_totalInvestment_ASC",
706736
"isDeprecated": true,
@@ -851,6 +881,16 @@
851881
"isDeprecated": true,
852882
"deprecationReason": "OrderBy values that include relations or references are deprecated"
853883
},
884+
{
885+
"name": "destination_country_descriptionI18nString_ASC",
886+
"isDeprecated": true,
887+
"deprecationReason": "OrderBy values that include relations or references are deprecated"
888+
},
889+
{
890+
"name": "destination_country_descriptionI18nString_DESC",
891+
"isDeprecated": true,
892+
"deprecationReason": "OrderBy values that include relations or references are deprecated"
893+
},
854894
{
855895
"name": "destination_country_totalInvestment_ASC",
856896
"isDeprecated": true,
@@ -1104,4 +1144,4 @@
11041144
]
11051145
}
11061146
}
1107-
}
1147+
}

0 commit comments

Comments
 (0)