-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove dead source code from UI folder #21446
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
|
||
# SUBDIRS are directories that have their own Makefile. | ||
# It is required that all SUBDIRS have the `all` and `clean` targets. | ||
SUBDIRS := http ui chronograf storage | ||
SUBDIRS := http chronograf storage | ||
|
||
export GOPATH=$(shell go env GOPATH) | ||
export GOOS=$(shell go env GOOS) | ||
|
@@ -69,18 +69,16 @@ SOURCES := $(shell find . -name '*.go' -not -name '*_test.go') go.mod go.sum | |
# All go source files excluding the vendored sources. | ||
SOURCES_NO_VENDOR := $(shell find . -path ./vendor -prune -o -name "*.go" -not -name '*_test.go' -print) | ||
|
||
# All assets for chronograf | ||
UISOURCES := $(shell find ui -type f -not \( -path ui/build/\* -o -path ui/node_modules/\* -o -path ui/.cache/\* -o -name Makefile -prune \) ) | ||
|
||
# All precanned dashboards | ||
PRECANNED := $(shell find chronograf/canned -name '*.json') | ||
|
||
# List of binary cmds to build | ||
CMDS := \ | ||
bin/$(GOOS)/influx \ | ||
bin/$(GOOS)/influxd | ||
|
||
all: $(SUBDIRS) generate $(CMDS) | ||
all: ui/build $(SUBDIRS) generate $(CMDS) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't want to have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's OK, we can cleanup in stages 👍 |
||
|
||
# Target for the built UI assets directory. | ||
ui/build: | ||
scripts/fetch-ui-assets.sh | ||
|
||
# Target to build subdirs. | ||
# Each subdirs must support the `all` target. | ||
|
@@ -101,28 +99,6 @@ influxd: bin/$(GOOS)/influxd | |
|
||
influx: bin/$(GOOS)/influx | ||
|
||
# | ||
# Define targets for the web ui | ||
# | ||
|
||
node_modules: ui/node_modules | ||
|
||
# phony target to wait for server to be alive | ||
ping: | ||
./etc/pinger.sh | ||
|
||
e2e: ping | ||
make -C ui e2e | ||
|
||
chronograf_lint: | ||
make -C ui lint | ||
|
||
ui/node_modules: | ||
make -C ui node_modules | ||
|
||
ui_client: | ||
make -C ui client | ||
|
||
# | ||
# Define action only targets | ||
# | ||
|
@@ -143,10 +119,7 @@ checktidy: | |
checkgenerate: | ||
./etc/checkgenerate.sh | ||
|
||
generate: $(SUBDIRS) | ||
|
||
test-js: node_modules | ||
make -C ui test | ||
generate: ui/build $(SUBDIRS) | ||
|
||
test-go: | ||
$(GO_TEST) $(GO_TEST_PATHS) | ||
|
@@ -167,7 +140,7 @@ test-integration: GO_TAGS=integration | |
test-integration: | ||
$(GO_TEST) -count=1 $(GO_TEST_PATHS) | ||
|
||
test: test-go test-js | ||
test: test-go | ||
|
||
test-go-race: | ||
$(GO_TEST) -v -race -count=1 $(GO_TEST_PATHS) | ||
|
@@ -187,26 +160,7 @@ clean: | |
@for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done | ||
$(RM) -r bin | ||
$(RM) -r dist | ||
|
||
define CHRONOGIRAFFE | ||
._ o o | ||
\_`-)|_ | ||
,"" _\_ | ||
," ## | 0 0. | ||
," ## ,-\__ `. | ||
," / `--._;) - "HAI, I'm Chronogiraffe. Let's be friends!" | ||
," ## / | ||
," ## / | ||
endef | ||
export CHRONOGIRAFFE | ||
chronogiraffe: $(SUBDIRS) generate $(CMDS) | ||
@echo "$$CHRONOGIRAFFE" | ||
|
||
run: chronogiraffe | ||
./bin/$(GOOS)/influxd --assets-path=ui/build | ||
|
||
run-e2e: chronogiraffe | ||
./bin/$(GOOS)/influxd --assets-path=ui/build --e2e-testing --store=memory | ||
$(RM) -r ui/build | ||
|
||
# generate feature flags | ||
flags: | ||
|
@@ -215,10 +169,6 @@ flags: | |
docker-image-influx: | ||
@cp .gitignore .dockerignore | ||
@docker image build -t influxdb:dev --target influx . | ||
|
||
docker-image-ui: | ||
@cp .gitignore .dockerignore | ||
@docker image build -t influxui:dev --target ui . | ||
|
||
dshell-image: | ||
@cp .gitignore .dockerignore | ||
|
@@ -228,4 +178,4 @@ dshell: dshell-image | |
@docker container run --rm -p 8086:8086 -p 8080:8080 -u $(shell id -u) -it -v $(shell pwd):/code -w /code influxdb:dshell | ||
|
||
# .PHONY targets represent actions that do not create an actual file. | ||
.PHONY: all $(SUBDIRS) run fmt checkfmt tidy checktidy checkgenerate test test-go test-js test-go-race test-tls bench clean node_modules vet nightly chronogiraffe dist ping protoc e2e run-e2e influxd libflux flags dshell dclean docker-image-flux docker-image-influx pkg-config | ||
.PHONY: all $(SUBDIRS) run fmt checkfmt tidy checktidy checkgenerate test test-go test-go-race test-tls bench clean node_modules vet nightly dist protoc influxd libflux flags dshell dclean docker-image-flux docker-image-influx pkg-config |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ | |
# respective releases in "influxdata/ui" (OSS-2.0, OSS-2.1, etc). Those releases | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved this file in the |
||
# are updated only when a bug fix needs included for the UI of that OSS release. | ||
|
||
curl -L https://github.com/influxdata/ui/releases/download/OSS-Master/build.tar.gz --output build.tar.gz | ||
tar -xzf build.tar.gz | ||
rm build.tar.gz | ||
curl -L https://github.com/influxdata/ui/releases/download/OSS-Master/build.tar.gz --output ui/build.tar.gz | ||
tar -xzf ui/build.tar.gz -C ui | ||
rm ui/build.tar.gz |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't used anywhere else that I could find, so I'm getting rid of it.