Skip to content

Commit

Permalink
Merge pull request #13473 from transcom/revert-12622-B-19181-Create-P…
Browse files Browse the repository at this point in the history
…PTAS-API

Revert "B 19181 create pptas api"
  • Loading branch information
deandreJones authored Aug 14, 2024
2 parents 9302e5f + c76d6f7 commit a30fcf7
Show file tree
Hide file tree
Showing 44 changed files with 4 additions and 3,551 deletions.
1 change: 0 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ export SERVE_API_INTERNAL=true
export SERVE_API_GHC=true
export SERVE_API_PRIME=true
export SERVE_API_SUPPORT=true
export SERVE_API_PPTAS=true
# enable prime simulator locally
export SERVE_PRIME_SIMULATOR=true

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public/swagger-ui/*
!public/swagger-ui/prime_v3.html
!public/swagger-ui/ghc.html
!public/swagger-ui/support.html
!public/swagger-ui/pptas.html

# Playwright integration tests
playwright/.cache
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ repos:
name: Spectral yaml linter
entry: scripts/lint-yaml-with-spectral
language: script
files: swagger/(admin|prime|prime_v2|prime_v3|support|pptas).yaml
files: swagger/(admin|prime|prime_v2|prime_v3|support).yaml
types: [yaml]

- repo: local
Expand Down
1 change: 0 additions & 1 deletion .redocly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ apiDefinitions:
prime_v2: swagger-def/prime_v2.yaml
prime_v3: swagger-def/prime_v3.yaml
support: swagger-def/support.yaml
pptas: swagger-def/pptas.yaml
lint:
extends:
- recommended
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ admin_client_run: .client_deps.stamp ## Run MilMove Admin client
HOST=adminlocal \
yarn start



#
# ----- END CLIENT TARGETS -----
#
Expand Down
5 changes: 0 additions & 5 deletions cmd/milmove/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,6 @@ func initializeRouteOptions(v *viper.Viper, routingConfig *routing.Config) {
if routingConfig.ServeGHC {
routingConfig.GHCSwaggerPath = v.GetString(cli.GHCSwaggerFlag)
}
routingConfig.ServePPTAS = v.GetBool(cli.ServePPTASFlag)
if routingConfig.ServePPTAS {
routingConfig.PPTASSwaggerPath = v.GetString(cli.PPTASSwaggerFlag)
}
routingConfig.ServeDevlocalAuth = v.GetBool(cli.DevlocalAuthFlag)

routingConfig.GitBranch = gitBranch
Expand All @@ -437,7 +433,6 @@ func buildRoutingConfig(appCtx appcontext.AppContext, v *viper.Viper, redisPool
AdminServername: v.GetString(cli.HTTPAdminServerNameFlag),
OrdersServername: v.GetString(cli.HTTPOrdersServerNameFlag),
PrimeServername: v.GetString(cli.HTTPPrimeServerNameFlag),
PPTASServerName: v.GetString(cli.HTTPPPTASServerNameFlag),
}

clientAuthSecretKey := v.GetString(cli.ClientAuthSecretKeyFlag)
Expand Down
1 change: 0 additions & 1 deletion pkg/auth/cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ type ApplicationServername struct {
AdminServername string
OrdersServername string
PrimeServername string
PPTASServerName string
}

type errInvalidHostname struct {
Expand Down
2 changes: 0 additions & 2 deletions pkg/cli/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const (
HTTPOrdersServerNameFlag string = "http-orders-server-name"
// HTTPPrimeServerNameFlag is the HTTP GHC Prime Server Name Flag
HTTPPrimeServerNameFlag string = "http-prime-server-name"
// HTTPPPTASServerNameFlag is the HTTP PPTAS Prime Server Name Flag
HTTPPPTASServerNameFlag string = "http-pptas-server-name"
// HTTPMyServerNameLocal is the HTTP My Server Name for Local
HTTPMyServerNameLocal string = "milmovelocal"
// HTTPOfficeServerNameLocal is the HTTP Office Server Name for Local
Expand Down
2 changes: 0 additions & 2 deletions pkg/cli/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ const (
ServeSupportFlag string = "serve-api-support"
// ServePrimeSimulatorFlag is the prime simulator api flag
ServePrimeSimulatorFlag string = "serve-prime-simulator"
// ServePPTASFlag is the PPTAS api service flag
ServePPTASFlag string = "serve-api-pptas"
// ServeClientCollectorFlag enables the endpoints to collect client
// telemetry and logs
ServeClientCollectorFlag string = "serve-client-collector"
Expand Down
10 changes: 3 additions & 7 deletions pkg/cli/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ const (
PrimeV2SwaggerFlag string = "prime-v2-swagger"
// PrimeV3SwaggerFlag is the Prime V3 Swagger Flag
PrimeV3SwaggerFlag string = "prime-v3-swagger"
// SupportSwaggerFlag is the Support Swagger Flag
SupportSwaggerFlag string = "support-swagger"
// PPTASSwaggerFlag is the PPTAS Swagger Flag
PPTASSwaggerFlag string = "pptas-swagger"
// ServeSwaggerUIFlag is the Serve Swagger UI Flag
ServeSwaggerUIFlag string = "serve-swagger-ui"
// SupportSwaggerFlag is the Support Swagger Flag
SupportSwaggerFlag string = "support-swagger"
)

// InitSwaggerFlags initializes the Swagger command line flags
Expand All @@ -42,8 +40,7 @@ func InitSwaggerFlags(flag *pflag.FlagSet) {
flag.String(PrimeV2SwaggerFlag, "swagger/prime_v2.yaml", "The location of the Prime V2 API swagger definition")
flag.String(PrimeV3SwaggerFlag, "swagger/prime_v3.yaml", "The location of the Prime V3 API swagger definition")
flag.String(SupportSwaggerFlag, "swagger/support.yaml", "The location of the Support API swagger definition")
flag.String(PPTASSwaggerFlag, "swagger/pptas.yaml", "The location of the PPTAS Export API swagger definition")
flag.Bool(ServeSwaggerUIFlag, true, "Whether to serve swagger UI for the APIs")
flag.Bool(ServeSwaggerUIFlag, false, "Whether to serve swagger UI for the APIs")
}

// CheckSwagger validates Swagger command line flags
Expand All @@ -58,7 +55,6 @@ func CheckSwagger(v *viper.Viper) error {
PrimeV2SwaggerFlag,
PrimeV3SwaggerFlag,
SupportSwaggerFlag,
PPTASSwaggerFlag,
}

for _, c := range swaggerVars {
Expand Down
76 changes: 0 additions & 76 deletions pkg/gen/pptasapi/configure_mymove.go

This file was deleted.

25 changes: 0 additions & 25 deletions pkg/gen/pptasapi/doc.go

This file was deleted.

Loading

0 comments on commit a30fcf7

Please sign in to comment.