-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f70d4d0
commit 503f1ec
Showing
8 changed files
with
302 additions
and
86 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
|
@@ -13,9 +13,6 @@ | |
|
||
namespace SeadQueryTest.Model | ||
{ | ||
|
||
|
||
|
||
public class FacetsGraphTests : IDisposable | ||
{ | ||
public void Dispose() | ||
|
200 changes: 200 additions & 0 deletions
200
...uery.test/RequestsRFC2616/facet_load_tbl_denormalized_measured_values_33_0.rest
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,200 @@ | ||
### Single load/tbl_denormalized_measured_values_33_0 | ||
POST https://seadserv.humlab.umu.se:8089/api/facets/load | ||
content-type: application/json | ||
mode: cors | ||
accept: application/json | ||
|
||
{ | ||
"requestId":1, | ||
"requestType":"populate", | ||
"targetCode":"tbl_denormalized_measured_values_33_0", | ||
"triggerCode":"tbl_denormalized_measured_values_33_0", | ||
"facetConfigs":[ { | ||
"facetCode":"tbl_denormalized_measured_values_33_0", | ||
"position":1, | ||
"picks":[], | ||
"textFilter":"" | ||
} | ||
] | ||
} | ||
|
||
### Single load/tbl_denormalized_measured_values_32 | ||
POST http://localhost:53053/api/facets/load | ||
content-type: application/json | ||
mode: cors | ||
accept: application/json | ||
|
||
{ | ||
"requestId":1, | ||
"requestType":"populate", | ||
"targetCode":"tbl_denormalized_measured_values_32", | ||
"triggerCode":"tbl_denormalized_measured_values_32", | ||
"facetConfigs":[ { | ||
"facetCode":"tbl_denormalized_measured_values_32", | ||
"position":1, | ||
"picks":[ | ||
{ "pickType": 2, "pickValue": "50", "text": "50"}, | ||
{ "pickType": 3, "pickValue": "100", "text": "100"} | ||
], | ||
"textFilter":"" | ||
} | ||
] | ||
} | ||
|
||
### Single load/tbl_denormalized_measured_values_33_0 | ||
POST http://localhost:53053/api/facets/load | ||
content-type: application/json | ||
mode: cors | ||
accept: application/json | ||
|
||
{ | ||
"requestId":1, | ||
"requestType":"populate", | ||
"targetCode":"tbl_denormalized_measured_values_33_0", | ||
"triggerCode":"tbl_denormalized_measured_values_33_0", | ||
"facetConfigs":[ { | ||
"facetCode":"tbl_denormalized_measured_values_33_0", | ||
"position":1, | ||
"picks":[], | ||
"textFilter":"" | ||
} | ||
] | ||
} | ||
|
||
### Single load/site | ||
POST https://seadserv.humlab.umu.se:8089/api/facets/load | ||
content-type: application/json | ||
mode: cors | ||
accept: application/json | ||
|
||
{ | ||
"RequestId":1, | ||
"RequestType":"populate", | ||
"TargetCode":"sites", | ||
"FacetConfigs":[ { | ||
"FacetCode":"sites", | ||
"Position":1, | ||
"Picks":[], | ||
"TextFilter":"" | ||
}] | ||
} | ||
|
||
### Issue with Country filter | ||
|
||
POST http://localhost:53053/api/result/load | ||
Sec-Fetch-Mode: cors | ||
mode: cors | ||
Accept: application/json, text/javascript, /; q=0.01 | ||
Content-Type: application/json; charset=UTF-8 | ||
|
||
{ | ||
"facetsConfig": { | ||
"requestId":2, | ||
"requestType":"populate", | ||
"targetCode":"country", | ||
"triggerCode":"country", | ||
"facetConfigs":[ | ||
{ | ||
"facetCode":"country", | ||
"position":1, | ||
"picks":[ | ||
{ | ||
"pickType":1, | ||
"pickValue":64, | ||
"text":64 | ||
} | ||
], | ||
"textFilter":"" | ||
} | ||
] | ||
}, | ||
"resultConfig": { | ||
"requestId":2, | ||
"sessionId":"1", | ||
"viewTypeId":"map", | ||
"aggregateKeys":["site_level"] | ||
} | ||
} | ||
|
||
### Sample group filter error #35 | ||
POST http://localhost:53053/api/result/load | ||
Sec-Fetch-Mode: cors | ||
mode: cors | ||
Accept: application/json, text/javascript, */*; q=0.01 | ||
Content-Type: application/json; charset=UTF-8 | ||
|
||
{ | ||
"facetsConfig": { | ||
"requestId":4, | ||
"requestType":"populate", | ||
"targetCode":"sample_groups", | ||
"triggerCode":"sample_groups", | ||
"facetConfigs":[{ | ||
"facetCode":"sample_groups", | ||
"position":1, | ||
"picks":[{ | ||
"pickType":1, | ||
"pickValue":510, | ||
"text":510}], | ||
"textFilter":"" | ||
} | ||
]}, | ||
"resultConfig":{ | ||
"requestId":4, | ||
"sessionId":"1", | ||
"viewTypeId":"map", | ||
"aggregateKeys":["site_level"] | ||
} | ||
} | ||
|
||
### To few records...? | ||
POST http://localhost:53053/api/result/load | ||
Sec-Fetch-Mode: cors | ||
mode: cors | ||
Accept: application/json, text/javascript, */*; q=0.01 | ||
Content-Type: application/json; charset=UTF-8 | ||
{ | ||
"requestId": 1, | ||
"requestType": "populate", | ||
"targetCode": "tbl_denormalized_measured_values_33_0", | ||
"facetConfigs": [ | ||
{ | ||
"facetCode": "tbl_denormalized_measured_values_33_0", | ||
"position": 1, | ||
"picks": [ | ||
], | ||
"textFilter": "" | ||
} | ||
] | ||
} | ||
|
||
### Issue with sample groups | ||
#POST http://localhost:53053/api/result/load | ||
POST https://seadserv.humlab.umu.se:8089/api/result/load | ||
Sec-Fetch-Mode: cors | ||
mode: cors | ||
Accept: application/json, text/javascript, */*; q=0.01 | ||
Content-Type: application/json; charset=UTF-8 | ||
|
||
{ | ||
"facetsConfig": { | ||
"requestId":4, | ||
"requestType":"populate", | ||
"targetCode":"sample_groups", | ||
"triggerCode":"sample_groups", | ||
"facetConfigs":[ | ||
{ | ||
"facetCode":"sample_groups", | ||
"position":1, | ||
"picks":[ | ||
{"pickType":1,"pickValue":510,"text":510}],"textFilter":""} | ||
] | ||
}, | ||
"resultConfig":{ | ||
"requestId":4, | ||
"sessionId":"1", | ||
"viewTypeId":"map", | ||
"aggregateKeys":["site_level"] | ||
} | ||
} |
57 changes: 0 additions & 57 deletions
57
...ry.test/requests_RFC_2616/facet_load_tbl_denormalized_measured_values_33_0.rest
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
SELECT MIN(method_values.measured_value) AS lower, | ||
MAX(method_values.measured_value) AS upper | ||
FROM facet.method_measured_values(33, 0) |
Oops, something went wrong.