Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
1270a0fe
Commit
1270a0fe
authored
Jun 28, 2021
by
Bogdan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Car sharing schema 2 Fix
parent
4e665995
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
19 deletions
+22
-19
__init__.py
.../app/_add_use_case_scripts/car_sharing/tables/__init__.py
+1
-1
__init__.py
..._use_case_scripts/car_sharing_official/tables/__init__.py
+1
-1
add_car.py
...d_use_case_scripts/car_sharing_official/tables/add_car.py
+7
-7
add_offerEndPlaces.py
...scripts/car_sharing_official/tables/add_offerEndPlaces.py
+11
-10
main.py
tools/delete_this_test_folder/main.py
+2
-0
No files found.
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/tables/__init__.py
View file @
1270a0fe
...
@@ -4,4 +4,4 @@ from _add_use_case_scripts.car_sharing.tables import add_offer
...
@@ -4,4 +4,4 @@ from _add_use_case_scripts.car_sharing.tables import add_offer
from
_add_use_case_scripts.car_sharing.tables
import
add_publication
from
_add_use_case_scripts.car_sharing.tables
import
add_publication
from
_add_use_case_scripts.car_sharing.tables
import
add_travel
from
_add_use_case_scripts.car_sharing.tables
import
add_travel
from
_add_use_case_scripts.car_sharing.tables
import
add_user
from
_add_use_case_scripts.car_sharing.tables
import
add_user
from
_add_use_case_scripts.car_sharing.tables
import
requestPost
from
_add_use_case_scripts
import
requestPost
\ No newline at end of file
\ No newline at end of file
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing_official/tables/__init__.py
View file @
1270a0fe
...
@@ -10,4 +10,4 @@ from _add_use_case_scripts.car_sharing_official.tables import add_travelStartedB
...
@@ -10,4 +10,4 @@ from _add_use_case_scripts.car_sharing_official.tables import add_travelStartedB
from
_add_use_case_scripts.car_sharing_official.tables
import
add_travelSuggestedEndPlaces
from
_add_use_case_scripts.car_sharing_official.tables
import
add_travelSuggestedEndPlaces
from
_add_use_case_scripts.car_sharing_official.tables
import
add_travelUsers
from
_add_use_case_scripts.car_sharing_official.tables
import
add_travelUsers
from
_add_use_case_scripts.car_sharing_official.tables
import
add_user
from
_add_use_case_scripts.car_sharing_official.tables
import
add_user
from
_add_use_case_scripts
.car_sharing_official.tables
import
requestPost
from
_add_use_case_scripts
import
requestPost
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing_official/tables/add_car.py
View file @
1270a0fe
...
@@ -16,7 +16,7 @@ def add_table(use_case: str, table_name:str):
...
@@ -16,7 +16,7 @@ def add_table(use_case: str, table_name:str):
"ownerId"
,
"ownerId"
,
"seats"
,
"seats"
,
"state"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
"year"
]
]
...
@@ -50,7 +50,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -50,7 +50,7 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"ownerId"
,
"seats"
,
"seats"
,
"state"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
"year"
],
],
"cluster_properties"
:
[
"cluster_properties"
:
[
...
@@ -78,11 +78,11 @@ def add_layers(use_case:str, table_name: str):
...
@@ -78,11 +78,11 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"ownerId"
,
"seats"
,
"seats"
,
"state"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
"year"
],
],
"cluster_properties"
:
[
"cluster_properties"
:
[
"
OwnerID
"
,
"
ownerId
"
,
"UniqueID"
"UniqueID"
]
]
},
},
...
@@ -102,7 +102,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -102,7 +102,7 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"ownerId"
,
"seats"
,
"seats"
,
"state"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
"year"
],
],
"cluster_properties"
:
[
"cluster_properties"
:
[
...
@@ -126,7 +126,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -126,7 +126,7 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"ownerId"
,
"seats"
,
"seats"
,
"state"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
"year"
],
],
"cluster_properties"
:
[
"cluster_properties"
:
[
...
@@ -165,7 +165,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -165,7 +165,7 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"ownerId"
,
"seats"
,
"seats"
,
"state"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
"year"
],
],
"cluster_properties"
:
[
"cluster_properties"
:
[
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing_official/tables/add_offerEndPlaces.py
View file @
1270a0fe
...
@@ -7,16 +7,17 @@ def add_table(use_case: str, table_name: str):
...
@@ -7,16 +7,17 @@ def add_table(use_case: str, table_name: str):
'''
'''
columns
=
[
#columns = [
# None
# # None
]
#]
#columns = { c : c for c in columns }
columns
=
dict
()
#TODO unique id is dependent on offferId -> error?
#TODO unique id is dependent on offferId -> error?
columns
=
{
c
:
c
for
c
in
columns
}
columns
[
"UniqueID"
]
=
"offerId+endPlacesLatitude+endPlacesLongitude"
columns
[
"offerId"
]
=
"offer//id"
columns
[
"offerId"
]
=
"offer//id"
columns
[
"endPlacesAddress"
]
=
"endPlaces[0]//address"
,
columns
[
"UniqueID"
]
=
"offerId+endPlacesLatitude+endPlacesLongitude"
columns
[
"endPlacesLatitude"
]
=
"endPlaces[0]//latitude"
,
columns
[
"endPlacesAddress"
]
=
"endPlaces[0]//address"
columns
[
"endPlacesLongitude"
]
=
"endPlaces[0]//longitude"
columns
[
"endPlacesLatitude"
]
=
"endPlaces[0]//latitude"
columns
[
"endPlacesLongitude"
]
=
"endPlaces[0]//longitude"
table
=
{
table
=
{
"name"
:
table_name
,
"name"
:
table_name
,
...
@@ -33,7 +34,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -33,7 +34,7 @@ def add_layers(use_case:str, table_name: str):
"name"
:
"OfferEndPlace_layer"
,
"name"
:
"OfferEndPlace_layer"
,
"properties"
:
[
"properties"
:
[
"UniqueID"
,
"UniqueID"
,
"offerI
D
"
,
"offerI
d
"
,
"endPlacesAddress"
,
"endPlacesAddress"
,
"endPlacesLatitude"
,
"endPlacesLatitude"
,
"endPlacesLongitude"
"endPlacesLongitude"
...
@@ -49,7 +50,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -49,7 +50,7 @@ def add_layers(use_case:str, table_name: str):
"name"
:
"OfferEndAddress_layer"
,
"name"
:
"OfferEndAddress_layer"
,
"properties"
:
[
"properties"
:
[
"UniqueID"
,
"UniqueID"
,
"offerI
D
"
,
"offerI
d
"
,
"endPlacesAddress"
,
"endPlacesAddress"
,
"endPlacesLatitude"
,
"endPlacesLatitude"
,
"endPlacesLongitude"
"endPlacesLongitude"
...
...
tools/delete_this_test_folder/main.py
0 → 100644
View file @
1270a0fe
print
(
"Test"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment