Skip to content

Commit 5e60245

Browse files
authored
Revert "Add route to retrieve GTFS feed info from microservice (#271)" (#273)
This reverts commit 07837af.
1 parent 07837af commit 5e60245

8 files changed

Lines changed: 14 additions & 51 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
- /usr/src/app/node_modules
1414

1515
ghopper:
16-
image: cornellappdev/transit-ghopper:v1.0.7
16+
image: cornellappdev/transit-ghopper:v1.0.2
1717
ports:
1818
- "8988:8988"
1919

@@ -28,7 +28,7 @@ services:
2828
- "8987:8987"
2929

3030
live-tracking:
31-
image: cornellappdev/transit-python:v1.0.7
31+
image: cornellappdev/transit-python:v1.0.2
3232
env_file: python.envrc
3333
ports:
3434
- "5000:5000"

envrc.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ NODE_ENV=production
55
PLACES_KEY=PLACES_KEY
66
PORT=3000
77
PYTHON_APP=live-tracking
8-
PYTHON_PORT=5000
98
RELEASE_URL=http://localhost:3001/
109
TOKEN=TOKEN

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/API.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class API extends ApplicationAPI {
2121
Routers.AppleSearchRouter,
2222
Routers.DelayRouter,
2323
Routers.DelaysRouter,
24-
Routers.GTFSFeedInfoRouter,
2524
Routers.HelloWorldRouter,
2625
Routers.MultiRouteRouter,
2726
Routers.PlacesAutocompleteRouter,

src/routers/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import AppleSearchRouter from './v1/AppleSearchRouter';
55
import DelayRouter from './v1/DelayRouter';
66
import DelaysRouter from './v2/DelaysRouter';
77
import DocsRouter from './DocsRouter';
8-
import GTFSFeedInfoRouter from './v1/GTFSFeedInfoRouter';
98
import HelloWorldRouter from './v1/HelloWorldRouter';
109
import MultiRouteRouter from './v1/MultiRouteRouter';
1110
import PlacesAutocompleteRouter from './v1/PlacesAutocompleteRouter';
@@ -24,7 +23,6 @@ export default {
2423
DelayRouter,
2524
DelaysRouter,
2625
DocsRouter,
27-
GTFSFeedInfoRouter,
2826
HelloWorldRouter,
2927
MultiRouteRouter,
3028
PlacesAutocompleteRouter,

src/routers/v1/GTFSFeedInfoRouter.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/utils/EnvUtils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const {
55
MAP_MATCHING,
66
NODE_ENV,
77
PYTHON_APP,
8-
PYTHON_PORT,
98
TOKEN,
109
} = process.env;
1110

@@ -15,6 +14,5 @@ export {
1514
MAP_MATCHING,
1615
NODE_ENV,
1716
PYTHON_APP,
18-
PYTHON_PORT,
1917
TOKEN,
2018
};

src/utils/GTFSUtils.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
// @flow
2-
import { PYTHON_APP, PYTHON_PORT } from './EnvUtils';
2+
import { PYTHON_APP } from './EnvUtils';
33
import RequestUtils from './RequestUtils';
44

55
async function fetchRoutes(): Object {
66
const options = {
77
method: 'GET',
8-
url: `http://${PYTHON_APP || 'localhost'}:${+PYTHON_PORT}/gtfs`,
8+
url: `http://${PYTHON_APP || 'localhost'}:5000/gtfs`,
99
headers: { 'Cache-Control': 'no-cache' },
1010
};
1111
const data = await RequestUtils.createRequest(options, 'Fetch routes request failed');
1212
return JSON.parse(data);
1313
}
1414

15-
async function getFeedInfo(): Object {
16-
const options = {
17-
method: 'GET',
18-
url: `http://${PYTHON_APP || 'localhost'}:${+PYTHON_PORT}/gtfs-feed-info`,
19-
headers: { 'Cache-Control': 'no-cache' },
20-
};
21-
const data = await RequestUtils.createRequest(options, 'Get GTFS feed info request failed');
22-
return JSON.parse(data);
23-
}
24-
2515
export default {
2616
fetchRoutes,
27-
getFeedInfo,
2817
};

0 commit comments

Comments
 (0)