Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Index Schema Field Filtering (#202)
* new parameters and schemas added for field based filtering Signed-off-by: Michael Valdron <[email protected]> * new types and endpoint signatures to support additional filter parameters Signed-off-by: Michael Valdron <[email protected]> * setmap collection type and test cases defined Signed-off-by: Michael Valdron <[email protected]> * multi field filtering changes Signed-off-by: Michael Valdron <[email protected]> * setmap changes dynamic typing and union Signed-off-by: Michael Valdron <[email protected]> * AndFilter and FilterResult Signed-off-by: Michael Valdron <[email protected]> * filters use lazy evaluation Signed-off-by: Michael Valdron <[email protected]> * StructToMap function Signed-off-by: Michael Valdron <[email protected]> * replace setmap (using built-in map) with hashicorp hashset data structure Signed-off-by: Michael Valdron <[email protected]> * revert schema changes Signed-off-by: Michael Valdron <[email protected]> * use fields instead of reverted getter functions Signed-off-by: Michael Valdron <[email protected]> * array fuzzy filter & filter options Signed-off-by: Michael Valdron <[email protected]> * attribute names field test cases Signed-off-by: Michael Valdron <[email protected]> * simplify type signatures under filter.go Signed-off-by: Michael Valdron <[email protected]> * filter resources test cases Signed-off-by: Michael Valdron <[email protected]> * fix filterDevfileArrayFuzzy to consider version schema results before filtering out index schema entry Signed-off-by: Michael Valdron <[email protected]> * filter by starter projects test cases Signed-off-by: Michael Valdron <[email protected]> * filter by link names test cases Signed-off-by: Michael Valdron <[email protected]> * fix link getters to return the link label rather than the link itself Signed-off-by: Michael Valdron <[email protected]> * filter by command groups test cases Signed-off-by: Michael Valdron <[email protected]> * filter by git remote names test cases Signed-off-by: Michael Valdron <[email protected]> * add missing string field filter test case definitions Signed-off-by: Michael Valdron <[email protected]> * Parameter label sets and getters Signed-off-by: Michael Valdron <[email protected]> * filter index parameters Signed-off-by: Michael Valdron <[email protected]> * fix icon parameter conflict Signed-off-by: Michael Valdron <[email protected]> * revert error returns for FilterDevfileSchemaVersion Signed-off-by: Michael Valdron <[email protected]> * add iconUri field to IndexParams Signed-off-by: Michael Valdron <[email protected]> * add filter result name field and return error if eval fails Signed-off-by: Michael Valdron <[email protected]> * only perform field filtering with IndexParams tied to a field Signed-off-by: Michael Valdron <[email protected]> * fix version regex in openapi spec Signed-off-by: Michael Valdron <[email protected]> * '/v2index/all?arch=arm64&language=java' call integration test case Signed-off-by: Michael Valdron <[email protected]> * REST doc update Signed-off-by: Michael Valdron <[email protected]> * update generated source from doc changes Signed-off-by: Michael Valdron <[email protected]> * remove minSchemaVersion and maxSchemaVersion from v1 param conversion Signed-off-by: Michael Valdron <[email protected]> * fix k8s.io/utils as direct dependency Signed-off-by: Michael Valdron <[email protected]> * method not allowed query params removed Signed-off-by: Michael Valdron <[email protected]> * string pointer set check function Signed-off-by: Michael Valdron <[email protected]> * minVersion & maxVersion filtering with range filtering & unit test fixups Signed-off-by: Michael Valdron <[email protected]> * add missing schema version range filters to devfile endpoints Signed-off-by: Michael Valdron <[email protected]> * remove fuzzy sets and punctuation removal Signed-off-by: Michael Valdron <[email protected]> * /v2index?minVersion=1.1&maxVersion=1.1 integration test cases added Signed-off-by: Michael Valdron <[email protected]> * /index?provider=Red%22Hat&resources=.zip integrartion test case added Signed-off-by: Michael Valdron <[email protected]> * skip new test cases outside test registry Signed-off-by: Michael Valdron <[email protected]> * /index/sample?description=Hello%22World integration test case added Signed-off-by: Michael Valdron <[email protected]> * /index/all?description=node integration test case added Signed-off-by: Michael Valdron <[email protected]> * /v2index?name=java&default=true integration test case added Signed-off-by: Michael Valdron <[email protected]> * /v2index/sample?description=java&default=true integration test case added Signed-off-by: Michael Valdron <[email protected]> * /v2index/all?description=java&default=true integration test case added Signed-off-by: Michael Valdron <[email protected]> * remove lazy eval from FilterResult Signed-off-by: Michael Valdron <[email protected]> * remove unused MakeMockFilterResult Signed-off-by: Michael Valdron <[email protected]> * AndFilter params by ref instead of by value Signed-off-by: Michael Valdron <[email protected]> * add deprecated query param Signed-off-by: Michael Valdron <[email protected]> * add FilterDevfileDeprecated filter function and test cases Signed-off-by: Michael Valdron <[email protected]> * update test stacks to test against deprecated parameter Signed-off-by: Michael Valdron <[email protected]> * update build index to filter based on deprecated stacks if deprecated parameter is set Signed-off-by: Michael Valdron <[email protected]> * integration test cases for deprecated filter parameter Signed-off-by: Michael Valdron <[email protected]> --------- Signed-off-by: Michael Valdron <[email protected]>
- Loading branch information