mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-23 04:50:45 -06:00
* enhancement: add more kql spec tests and simplify ast normalization * enhancement: kql parser error if query starts with AND * enhancement: add kql docs and support for date and time only dateTimeRestriction queries * enhancement: add the ability to decide how kql nodes get connected connecting nodes (with edges) seem straight forward when not using group, the default connection for nodes with the same node is always OR. THis only applies for first level nodes, for grouped nodes it is defined differently. The KQL docs are saying, nodes inside a grouped node, with the same key are connected by a AND edge. * enhancement: explicit error handling for falsy group nodes and queries with leading binary operator * enhancement: use optimized grammar for kql parser and toolify pigeon * enhancement: simplify error handling * fix: kql implicit 'AND' and 'OR' follows the ms html spec instead of the pdf spec
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
SHELL := bash
|
|
NAME := search
|
|
|
|
include ../../.make/recursion.mk
|
|
|
|
############ tooling ############
|
|
ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI
|
|
include ../../.bingo/Variables.mk
|
|
endif
|
|
|
|
############ go tooling ############
|
|
include ../../.make/go.mk
|
|
|
|
############ release ############
|
|
include ../../.make/release.mk
|
|
|
|
############ docs generate ############
|
|
include ../../.make/docs.mk
|
|
|
|
.PHONY: docs-generate
|
|
docs-generate: config-docs-generate
|
|
|
|
############ generate ############
|
|
include ../../.make/generate.mk
|
|
|
|
.PHONY: ci-go-generate
|
|
ci-go-generate: $(PIGEON) $(MOCKERY) # CI runs ci-node-generate automatically before this target
|
|
$(MOCKERY) --dir pkg/engine --output pkg/engine/mocks --case underscore --name Engine
|
|
$(MOCKERY) --dir pkg/content --output pkg/content/mocks --case underscore --name Extractor
|
|
$(MOCKERY) --dir pkg/content --output pkg/content/mocks --case underscore --name Retriever
|
|
$(MOCKERY) --dir pkg/search --output pkg/search/mocks --case underscore --name Searcher
|
|
$(PIGEON) -optimize-grammar -optimize-parser -o pkg/query/kql/dictionary_gen.go pkg/query/kql/dictionary.peg
|
|
|
|
.PHONY: ci-node-generate
|
|
ci-node-generate:
|
|
|
|
############ licenses ############
|
|
.PHONY: ci-node-check-licenses
|
|
ci-node-check-licenses:
|
|
|
|
.PHONY: ci-node-save-licenses
|
|
ci-node-save-licenses:
|