Skip to content

Commit

Permalink
Remove the *legacy* Elasticsearch template (elastic#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Martin authored and dcode committed Apr 15, 2020
1 parent a8eeaba commit 2623505
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1,562 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Thanks, you're awesome :-) -->

* Changed the order and column names in the csv. #621
* Removed the file `schema.json` and the code generating it. #627
* Removed the legacy Elasticsearch template. #629
* Note: The *good* Elasticsearch templates are available in directory
`generated/elasticsearch`, this PR only removes an obsolete file.

#### Bugfixes

Expand Down
13 changes: 2 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ check-license-headers:
# Clean deletes all temporary and generated content.
.PHONY: clean
clean:
rm -rf build generated/legacy/template.json
rm -rf build
# Clean all markdown files for use-cases
find ./use-cases -type f -name '*.md' -not -name 'README.md' -print0 | xargs -0 rm --

Expand All @@ -55,7 +55,7 @@ fmt: ve

# Alias to generate everything.
.PHONY: generate
generate: template legacy_use_cases codegen generator
generate: legacy_use_cases codegen generator

# Run the new generator
.PHONY: generator
Expand Down Expand Up @@ -98,15 +98,6 @@ reload_docs: generator docs
setup: ve
cd scripts && $(FORCE_GO_MODULES) go mod download

# Build an Elasticsearch index template.
.PHONY: template
template:
cd scripts \
&& $(FORCE_GO_MODULES) go run cmd/template/template.go \
-version=$(VERSION) \
-schema=../schemas \
> ../generated/legacy/template.json

# Run the ECS tests
.PHONY: test
test:
Expand Down
Loading

0 comments on commit 2623505

Please sign in to comment.