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
48e66a5a
Commit
48e66a5a
authored
Jun 28, 2021
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/official-car-sharing-schema' into develop
parents
f8162f4d
ff9f5fed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
19 deletions
+20
-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
No files found.
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/tables/__init__.py
View file @
48e66a5a
...
...
@@ -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_travel
from
_add_use_case_scripts.car_sharing.tables
import
add_user
from
_add_use_case_scripts.car_sharing.tables
import
requestPost
\ No newline at end of file
from
_add_use_case_scripts
import
requestPost
\ 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 @
48e66a5a
...
...
@@ -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_travelUsers
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 @
48e66a5a
...
...
@@ -16,7 +16,7 @@ def add_table(use_case: str, table_name:str):
"ownerId"
,
"seats"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
]
...
...
@@ -50,7 +50,7 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"seats"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
],
"cluster_properties"
:
[
...
...
@@ -78,11 +78,11 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"seats"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
],
"cluster_properties"
:
[
"
OwnerID
"
,
"
ownerId
"
,
"UniqueID"
]
},
...
...
@@ -102,7 +102,7 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"seats"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
],
"cluster_properties"
:
[
...
...
@@ -126,7 +126,7 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"seats"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
],
"cluster_properties"
:
[
...
...
@@ -165,7 +165,7 @@ def add_layers(use_case:str, table_name: str):
"ownerId"
,
"seats"
,
"state"
,
"sumOfEvaluations"
"sumOfEvaluations"
,
"year"
],
"cluster_properties"
:
[
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing_official/tables/add_offerEndPlaces.py
View file @
48e66a5a
...
...
@@ -7,16 +7,17 @@ def add_table(use_case: str, table_name: str):
'''
columns
=
[
# None
]
#columns = [
# # None
#]
#columns = { c : c for c in columns }
columns
=
dict
()
#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
[
"endPlacesAddress"
]
=
"endPlaces[0]//address"
,
columns
[
"endPlacesLatitude"
]
=
"endPlaces[0]//latitude"
,
columns
[
"endPlacesLongitude"
]
=
"endPlaces[0]//longitude"
columns
[
"UniqueID"
]
=
"offerId+endPlacesLatitude+endPlacesLongitude"
columns
[
"endPlacesAddress"
]
=
"endPlaces[0]//address"
columns
[
"endPlacesLatitude"
]
=
"endPlaces[0]//latitude"
columns
[
"endPlacesLongitude"
]
=
"endPlaces[0]//longitude"
table
=
{
"name"
:
table_name
,
...
...
@@ -33,7 +34,7 @@ def add_layers(use_case:str, table_name: str):
"name"
:
"OfferEndPlace_layer"
,
"properties"
:
[
"UniqueID"
,
"offerI
D
"
,
"offerI
d
"
,
"endPlacesAddress"
,
"endPlacesLatitude"
,
"endPlacesLongitude"
...
...
@@ -49,7 +50,7 @@ def add_layers(use_case:str, table_name: str):
"name"
:
"OfferEndAddress_layer"
,
"properties"
:
[
"UniqueID"
,
"offerI
D
"
,
"offerI
d
"
,
"endPlacesAddress"
,
"endPlacesLatitude"
,
"endPlacesLongitude"
...
...
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