Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging Release 1.2 changes into production environment #1541

Merged
merged 499 commits into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
499 commits
Select commit Hold shift + click to select a range
2fdb9d0
[TEST] Add tests to RUD geostore vs study_area
metemaddar Aug 8, 2022
334edac
Merge pull request #1415 from metemaddar/geostore-endpoint
EPajares Aug 8, 2022
d3c2d13
Error handling for layers outside the map boundaries
Ebubeker Aug 9, 2022
de237fe
Merge branch 'goat-community:main' into main
Ebubeker Aug 9, 2022
ee70897
Merge pull request #1417 from Ebubeker/main
EPajares Aug 9, 2022
5474ae1
refactored static vector layers + added study_area
EPajares Aug 9, 2022
3644144
Added translations for geoportals
EPajares Aug 9, 2022
1b229e7
fixed the language problem when printing, also fixed the scale line b…
Ebubeker Aug 9, 2022
687b3d4
Merge branch 'main' of https://github.com/Ebubeker/goat
Ebubeker Aug 9, 2022
0d620c0
Merge pull request #1422 from Ebubeker/main
EPajares Aug 9, 2022
2b15d28
fixed file name to be like function name
EPajares Aug 10, 2022
adcae93
Fix file name to be as function name
EPajares Aug 10, 2022
c49b65c
Fixed file name to be like function
EPajares Aug 10, 2022
655f211
Fixed file names for trigger
EPajares Aug 10, 2022
198de58
icon problem has been fixed
Ebubeker Aug 10, 2022
150b505
2 of the bugs have been fixed
Ebubeker Aug 11, 2022
b144b77
2 of the bugs have been fixed
Ebubeker Aug 11, 2022
8ced828
fixed revisions and added constraints to geostores
EPajares Aug 11, 2022
d2ca777
fixed some relation problems with user table #1384
EPajares Aug 11, 2022
91d6721
fixed
Ebubeker Aug 11, 2022
fa828a2
[ADD] coordingate_to_pixel.sql function
metemaddar Aug 12, 2022
49724df
[ADD] Config: POSTGRES_FUNCTIONS_SCHEMA
metemaddar Aug 12, 2022
93f12e1
[ADD] init_sql: function/tringgers : up/downgrade
metemaddar Aug 12, 2022
c40ac8f
added some stuff
Ebubeker Aug 12, 2022
774ef5d
I added the translation
Ebubeker Aug 12, 2022
b9e66c5
[FIX] uncomment drop statement from triggers
metemaddar Aug 12, 2022
e6478ec
[FIX] config: change functions schema to basic
metemaddar Aug 12, 2022
b90271a
just updated some other stuff
Ebubeker Aug 12, 2022
0f274e9
[FIX] remove empty configurations from geostore
metemaddar Aug 12, 2022
95b2fb3
[ADD] endpoints to list opportunity & their groups
metemaddar Aug 12, 2022
92be47a
[ADD] CRUD EPs for OpportunityStudyAreaConfig
metemaddar Aug 12, 2022
9b789b7
Update en.json
EPajares Aug 12, 2022
9d8931f
Merge pull request #1428 from Ebubeker/main
EPajares Aug 12, 2022
4227548
Merge pull request #1432 from metemaddar/fix-geostore-config-key-error
EPajares Aug 12, 2022
d7afc86
Merge pull request #1431 from metemaddar/rewrite-database-functions
EPajares Aug 12, 2022
edf332f
refactored endpoints for reading static tables
EPajares Aug 12, 2022
b6cf0eb
[TEST] endpoints for list opportunites and groups
metemaddar Aug 12, 2022
32950af
#1425
EPajares Aug 13, 2022
fe1f2c1
Fixed #1342
EPajares Aug 13, 2022
2eff113
Fix #1359
EPajares Aug 13, 2022
fdf7676
[FEAT] init sql using command line args
metemaddar Aug 14, 2022
75a74bb
[ADD] exmaple usage to init_sql.py
metemaddar Aug 14, 2022
8d8465b
[FIX] help text for init_sql.py
metemaddar Aug 14, 2022
91ab009
[TEST] fix sample_geostore_creator()
metemaddar Aug 15, 2022
c67d154
[WIPE] unneeded imports: test_opportunities.py
metemaddar Aug 15, 2022
ec3b5e2
Merge branch 'goat-community:dev' into dev
Ebubeker Aug 15, 2022
e6ee168
Merge pull request #1439 from metemaddar/geostore-endpoint
EPajares Aug 15, 2022
b9b2c09
[FIX] opportunity_config request exmaples
metemaddar Aug 15, 2022
f36f51e
[TEST] opportunity config CRUD tests
metemaddar Aug 15, 2022
cb4b986
now you can change the opacity of the POIs layers
Ebubeker Aug 15, 2022
3ae9df8
changes made
Ebubeker Aug 15, 2022
33cdea1
[ADD] report function to init_sql.py
metemaddar Aug 15, 2022
a2da069
changes made
Ebubeker Aug 15, 2022
0a5a759
changes made
Ebubeker Aug 15, 2022
a8b930c
Merge branch 'dev' of https://github.com/Ebubeker/goat into dev
Ebubeker Aug 15, 2022
8cca672
[FIX] rename sql function file_name
metemaddar Aug 15, 2022
80a4a41
[ADD] functions report: show directory name
metemaddar Aug 15, 2022
56c73f0
Update en.json
EPajares Aug 15, 2022
61945ec
Merge pull request #1442 from Ebubeker/dev
EPajares Aug 15, 2022
3a42e8d
[FIX] opportunity_config: async request example
metemaddar Aug 15, 2022
9fca70d
[STYLE] fix typo in opportunities endpoints
metemaddar Aug 15, 2022
91507ec
[FIX] sql function file name
metemaddar Aug 15, 2022
7186dda
[FEAT] colorfull init_sql report
metemaddar Aug 15, 2022
1b5510a
Merge pull request #1433 from metemaddar/endpoint-oportunity-group-co…
EPajares Aug 16, 2022
e3d6ae5
Merge pull request #1437 from metemaddar/rewrite-database-functions
EPajares Aug 16, 2022
b534264
The modification has been done and now only POI is available. Actuall…
Ebubeker Aug 16, 2022
0673c28
Merge branch 'dev' of https://github.com/Ebubeker/goat into dev
Ebubeker Aug 16, 2022
047213e
[ADD] remove_multi() to crud.base
metemaddar Aug 16, 2022
63c898d
[REFACTOR] geostore.delete() to delete multi
metemaddar Aug 16, 2022
e708206
[REFACTOR] users.delete() endpoint to delete multi
metemaddar Aug 16, 2022
2065e25
[REFACTOR] static_layer_extra.delete() > del multi
metemaddar Aug 16, 2022
e52ab06
[ADD] crud.base.remove_multy_by_key()
metemaddar Aug 16, 2022
f5dff70
[REFACTOR] layer_library/style_library delete()
metemaddar Aug 16, 2022
4fd894b
[TEST] geostores.delete() multi
metemaddar Aug 16, 2022
524f08a
[TEST] refactor test delete users to delete multi
metemaddar Aug 16, 2022
d11e31d
[TEST] refactor test_delete_static_layers
metemaddar Aug 16, 2022
5c770bf
[TEST] refactor style/layer library delete test
metemaddar Aug 16, 2022
4adcd6b
Merge pull request #1443 from Ebubeker/dev
EPajares Aug 16, 2022
0766dd8
[FEAT] static layers extra tables unique names
metemaddar Aug 16, 2022
868328a
[WIPE] list_static_layer_table_names commented
metemaddar Aug 17, 2022
5c325b1
[STYLE] add data type for function arg
metemaddar Aug 17, 2022
e6e1a4a
[REFACTOR] geostore.delete endpoint
metemaddar Aug 17, 2022
d6f68a9
[REFACTOR] users.delete endpoint
metemaddar Aug 17, 2022
ab8cfc9
[REFACTOR] static_layers_extra.delete
metemaddar Aug 17, 2022
ee05174
[REFACTOR] layer/style library .delete() endpoint
metemaddar Aug 17, 2022
c6e6a0a
[REFACTOR] test delete endpoints (delete-multi)
metemaddar Aug 17, 2022
f647b5d
Merge pull request #1445 from metemaddar/name-extra-layers
EPajares Aug 17, 2022
af16c34
[REFACTOR] scenario.delete() endpoint
metemaddar Aug 17, 2022
3b7153b
still in progress
Ebubeker Aug 17, 2022
61aec30
[TEST] delete multi scenarios
metemaddar Aug 17, 2022
9ec496b
[WIP] Isochrone
majkshkurti Aug 17, 2022
2a31e2e
Merge remote-tracking branch 'origin/pt-r5' into pt-r5
majkshkurti Aug 17, 2022
8bf3b95
inner wms layers have an overllay now
Ebubeker Aug 17, 2022
aaeef41
addition
Ebubeker Aug 17, 2022
ae1d4ab
a bit of cleaning
EPajares Aug 18, 2022
b78a226
Merge branch 'dev' of https://github.com/goat-community/goat into dev
EPajares Aug 18, 2022
d3b0629
[REFACTOR] remove "ok" from multi delete endpoints
metemaddar Aug 18, 2022
a44e045
[WIP] Isochrone
majkshkurti Aug 19, 2022
967911b
Merge pull request #1450 from Ebubeker/dev
majkshkurti Aug 19, 2022
2d823d0
[FIX] Isochrone
majkshkurti Aug 19, 2022
f445cf2
[FIX] isochrone bug
majkshkurti Aug 19, 2022
6c06847
Merge branch 'dev' of https://github.com/goat-community/goat into dev
EPajares Aug 19, 2022
b459054
Merge branch 'dev' into pt-r5
EPajares Aug 19, 2022
4fd50a8
[FIX]
majkshkurti Aug 20, 2022
eb80f08
Merge branch 'pt-r5' of https://github.com/goat-community/goat into p…
EPajares Aug 20, 2022
4f72ce8
[FIX] Isochrone current_user arg
majkshkurti Aug 20, 2022
2bcc4d7
[FIX] rename methods
majkshkurti Aug 20, 2022
0415625
WIP
EPajares Aug 20, 2022
648528c
Merge branch 'pt-r5' of https://github.com/goat-community/goat into p…
EPajares Aug 20, 2022
2d9bceb
[WIP] isochrone
majkshkurti Aug 20, 2022
332562c
[WIP] multi isochrone
majkshkurti Aug 20, 2022
a99c0a9
WIP Multi isochrone population count
EPajares Aug 20, 2022
2305712
Merge branch 'pt-r5' of https://github.com/goat-community/goat into p…
EPajares Aug 20, 2022
0a8d707
fixed #1446
EPajares Aug 21, 2022
3fb8dec
[WIP] AOI intersection
majkshkurti Aug 21, 2022
bbc9904
Merge remote-tracking branch 'origin/pt-r5' into pt-r5
majkshkurti Aug 21, 2022
5ccc260
Added condition for no and dismount bicycle #1461
EPajares Aug 21, 2022
64ade47
[WIP]
majkshkurti Aug 21, 2022
014a69c
Merge remote-tracking branch 'origin/pt-r5' into pt-r5
majkshkurti Aug 21, 2022
4ea740f
[WIP] isochrone client
majkshkurti Aug 22, 2022
5e9352a
[FIX] multi-isochrone
majkshkurti Aug 22, 2022
de7c556
[REFACTOR] export isochrone
metemaddar Aug 22, 2022
ec3c807
Merge pull request #1444 from metemaddar/delete-multi
EPajares Aug 22, 2022
c631a3b
Fixed bugs with mutliisochrone scenario
EPajares Aug 22, 2022
75503ae
[FIX] Increase multi-isochrone max amenity limit
majkshkurti Aug 22, 2022
8b61551
Merge pull request #1464 from metemaddar/export_multi_isochrone
EPajares Aug 22, 2022
a7b5479
[FIX] isochrone amenity count start time
majkshkurti Aug 22, 2022
75abf8f
Merge remote-tracking branch 'origin' into pt-r5
majkshkurti Aug 22, 2022
07a6cf7
Merge remote-tracking branch 'origin/pt-r5' into pt-r5
majkshkurti Aug 22, 2022
2b694e2
#1462
EPajares Aug 22, 2022
188847b
[REFACTOR] Add example to export isochrone
metemaddar Aug 22, 2022
a610d45
Merge branch 'pt-r5' of https://github.com/goat-community/goat into p…
EPajares Aug 22, 2022
c237d47
[STYLE] fix a small typo
metemaddar Aug 22, 2022
b6c8dad
[FIX] #1463
majkshkurti Aug 22, 2022
2df6a86
Recovered the PT Indicators code successfully
Ebubeker Aug 24, 2022
8e3031c
Merge pull request #1467 from metemaddar/export_multi_isochrone
EPajares Aug 24, 2022
4dc8576
[ADD] Isochrone export
majkshkurti Aug 24, 2022
134dd1d
[FIX] Isochrone client bug
majkshkurti Aug 24, 2022
5ee4ad3
Merge branch 'pt-r5' of https://github.com/goat-community/goat into p…
EPajares Aug 27, 2022
9df9e13
[FIX] disable aois intersection for PT
majkshkurti Aug 27, 2022
dffef36
Added further docs
EPajares Aug 27, 2022
57e5b19
Merge branch 'dev' of https://github.com/goat-community/goat into dev
EPajares Aug 27, 2022
9f6576d
Merge remote-tracking branch 'origin/pt-r5' into pt-r5
majkshkurti Aug 27, 2022
d9ae51f
[FIX] remove uniquify_static_layer_name from utils
majkshkurti Aug 27, 2022
3f52e8d
[FIX] enable njit for group_opportunities_multi_isochrone
majkshkurti Aug 27, 2022
f0138e2
Merge branch 'pt-r5' into dev
EPajares Aug 27, 2022
d826257
[FIX] get_network_sample
majkshkurti Aug 27, 2022
57d02dc
[FIX]
majkshkurti Aug 27, 2022
7d3840f
[REFACTOR] PT-R5 endpoints
majkshkurti Aug 27, 2022
f6ca89e
added region r5 table
EPajares Aug 27, 2022
2314495
[FIX]
majkshkurti Aug 27, 2022
3578c6b
Added data only example in readme
EPajares Aug 27, 2022
7d34495
Merge branch 'pt-r5' into dev
EPajares Aug 27, 2022
0d32a56
Fixed #1478
EPajares Aug 27, 2022
454a130
[FIX] handle dicts in crud base update
EPajares Aug 27, 2022
8617f0e
added missing translation to icon categories #1480
EPajares Aug 27, 2022
db38284
[FIX] Added translation keys
EPajares Aug 27, 2022
ed33c94
[ADD] isochrone network splitting
majkshkurti Aug 30, 2022
b3c0c58
[FIX] r5 env variable
majkshkurti Aug 31, 2022
20cef28
[FIX] poetry install
metemaddar Sep 3, 2022
21cf672
[REFACTOR] limit api devcontainer services
metemaddar Sep 3, 2022
f7c8ff5
[REFACTOR] patch fastapi utils.py for performance
metemaddar Sep 3, 2022
62afe8d
Merge pull request #1485 from metemaddar/fix-poetry-install
majkshkurti Sep 3, 2022
2f073c9
Merge pull request #1484 from metemaddar/devcontainer
majkshkurti Sep 3, 2022
e2f55d8
[ADD] R5_HOST as .env variable
majkshkurti Sep 3, 2022
31cc434
[ADD] R5_HOST as .env variable
majkshkurti Sep 3, 2022
3dfc7ac
Merge remote-tracking branch 'origin/dev' into pt-r5
majkshkurti Sep 3, 2022
fef31e6
fix #1486
majkshkurti Sep 4, 2022
ce622d5
fix #1486
majkshkurti Sep 4, 2022
a414aa3
[WIP] PT isochrone
majkshkurti Sep 5, 2022
015e9e7
[FIX] dockerfile client
majkshkurti Sep 5, 2022
2af1c05
[FIX] isochrone cancel token
majkshkurti Sep 6, 2022
b8287f5
[FEAT] add switch toggle for isochrone window
majkshkurti Sep 7, 2022
a3ad6c0
[FIX] R5 k8s env
majkshkurti Sep 7, 2022
9abdfba
[FIX] change api ASGI to uvicorn
majkshkurti Sep 7, 2022
f9127e6
[FIX] r5_host url
majkshkurti Sep 8, 2022
ee64a3d
🩺 k8s readinessProbe & livenessProbe
majkshkurti Sep 8, 2022
530d1d2
[FIX] api build
majkshkurti Sep 8, 2022
cc3f42f
feat: delete scenarios with id
cinaaaa Sep 9, 2022
ae6d4de
fix: ignore DS_Store
cinaaaa Sep 9, 2022
9f90e80
Merge branch 'dev' into feature/delete-many
EPajares Sep 9, 2022
0482819
[FIX] bugs
majkshkurti Sep 9, 2022
797128d
Merge remote-tracking branch 'origin/dev' into dev
majkshkurti Sep 9, 2022
e81f6de
Merge pull request #1471 from Ebubeker/pt-indicators
majkshkurti Sep 9, 2022
2cf8eca
Merge remote-tracking branch 'origin/pt-indicators' into pt-indicators
majkshkurti Sep 9, 2022
5947dc9
Fixed station count and added translations
EPajares Sep 10, 2022
d7b9751
removed not needed columns from nodes table
EPajares Sep 10, 2022
ac89690
removed isochrone feature table
EPajares Sep 10, 2022
ffcfdf5
added settings filter for public transport types
EPajares Sep 10, 2022
1306bbe
added system table
EPajares Sep 10, 2022
b98725b
[FIX] maintenance page client
majkshkurti Sep 10, 2022
d51219e
system table/endpoint for applications status
EPajares Sep 10, 2022
8343bb9
[FIX] maintenance page client
majkshkurti Sep 10, 2022
4eb51cd
Added status check to client
EPajares Sep 10, 2022
8168290
Fixed readme
EPajares Sep 10, 2022
79cae3f
[WIP] 1.2 release
majkshkurti Sep 11, 2022
a6e45c7
[WIP] pt-station-count
majkshkurti Sep 11, 2022
1602dd3
added version and fixed revision
EPajares Sep 11, 2022
9be437c
Merge branch 'pt-indicators' into dev
EPajares Sep 11, 2022
81b8b3b
removed isochrone_feature
EPajares Sep 11, 2022
4392820
[FIX] güteklasse and isochrone amenity counts
EPajares Sep 11, 2022
ca20ca9
Merge pull request #1504 from goat-community/main
EPajares Sep 11, 2022
3e48f9a
added further translations
EPajares Sep 11, 2022
34a5ff7
Merge branch 'dev' of https://github.com/goat-community/goat into dev
EPajares Sep 11, 2022
89b619b
handle transit when not available
EPajares Sep 11, 2022
1616b70
[FIX]
majkshkurti Sep 11, 2022
cab6e17
Merge remote-tracking branch 'origin/dev' into pt-indicators
majkshkurti Sep 11, 2022
18e6941
[FIX] translation
EPajares Sep 11, 2022
79324a2
[FIX]
majkshkurti Sep 11, 2022
bcedd11
Merge branch 'pt-indicators' into dev
majkshkurti Sep 11, 2022
af75447
Changed color of station count
EPajares Sep 12, 2022
a737212
Styling is finished
Ebubeker Sep 12, 2022
5c8765b
Merge pull request #1506 from Ebubeker/pt-indicators
majkshkurti Sep 12, 2022
0c522df
Merge branch 'dev' into pt-indicators
EPajares Sep 12, 2022
354fbd2
Adjusted color for station count
EPajares Sep 12, 2022
3bba6af
[WIP] fix isochrone
majkshkurti Sep 13, 2022
a9a6770
Merge remote-tracking branch 'origin/pt-indicators' into dev
majkshkurti Sep 13, 2022
14aeffe
feat: ISOCHRONES & POI's on the print
cinaaaa Sep 13, 2022
5b4fca1
some bug fixes have been finished
Ebubeker Sep 13, 2022
ad05749
[Feat] Add startup call for isochrone calculation
metemaddar Sep 13, 2022
bc3fb5d
[ADD] execution time calculation for isochrone
metemaddar Sep 13, 2022
598a391
[ADD] first run call for transit
metemaddar Sep 13, 2022
83644ea
[ADD] calling multi isochrone at startup
metemaddar Sep 14, 2022
1f30869
[STYLE] rich text color prints
metemaddar Sep 14, 2022
23455f8
changes done
Ebubeker Sep 14, 2022
7a18f95
Merge pull request #1522 from Ebubeker/dev
majkshkurti Sep 14, 2022
a116237
Merge pull request #1520 from goat-community/feat/print-legends
majkshkurti Sep 14, 2022
38eade1
Merge pull request #1523 from metemaddar/first-run-methods-call
majkshkurti Sep 14, 2022
11426e6
[REFACTOR] pt_station_count ol style
majkshkurti Sep 14, 2022
3ad015d
Merge remote-tracking branch 'origin/dev' into dev
majkshkurti Sep 14, 2022
8da45d4
Revert "Most of the issues have been fixed"
majkshkurti Sep 14, 2022
71c8ee5
Merge pull request #1532 from goat-community/revert-1522-dev
majkshkurti Sep 14, 2022
0fe74be
Merge remote-tracking branch 'origin/dev' into dev
majkshkurti Sep 14, 2022
a6c8a69
Merge pull request #1533 from goat-community/feat/first-run-compilation
majkshkurti Sep 14, 2022
112e5d1
Merge remote-tracking branch 'origin/dev' into dev
majkshkurti Sep 14, 2022
6797c79
smth
Ebubeker Sep 14, 2022
473aa61
Merge branch 'dev' of https://github.com/Ebubeker/goat into dev
Ebubeker Sep 14, 2022
a8418cf
bringing back changes
Ebubeker Sep 14, 2022
c1e5e6f
fixed
Ebubeker Sep 14, 2022
170a587
[WIP] isochrone bug fix
majkshkurti Sep 14, 2022
8d0aebd
Merge pull request #1534 from Ebubeker/dev
majkshkurti Sep 14, 2022
34053f6
[FEAT] make isochrone marker draggable
majkshkurti Sep 15, 2022
6ffcb60
[FIX] disable when busy in isochrone delete button
majkshkurti Sep 15, 2022
8d6bdc1
[FIX] address update on marker move
majkshkurti Sep 15, 2022
067fa04
[FIX] isochrone printing
majkshkurti Sep 15, 2022
b66034f
[FIX] Local Accessibility Heatmap Grid Size
EPajares Sep 16, 2022
1dedb6e
[FIX] isochrone poi legend
majkshkurti Sep 16, 2022
d223964
Added customization to yaml file
EPajares Sep 16, 2022
7146139
Merge branch 'dev' of https://github.com/goat-community/goat into dev
EPajares Sep 16, 2022
e387681
Merge pull request #1539 from goat-community/dev
EPajares Sep 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env_template
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ USERS_OPEN_REGISTRATION=False
SENTRY_DSN=
INSTALL_DEV=True
INSTALL_JUPYTER=True
DISABLE_NUMBA_STARTUP_CALL=True
R5_HOST=172.17.0.1

