Skip to content

Commit

Permalink
chore: revert fetch table endpoint delete
Browse files Browse the repository at this point in the history
  • Loading branch information
am6010 committed Jan 9, 2024
1 parent 2d47c5a commit a3789d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions warehouse/api/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ func (a *Api) addMasterEndpoints(ctx context.Context, r chi.Router) {

r.Post("/jobs", a.logMiddleware(a.sourceManager.InsertJobHandler)) // TODO: add degraded mode
r.Get("/jobs/status", a.logMiddleware(a.sourceManager.StatusJobHandler)) // TODO: add degraded mode

r.Get("/fetch-tables", a.logMiddleware(a.fetchTablesHandler)) // TODO: Remove this endpoint once sources change is released
})
})
r.Route("/internal", func(r chi.Router) {
Expand Down
1 change: 1 addition & 0 deletions warehouse/api/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ func TestHTTPApi(t *testing.T) {

t.Run("fetch tables", func(t *testing.T) {
for _, u := range []string{
fmt.Sprintf("%s/v1/warehouse/fetch-tables", serverURL),
fmt.Sprintf("%s/internal/v1/warehouse/fetch-tables", serverURL),
} {
req, err := http.NewRequest(http.MethodGet, u, bytes.NewReader([]byte(`
Expand Down

0 comments on commit a3789d3

Please sign in to comment.