Skip to content

Commit cd4ee1c

Browse files
author
Landon Reed
authored
Merge pull request #49 from catalogueglobal/dev
v2.0.0
2 parents 113b359 + f78e310 commit cd4ee1c

File tree

324 files changed

+20643
-12354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+20643
-12354
lines changed

.flowconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[ignore]
2+
.*/node_modules/auth0-lock/.*
3+
.*/node_modules/config-chain/.*
4+
.*/node_modules/fbjs/flow/.*
5+
.*/node_modules/mapbox.js/docs/examples/.*
6+
.*/node_modules/nock/node_modules/changelog/examples/.*
7+
.*/node_modules/npmconf/.*
8+
.*/node_modules/react-leaflet/src/.*
9+
.*/node_modules/reqwest/.*
10+
11+
[include]
12+
13+
[libs]
14+
15+
[options]

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ node_modules/
22
.DS_Store
33
dist
44
*.log
5-
coverage
5+
coverage*
66
target/
77
src/main/client/config.js
88
datatools-manager.iml
99
config.yml
1010
config_server.yml
11-
configurations/*
12-
!configurations/default
1311
tmp/
1412

1513
# Optional npm cache directory
@@ -21,9 +19,12 @@ tmp/
2119
# Configurations
2220
configurations/*
2321
!configurations/default
22+
!configurations/test
2423
dist
2524
assets
2625

2726
# Secret config files
2827
env.yml
2928
env.yml-original
29+
.env
30+
!configurations/test/env.yml

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: node_js
22
notifications:
33
email: false
4+
slack: conveyal:WQxmWiu8PdmujwLw4ziW72Gc
45
node_js:
56
- '6'
67
cache:
@@ -10,6 +11,7 @@ before_install:
1011
- pip install --user mkdocs
1112
script:
1213
- yarn run lint
14+
- yarn run flow
1315
- yarn run cover-client
1416
- codecov
1517
- yarn run build
@@ -18,10 +20,6 @@ script:
1820
# If sudo is disabled, CI runs on container based infrastructure (allows caching &c.)
1921
sudo: false
2022

21-
# Notify us of the build status on the Slack channel
22-
notifications:
23-
slack: conveyal:WQxmWiu8PdmujwLw4ziW72Gc
24-
2523
# Push results to codecov.io
2624
after_success:
2725
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ This repository serves as the front end UI for the Data Manager application. It
88

99
## Documentation
1010

11-
View the [latest documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs for more info on deployment and development as well as a user guide.
11+
View the [latest release documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs for more info on deployment and development as well as a user guide.
12+
13+
Note: `dev` branch docs can be found [here](http://conveyal-data-tools.readthedocs.org/en/dev/).

configurations/default/settings.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ entries:
44
application:
55
data:
66
gtfs_s3_bucket: bucket-name
7+
use_s3_storage: false
78
title: Data Manager
89
logo: http://gtfs-assets-dev.conveyal.com/data_manager.png # defaults to src/main/client/assets/application_logo.png
910
active_project: project-id
@@ -17,20 +18,10 @@ modules:
1718
enabled: false
1819
editor:
1920
enabled: true
20-
alerts:
21-
enabled: false
22-
use_extension: mtc
23-
sign_config:
24-
enabled: false
2521
user_admin:
2622
enabled: true
2723
validator:
2824
enabled: true
29-
deployment:
30-
enabled: false
31-
gtfsapi:
32-
enabled: false
33-
use_extension: mtc
3425
extensions:
3526
transitland:
3627
enabled: false

configurations/test/env.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AUTH0_CLIENT_ID: test
2+
AUTH0_DOMAIN: test.com
3+
MAPZEN_TURN_BY_TURN_KEY: test
4+
MAPBOX_ACCESS_TOKEN: test
5+
MAPBOX_MAP_ID: test
6+
MAPBOX_ATTRIBUTION: <a href="https://www.mapbox.com/about/maps/" target="_blank">&copy; Mapbox &copy; OpenStreetMap</a> <a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a>

configurations/test/settings.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
entries:
2+
- lib/main.js:dist/index.js
3+
- lib/index.css:dist/index.css
4+
application:
5+
data:
6+
gtfs_s3_bucket: bucket-name
7+
use_s3_storage: false
8+
title: Data Manager
9+
logo: http://lorempixel.com/400/200/
10+
active_project: project-id
11+
notifications_enabled: false
12+
docs_url: http://docs.example.com
13+
changelog_url: https://changelog.example.com
14+
support_email: support@example.com
15+
date_format: MMM Do YYYY
16+
modules:
17+
enterprise:
18+
enabled: false
19+
editor:
20+
enabled: true
21+
user_admin:
22+
enabled: true
23+
validator:
24+
enabled: true
25+
extensions:
26+
transitland:
27+
enabled: false
28+
transitfeeds:
29+
enabled: false

docs/dev/migration.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Migration
2+
3+
## Migrating manager application data
4+
datatools-server offers a way to migrate application data (e.g., due to either breaking application schema changes or server changes). **Note:** this process requires temporarily exposing a `GET` request that exposes the entirety of the manager database.
5+
6+
1. Set the config setting `modules:dump:enabled` to `true`.
7+
2. Restart the application.
8+
3. Download copy of application data to local json file `curl localhost:4000/dump > db_backup.json`.
9+
4. Change dump config setting back to `false`.
10+
5. (optional) If looking to reload into the existing server, delete the manager mapdb (`.db` and `.dbp`) files in `application:data:mapdb`
11+
6. Follow instructions in [`/scripts/load.py`](https://github.com/conveyal/datatools-ui/blob/master/scripts/load.py) to upload the json data to the new server.
435 KB
Loading
791 KB
Loading

0 commit comments

Comments
 (0)