feat(search): support platform and benchmark config filters
Some checks failed
Build and Publish Docker Image / deploy (push) Failing after 1m2s
Some checks failed
Build and Publish Docker Image / deploy (push) Failing after 1m2s
Add platform handling to submissions and persist a normalized value (`windows`, `linux`, `macos`) with a default of `windows` when omitted. Extend search/index filtering to support `thread`, `platform`, `intensity`, and `durationSecs` alongside existing text/CPU token matching, and wire these params through request parsing, page data, and navigation URLs. Update API/README docs and examples to reflect the new submission inputs and search capabilities so users can run more precise queries.feat(search): support platform and benchmark config filters Add platform handling to submissions and persist a normalized value (`windows`, `linux`, `macos`) with a default of `windows` when omitted. Extend search/index filtering to support `thread`, `platform`, `intensity`, and `durationSecs` alongside existing text/CPU token matching, and wire these params through request parsing, page data, and navigation URLs. Update API/README docs and examples to reflect the new submission inputs and search capabilities so users can run more precise queries.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
GET http://localhost:8080/api/search?text=intel&cpu=13700
|
||||
GET http://localhost:8080/api/search?text=intel&cpu=13700&thread=multi&platform=windows&intensity=10&durationSecs=30
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8080/api/search?text=anonymous
|
||||
GET http://localhost:8080/api/search?text=anonymous&thread=single&platform=linux&intensity=1&durationSecs=10
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8080/?page=1&text=lab&cpu=ryzen
|
||||
GET http://localhost:8080/?page=1&text=lab&cpu=ryzen&thread=multi&platform=windows&intensity=10&durationSecs=20
|
||||
|
||||
@@ -3,6 +3,7 @@ Content-Type: application/json
|
||||
|
||||
{
|
||||
"submitter": "Workstation-Lab-A",
|
||||
"platform": "windows",
|
||||
"benchmark": {
|
||||
"config": {
|
||||
"durationSecs": 20,
|
||||
|
||||
@@ -6,6 +6,10 @@ Content-Disposition: form-data; name="submitter"
|
||||
|
||||
Intel-Test-Rig
|
||||
--BenchBoundary
|
||||
Content-Disposition: form-data; name="platform"
|
||||
|
||||
linux
|
||||
--BenchBoundary
|
||||
Content-Disposition: form-data; name="benchmark"; filename="cpu-bench-result.json"
|
||||
Content-Type: application/json
|
||||
|
||||
|
||||
Reference in New Issue
Block a user