Skip to content

Commit

Permalink
feat(BUX-525): remove graphql (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 authored Jan 30, 2024
1 parent 8a3946e commit d2fa984
Show file tree
Hide file tree
Showing 25 changed files with 3 additions and 21,284 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ clean: ## Remove previous builds and any cached data
@test $(DISTRIBUTIONS_DIR)
@if [ -d $(DISTRIBUTIONS_DIR) ]; then rm -r $(DISTRIBUTIONS_DIR); fi

.PHONY: graphql
graphql: ## Generates the graphql schemas
@go run github.com/99designs/gqlgen generate

.PHONY: install-all-contributors
install-all-contributors: ## Installs all contributors locally
@echo "installing all-contributors cli tool..."
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ coverage Shows the test coverage
diff Show the git diff
generate Runs the go generate command in the base of the repo
godocs Sync the latest tag with GoDocs
graphql Generates the graphql schemas
help Show this help message
install Install the application
install-all-contributors Installs all contributors locally
Expand Down
7 changes: 0 additions & 7 deletions actions/graphql/graphql.go

This file was deleted.

165 changes: 0 additions & 165 deletions actions/graphql/routes.go

This file was deleted.

3 changes: 1 addition & 2 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ func main() {
// (debugging: show services that are enabled or not)
if appConfig.Debug {
services.Logger.Debug().Msgf(
"datastore: %s | cachestore: %s | taskmanager: %s | new_relic: %t | graphql: %t",
"datastore: %s | cachestore: %s | taskmanager: %s | new_relic: %t",
appConfig.Db.Datastore.Engine.String(),
appConfig.Cache.Engine.String(),
appConfig.TaskManager.Factory.String(),
appConfig.NewRelic.Enabled,
appConfig.GraphQL.Enabled,
)
}

Expand Down
8 changes: 0 additions & 8 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ type AppConfig struct {
DebugProfiling bool `json:"debug_profiling" mapstructure:"debug_profiling"`
// DisableITC is a flag for disabling Incoming Transaction Checking.
DisableITC bool `json:"disable_itc" mapstructure:"disable_itc"`
// GraphQL is GraphQL related settings.
GraphQL *GraphqlConfig `json:"graphql" mapstructure:"graphql"`
// ImportBlockHeaders is a URL from where the headers can be downloaded.
ImportBlockHeaders string `json:"import_block_headers" mapstructure:"import_block_headers"`
// Logging is the configuration for zerolog used in bux.
Expand Down Expand Up @@ -130,12 +128,6 @@ type DatastoreConfig struct {
TablePrefix string `json:"table_prefix" mapstructure:"table_prefix"`
}

// GraphqlConfig is the configuration for the GraphQL server
type GraphqlConfig struct {
// Enabled is a flag that says whether graphql should be enabled.
Enabled bool `json:"enabled" mapstructure:"enabled"`
}

// NewRelicConfig is the configuration for New Relic
type NewRelicConfig struct {
// DomainName is used for hostname display.
Expand Down
7 changes: 0 additions & 7 deletions config/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func getDefaultAppConfig() *AppConfig {
Debug: true,
DebugProfiling: true,
DisableITC: true,
GraphQL: getGraphqlDefaults(),
ImportBlockHeaders: "",
Logging: getLoggingDefaults(),
NewRelic: getNewRelicDefaults(),
Expand Down Expand Up @@ -90,12 +89,6 @@ func getDbDefaults() *DbConfig {
}
}

func getGraphqlDefaults() *GraphqlConfig {
return &GraphqlConfig{
Enabled: false,
}
}

func getLoggingDefaults() *LoggingConfig {
return &LoggingConfig{
Level: "info",
Expand Down
12 changes: 0 additions & 12 deletions config/graphql.go

This file was deleted.

6 changes: 2 additions & 4 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d2fa984

Please sign in to comment.