Remove unused

This commit is contained in:
Adrian Woźniak 2023-07-07 15:51:11 +02:00
parent 465fcfba0a
commit cfa93d5286
5 changed files with 211 additions and 2832 deletions

2965
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -2,23 +2,22 @@
members = [ members = [
# shared # shared
"crates/model", "crates/model",
"crates/channels", # "crates/channels",
"crates/config", "crates/config",
"crates/testx", "crates/testx",
"crates/db-utils", "crates/db-utils",
# actors # actors
"crates/account_manager", # "crates/account_manager",
"crates/cart_manager", # "crates/cart_manager",
# "crates/database_manager", # "crates/database_manager",
"crates/email_manager", # "crates/email_manager",
"crates/order_manager", # "crates/order_manager",
"crates/payment_manager", # "crates/payment_manager",
"crates/search_manager", # "crates/search_manager",
"crates/stock_manager", # "crates/stock_manager",
"crates/token_manager", # "crates/token_manager",
# "crates/fs_manager", # "crates/fs_manager",
"crates/lang_provider", # "crates/lang_provider",
"crates/fulfillment_adapter",
# "crates/payment_adapter_pay_u", # "crates/payment_adapter_pay_u",
# artifacts # artifacts
# "crates/db-seed", # "crates/db-seed",
@ -27,6 +26,7 @@ members = [
# vendor # vendor
# "vendor/t_pay", # "vendor/t_pay",
# "vendor/pay_u", # "vendor/pay_u",
"crates/fulfillment_adapter",
# PLUGINS # PLUGINS
"crates/telemetry-plugin", "crates/telemetry-plugin",
"crates/plugin-api", "crates/plugin-api",
@ -50,7 +50,7 @@ members = [
"migration", "migration",
###### TEST ###### TEST
"crates/web-api-plugin-tester", # "crates/web-api-plugin-tester",
] ]
exclude = [ exclude = [
"crates/web" "crates/web"

View File

@ -1,53 +0,0 @@
{{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ if gt (.Alerts.Resolved | len) 0 }}, RESOLVED:{{ .Alerts.Resolved | len }}{{ end }}{{ end }}] {{ .GroupLabels.SortedPairs.Values | join " " }} {{ if gt (len .CommonLabels) (len .GroupLabels) }}({{ with .CommonLabels.Remove .GroupLabels.Names }}{{ .Values | join " " }}{{ end }}){{ end }}{{ end }}
{{ define "__text_values_list" }}{{ if len .Values }}{{ $first := true }}{{ range $refID, $value := .Values -}}
{{ if $first }}{{ $first = false }}{{ else }}, {{ end }}{{ $refID }}={{ $value }}{{ end -}}
{{ else }}[no value]{{ end }}{{ end }}
{{ define "__text_alert_list" }}{{ range . }}
Value: {{ template "__text_values_list" . }}
Labels:
{{ range .Labels.SortedPairs }} - {{ .Name }} = {{ .Value }}
{{ end }}Annotations:
{{ range .Annotations.SortedPairs }} - {{ .Name }} = {{ .Value }}
{{ end }}{{ if gt (len .GeneratorURL) 0 }}Source: {{ .GeneratorURL }}
{{ end }}{{ if gt (len .SilenceURL) 0 }}Silence: {{ .SilenceURL }}
{{ end }}{{ if gt (len .DashboardURL) 0 }}Dashboard: {{ .DashboardURL }}
{{ end }}{{ if gt (len .PanelURL) 0 }}Panel: {{ .PanelURL }}
{{ end }}{{ end }}{{ end }}
{{ define "default.title" }}{{ template "__subject" . }}{{ end }}
{{ define "default.message" }}{{ if gt (len .Alerts.Firing) 0 }}**Firing**
{{ template "__text_alert_list" .Alerts.Firing }}{{ if gt (len .Alerts.Resolved) 0 }}
{{ end }}{{ end }}{{ if gt (len .Alerts.Resolved) 0 }}**Resolved**
{{ template "__text_alert_list" .Alerts.Resolved }}{{ end }}{{ end }}
{{ define "__teams_text_alert_list" }}{{ range . }}
Value: {{ template "__text_values_list" . }}
Labels:
{{ range .Labels.SortedPairs }} - {{ .Name }} = {{ .Value }}
{{ end }}
Annotations:
{{ range .Annotations.SortedPairs }} - {{ .Name }} = {{ .Value }}
{{ end }}
{{ if gt (len .GeneratorURL) 0 }}Source: [{{ .GeneratorURL }}]({{ .GeneratorURL }})
{{ end }}{{ if gt (len .SilenceURL) 0 }}Silence: [{{ .SilenceURL }}]({{ .SilenceURL }})
{{ end }}{{ if gt (len .DashboardURL) 0 }}Dashboard: [{{ .DashboardURL }}]({{ .DashboardURL }})
{{ end }}{{ if gt (len .PanelURL) 0 }}Panel: [{{ .PanelURL }}]({{ .PanelURL }})
{{ end }}
{{ end }}{{ end }}
{{ define "teams.default.message" }}{{ if gt (len .Alerts.Firing) 0 }}**Firing**
{{ template "__teams_text_alert_list" .Alerts.Firing }}{{ if gt (len .Alerts.Resolved) 0 }}
{{ end }}{{ end }}{{ if gt (len .Alerts.Resolved) 0 }}**Resolved**
{{ template "__teams_text_alert_list" .Alerts.Resolved }}{{ end }}{{ end }}

View File

@ -1 +0,0 @@
ingest_partition_01H3FQJ4S8FCJRDTW2KNVMPKBF