# FRONTENDENV
VUE_APP_I18N_LOCALE=en
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: echo ${{steps.get_file_changes.outputs.files}}
- name: Build changed client
if: contains(steps.get_file_changes.outputs.files, 'app/client')
run: make build-client-docker-image -e COMPONENT=client
run: make build-docker-image-pr -e COMPONENT=client
- name: Build changed api
if: contains(steps.get_file_changes.outputs.files, 'app/api')
run: make build-docker-image -e COMPONENT=api
run: make build-docker-image-pr -e COMPONENT=api
2 changes: 2 additions & 0 deletions .github/workflows/Push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}
R5_HOST: ${{ secrets.R5_HOST }}
API_SECRET_KEY: ${{ secrets.API_SECRET_KEY }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
EMAILS_FROM_EMAIL: ${{ secrets.EMAILS_FROM_EMAIL }}
Expand All @@ -67,6 +68,7 @@ jobs:
FIRST_SUPERUSER_NAME: ${{ secrets.FIRST_SUPERUSER_NAME }}
FIRST_SUPERUSER_SURNAME: ${{ secrets.FIRST_SUPERUSER_SURNAME }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
BACKEND_CORS_ORIGIN: ${{ secrets.BACKEND_CORS_ORIGIN }}
steps:
- uses: actions/checkout@v2
- uses: azure/[email protected]
Expand Down
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@ ubuntu-bionic-18.04-cloudimg-console.log
node_modules
.env
/.vscode

r5-cache
/app/api/app/app/exts/cpp/build
__pycache__
/app/api/src/data/*
!/app/api/src/data/.gitkeep
!/app/api/src/data/.gitkeep
r5-cache

# Unit test / coverage reports
.coverage
coverage.xml


# Temporary files
NearestNDInterpolate.png
costs.bin
.DS_Store
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ K8S_OBJ:=$(patsubst %.tpl.yaml,%.yaml,$(K8S_SRC))
DOMAIN=$(DOMAIN) \
VERSION=$(VERSION) \
POSTGRES_HOST=$(POSTGRES_HOST) \
R5_HOST=$(R5_HOST) \
POSTGRES_DB=$(POSTGRES_DB) \
POSTGRES_USER=$(POSTGRES_USER) \
POSTGRES_PASSWORD=$(POSTGRES_PASSWORD) \
Expand Down Expand Up @@ -74,18 +75,24 @@ setup-kube-config:
docker-login:
$(DOCKER) login -u $(DOCKER_USERNAME) -p $(DOCKER_PASSWORD) $(REGISTRY)

# target: make build-docker-image -e VERSION=some_git_sha_comit -e COMPONENT=api|client|geoserver|print|mapproxy
# make docker-build for pr workflow (without tag)
# target: make build-docker-image-pr -e COMPONENT=api|client
.PHONY: build-docker-image-pr
build-docker-image-pr: app/$(COMPONENT)/Dockerfile
$(DOCKER) build -f app/$(COMPONENT)/Dockerfile app/$(COMPONENT) --build-arg FONTAWESOME_NPM_AUTH_TOKEN=$(FONTAWESOME_NPM_AUTH_TOKEN)

# target: make build-docker-image -e VERSION=some_git_sha_comit -e COMPONENT=api|client
.PHONY: build-docker-image
build-docker-image: app/$(COMPONENT)/Dockerfile
$(DOCKER) build -f app/$(COMPONENT)/Dockerfile --pull -t $(DOCKER_IMAGE) app/$(COMPONENT)

# target: build-client-docker-image -e VERSION=some_git_sha_comit -e COMPONENT=api|client|geoserver|print|mapproxy
# target: build-client-docker-image -e VERSION=some_git_sha_comit -e COMPONENT=api|client
.PHONY: build-client-docker-image
build-client-docker-image: app/$(COMPONENT)/Dockerfile
$(DOCKER) build -f app/$(COMPONENT)/Dockerfile --pull -t $(DOCKER_IMAGE) app/$(COMPONENT) --build-arg FONTAWESOME_NPM_AUTH_TOKEN=$(FONTAWESOME_NPM_AUTH_TOKEN)


# target: make release-docker-image -e VERSION=some_git_sha_comit -e COMPONENT=api|client|geoserver|print|mapproxy
# target: make release-docker-image -e VERSION=some_git_sha_comit -e COMPONENT=api|client
.PHONY: release-docker-image
release-docker-image: docker-login build-docker-image
$(DOCKER) push $(DOCKER_IMAGE)
Expand Down
Binary file removed app/api/.coverage
Binary file not shown.
8 changes: 6 additions & 2 deletions app/api/.devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.formatting.provider": "black"
}
}
},
"postCreateCommand": "bash scripts/post-create.sh",
"runServices": [
"api"
]
}
3 changes: 2 additions & 1 deletion app/api/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"titleBar.inactiveForeground": "#e7e7e799",
"sash.hoverBorder": "#1f6fd0",
"statusBarItem.remoteBackground": "#1857a4",
"statusBarItem.remoteForeground": "#e7e7e7"
"statusBarItem.remoteForeground": "#e7e7e7",
"commandCenter.border": "#e7e7e799"
},
"editor.formatOnSave": true,
"peacock.remoteColor": "#1857a4",
Expand Down
4 changes: 3 additions & 1 deletion app/api/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"command": "/usr/bin/g++",
"args": [
"-fdiagnostics-color=always",
"-std=c++0x",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-DDEBUG"
"-DDEBUG",
"-lpthread"
],
"options": {
"cwd": "${fileDirname}"
Expand Down
9 changes: 2 additions & 7 deletions app/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt install curl ca-certificates gnupg -y && \
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" > /etc/apt/sources.list.d/postgresql.list' && \
apt update -y && apt-get install postgresql-client-14 -y
# Install Poetry
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
Expand All @@ -30,9 +30,4 @@ COPY ./pyproject.toml ./poetry.lock* /app/
ARG INSTALL_DEV=false
RUN bash -c "if [ $INSTALL_DEV == 'True' ] ; then poetry install --no-root ; else poetry install --no-root --no-dev ; fi"
COPY . /app
# chown all the files to the app user
#RUN chown -R app:app /app
# change to the app user
#USER app
# run gunicorn
CMD gunicorn --bind 0.0.0.0:5000 src.main:app -k uvicorn.workers.UvicornWorker
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "5000"]
10 changes: 8 additions & 2 deletions app/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,12 @@ Traefik UI: http://localhost.tiangolo.com:8090

### Dump empty table schema using pgDump

To create an empty data dump used for the data preparation the following command can be executed.
To create an empty schema-only dump the following command can be executed.
`pg_dump -d goat -U postgres -h URL -F t -s -n basic -n customer -x > dump_schema.tar`

`pg_dump -d db-name -U user-name -h host-name -s -n basic -n customer -x > dump_schema.sql`
To create an empty data-only dump the following command can be executed.
`pg_dump -d goat -U postgres -h URL -t YOUR-TABLE --data-only > dump_schema.sql`

To create a full dump you can do the following.
`pg_dump -U postgres -h URL -Fc -Z 9 --file=file.dump goat`
`pg_restore -Fc -j 8 file.dump`
16 changes: 1 addition & 15 deletions app/api/alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@
import asyncio
import os
from logging.config import fileConfig

from alembic_utils.replaceable_entity import register_entities
from sqlalchemy import engine_from_config, pool
from sqlalchemy.ext.asyncio import AsyncEngine
from sqlmodel import SQLModel

from alembic import context
from src.core.config import settings
from src.db.models import *
from src.db.sql.init_sql import (
sql_function_entities,
sql_trigger_entities,
sql_view_entities,
)

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
Expand All @@ -34,24 +27,17 @@
# my_important_option = config.get_main_option("my_important_option")
# ... etc.


# run migration for database custom functions, views, triggers
sql_entities = sql_function_entities() + sql_view_entities() + sql_trigger_entities()
register_entities(sql_entities)


def include_object(object, name, type_, reflected, compare_to):
print(type_)
if (
type_ in ["table", "function", "extension", "trigger", "view"]
type_ in ["table"]
and reflected
and compare_to is None
):
return False
else:
return True


def run_migrations_offline():
"""Run migrations in 'offline' mode.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
"""added further attributes to geostore table

Revision ID: 786395e0b1f4
Revises: 9d4e51a9535c
Create Date: 2022-07-28 13:02:05.366050

"""
from alembic import op
import sqlalchemy as sa
import geoalchemy2
import sqlmodel

from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '786395e0b1f4'
down_revision = '9d4e51a9535c'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('geostore', sa.Column('type', sa.Text(), nullable=True), schema='customer')
op.add_column('geostore', sa.Column('configuration', postgresql.JSONB(astext_type=sa.Text()), nullable=True), schema='customer')
op.add_column('geostore', sa.Column('attribution', sa.Text(), nullable=True), schema='customer')
op.alter_column('geostore', 'name',
existing_type=sa.TEXT(),
nullable=True,
schema='customer')
op.drop_index('ix_customer_geostore_name', table_name='geostore', schema='customer')
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_index('ix_customer_geostore_name', 'geostore', ['name'], unique=False, schema='customer')
op.alter_column('geostore', 'name',
existing_type=sa.TEXT(),
nullable=False,
schema='customer')
op.drop_column('geostore', 'attribution', schema='customer')
op.drop_column('geostore', 'configuration', schema='customer')
op.drop_column('geostore', 'type', schema='customer')
# ### end Alembic commands ###
40 changes: 40 additions & 0 deletions app/api/alembic/versions/7e07e654204b_create_staticlayer_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
"""Create StaticLayer Model

Revision ID: 7e07e654204b
Revises: 70814d19d9d2
Create Date: 2022-07-05 12:01:46.007154

"""
from alembic import op
import sqlalchemy as sa
import geoalchemy2
import sqlmodel



# revision identifiers, used by Alembic.
revision = '7e07e654204b'
down_revision = '70814d19d9d2'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('static_layer',
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
sa.Column('creation_date', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP'), nullable=True),
sa.Column('user_id', sa.Integer(), nullable=False),
sa.Column('table_name', sa.String(length=63), nullable=False),
sa.ForeignKeyConstraint(['user_id'], ['customer.user.id'], ondelete='CASCADE'),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('table_name'),
schema='customer'
)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('static_layer', schema='customer')
# ### end Alembic commands ###
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
"""added on delete cascade for user foreign keys

Revision ID: 803ea689f6b8
Revises: f5256a2f45c8
Create Date: 2022-08-11 12:11:44.522079

"""
from alembic import op
import sqlalchemy as sa
import geoalchemy2
import sqlmodel



# revision identifiers, used by Alembic.
revision = '803ea689f6b8'
down_revision = 'f5256a2f45c8'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint('study_area_grid_visualization_grid_visualization_id_fkey', 'study_area_grid_visualization', schema='basic', type_='foreignkey')
op.drop_constraint('study_area_grid_visualization_study_area_id_fkey', 'study_area_grid_visualization', schema='basic', type_='foreignkey')
op.create_foreign_key(None, 'study_area_grid_visualization', 'study_area', ['study_area_id'], ['id'], source_schema='basic', referent_schema='basic', ondelete='CASCADE')
op.create_foreign_key(None, 'study_area_grid_visualization', 'grid_visualization', ['grid_visualization_id'], ['id'], source_schema='basic', referent_schema='basic', ondelete='CASCADE')
op.drop_constraint('user_role_user_id_fkey', 'user_role', schema='customer', type_='foreignkey')
op.drop_constraint('user_role_role_id_fkey', 'user_role', schema='customer', type_='foreignkey')
op.create_foreign_key(None, 'user_role', 'user', ['user_id'], ['id'], source_schema='customer', referent_schema='customer', ondelete='CASCADE')
op.create_foreign_key(None, 'user_role', 'role', ['role_id'], ['id'], source_schema='customer', referent_schema='customer', ondelete='CASCADE')
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(None, 'user_role', schema='customer', type_='foreignkey')
op.drop_constraint(None, 'user_role', schema='customer', type_='foreignkey')
op.create_foreign_key('user_role_role_id_fkey', 'user_role', 'role', ['role_id'], ['id'], source_schema='customer', referent_schema='customer')
op.create_foreign_key('user_role_user_id_fkey', 'user_role', 'user', ['user_id'], ['id'], source_schema='customer', referent_schema='customer')
op.drop_constraint(None, 'study_area_grid_visualization', schema='basic', type_='foreignkey')
op.drop_constraint(None, 'study_area_grid_visualization', schema='basic', type_='foreignkey')
op.create_foreign_key('study_area_grid_visualization_study_area_id_fkey', 'study_area_grid_visualization', 'study_area', ['study_area_id'], ['id'], source_schema='basic', referent_schema='basic')
op.create_foreign_key('study_area_grid_visualization_grid_visualization_id_fkey', 'study_area_grid_visualization', 'grid_visualization', ['grid_visualization_id'], ['id'], source_schema='basic', referent_schema='basic')
# ### end Alembic commands ###
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
"""removed not needed columns from node table

Revision ID: 8c1f155cadc8
Revises: fe15a9867004
Create Date: 2022-09-10 12:50:42.700816

"""
from alembic import op
import sqlalchemy as sa
import geoalchemy2
import sqlmodel

from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '8c1f155cadc8'
down_revision = 'fe15a9867004'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index('ix_basic_node_death_end', table_name='node', schema='basic')
op.drop_column('node', 'class_ids', schema='basic')
op.drop_column('node', 'death_end', schema='basic')
op.drop_column('node', 'cnt', schema='basic')
op.drop_column('node', 'bicycle', schema='basic')
op.drop_column('node', 'lit_classified', schema='basic')
op.drop_column('node', 'wheelchair_classified', schema='basic')
op.drop_column('node', 'foot', schema='basic')
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('node', sa.Column('foot', postgresql.ARRAY(sa.TEXT()), autoincrement=False, nullable=True), schema='basic')
op.add_column('node', sa.Column('wheelchair_classified', postgresql.ARRAY(sa.TEXT()), autoincrement=False, nullable=True), schema='basic')
op.add_column('node', sa.Column('lit_classified', postgresql.ARRAY(sa.TEXT()), autoincrement=False, nullable=True), schema='basic')
op.add_column('node', sa.Column('bicycle', postgresql.ARRAY(sa.TEXT()), autoincrement=False, nullable=True), schema='basic')
op.add_column('node', sa.Column('cnt', sa.INTEGER(), autoincrement=False, nullable=True), schema='basic')
op.add_column('node', sa.Column('death_end', sa.BOOLEAN(), autoincrement=False, nullable=True), schema='basic')
op.add_column('node', sa.Column('class_ids', postgresql.ARRAY(sa.INTEGER()), autoincrement=False, nullable=True), schema='basic')
op.create_index('ix_basic_node_death_end', 'node', ['death_end'], unique=False, schema='basic')
# ### end Alembic commands ###
Loading