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
427d0d7d
Commit
427d0d7d
authored
Sep 20, 2021
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
31f6aadc
7ec121b5
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
113 additions
and
31 deletions
+113
-31
articonf_pipeline.png
documentation/images/articonf_pipeline.png
+0
-0
local.properties
src/dashboard/android/local.properties
+1
-0
Generated.xcconfig
src/dashboard/ios/Flutter/Generated.xcconfig
+14
-0
flutter_export_environment.sh
src/dashboard/ios/Flutter/flutter_export_environment.sh
+14
-0
GeneratedPluginRegistrant.h
src/dashboard/ios/Runner/GeneratedPluginRegistrant.h
+17
-0
GeneratedPluginRegistrant.m
src/dashboard/ios/Runner/GeneratedPluginRegistrant.m
+26
-0
deployment.yml
...tation-calculation-microservice/deployment/deployment.yml
+6
-2
token_manager.py
src/modules/security/token_manager.py
+3
-2
add_bank_app_schema.py
...app/_add_use_case_scripts/bank-app/add_bank_app_schema.py
+1
-1
add_bank_app.py
...app/_add_use_case_scripts/bank-app/tables/add_bank_app.py
+1
-0
add_carsharing_schema.py
...add_use_case_scripts/car_sharing/add_carsharing_schema.py
+1
-10
add_carsharingofficial_schema.py
...pts/car_sharing_official/add_carsharingofficial_schema.py
+1
-1
add_schema.py
..._use_case_scripts/community-prediction/taxi/add_schema.py
+1
-1
add_schema.py
...e_case_scripts/community-prediction/youtube/add_schema.py
+1
-1
add_crowdjournalism_schema.py
...se_scripts/crowd_journalism/add_crowdjournalism_schema.py
+2
-2
add_event.py
...add_use_case_scripts/crowd_journalism/tables/add_event.py
+2
-2
add_debug_schema.py
...rvice/app/_add_use_case_scripts/debug/add_debug_schema.py
+1
-1
add_smart_reddit_schema.py
...p/_add_use_case_scripts/reddit/add_smart_reddit_schema.py
+1
-1
add_smart_energy_schema.py
..._use_case_scripts/smart-energy/add_smart_energy_schema.py
+1
-1
deployment.yml
...hub/business-logic-microservice/deployment/deployment.yml
+7
-3
routes.yml
src/rest-gateway/app/configs/routes.yml
+2
-0
deployment.yml
src/rest-gateway/deployment/deployment.yml
+10
-3
No files found.
documentation/images/articonf_pipeline.png
View replaced file @
31f6aadc
View file @
427d0d7d
206 KB
|
W:
|
H:
287 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/dashboard/android/local.properties
0 → 100644
View file @
427d0d7d
flutter.sdk
=
/srv/flutter
\ No newline at end of file
src/dashboard/ios/Flutter/Generated.xcconfig
0 → 100644
View file @
427d0d7d
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/srv/flutter
FLUTTER_APPLICATION_PATH=/local/home/manuel/smart/src/dashboard
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_DIR=build
SYMROOT=${SOURCE_ROOT}/../build/ios
FLUTTER_BUILD_NAME=1.0.0
FLUTTER_BUILD_NUMBER=1
EXCLUDED_ARCHS[sdk=iphonesimulator*]=arm64 i386
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=false
TREE_SHAKE_ICONS=false
PACKAGE_CONFIG=.packages
src/dashboard/ios/Flutter/flutter_export_environment.sh
0 → 100755
View file @
427d0d7d
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export
"FLUTTER_ROOT=/srv/flutter"
export
"FLUTTER_APPLICATION_PATH=/local/home/manuel/smart/src/dashboard"
export
"COCOAPODS_PARALLEL_CODE_SIGN=true"
export
"FLUTTER_TARGET=lib/main.dart"
export
"FLUTTER_BUILD_DIR=build"
export
"SYMROOT=
${
SOURCE_ROOT
}
/../build/ios"
export
"FLUTTER_BUILD_NAME=1.0.0"
export
"FLUTTER_BUILD_NUMBER=1"
export
"DART_OBFUSCATION=false"
export
"TRACK_WIDGET_CREATION=false"
export
"TREE_SHAKE_ICONS=false"
export
"PACKAGE_CONFIG=.packages"
src/dashboard/ios/Runner/GeneratedPluginRegistrant.h
0 → 100644
View file @
427d0d7d
//
// Generated file. Do not edit.
//
#ifndef GeneratedPluginRegistrant_h
#define GeneratedPluginRegistrant_h
#import <Flutter/Flutter.h>
NS_ASSUME_NONNULL_BEGIN
@interface
GeneratedPluginRegistrant
:
NSObject
+
(
void
)
registerWithRegistry
:(
NSObject
<
FlutterPluginRegistry
>*
)
registry
;
@end
NS_ASSUME_NONNULL_END
#endif
/* GeneratedPluginRegistrant_h */
src/dashboard/ios/Runner/GeneratedPluginRegistrant.m
0 → 100644
View file @
427d0d7d
//
// Generated file. Do not edit.
//
#import "GeneratedPluginRegistrant.h"
#if __has_include(<integration_test/IntegrationTestPlugin.h>)
#import <integration_test/IntegrationTestPlugin.h>
#else
@import
integration_test
;
#endif
#if __has_include(<path_provider/FLTPathProviderPlugin.h>)
#import <path_provider/FLTPathProviderPlugin.h>
#else
@import
path_provider
;
#endif
@implementation
GeneratedPluginRegistrant
+
(
void
)
registerWithRegistry
:(
NSObject
<
FlutterPluginRegistry
>*
)
registry
{
[
IntegrationTestPlugin
registerWithRegistrar
:[
registry
registrarForPlugin
:
@"IntegrationTestPlugin"
]];
[
FLTPathProviderPlugin
registerWithRegistrar
:[
registry
registrarForPlugin
:
@"FLTPathProviderPlugin"
]];
}
@end
src/data-hub/reputation-calculation-microservice/deployment/deployment.yml
View file @
427d0d7d
...
...
@@ -73,7 +73,8 @@ spec:
spec
:
containers
:
-
name
:
reputation-calculation-db
image
:
mongo
image
:
mongo:4.2.16
imagePullPolicy
:
IfNotPresent
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
value
:
root
...
...
@@ -82,7 +83,10 @@ spec:
ports
:
-
containerPort
:
27017
volumeMounts
:
-
mountPath
:
/data
/db
-
mountPath
:
/data
name
:
dbdata
volumes
:
-
name
:
dbdata
hostPath
:
path
:
/srv/articonf/db/reputation-calculation
type
:
Directory
src/modules/security/token_manager.py
View file @
427d0d7d
...
...
@@ -23,10 +23,11 @@ class TokenManager:
def
getToken
(
self
,
admin
=
False
)
->
str
:
if
self
.
_token
==
None
:
credentials_path
=
get_resources_path
()
credentials_path
=
f
"{credentials_path}/{'admin' if admin else 'regular'}_user_credentials.json"
print
(
"Looking for credentials at ... "
+
str
(
credentials_path
)
)
print
(
f
"Looking for credentials at '{credentials_path}'"
)
with
open
(
f
"{credentials_path}/{'admin' if admin else 'regular'}_user_credentials.json"
)
as
file_handler
:
with
open
(
credentials_path
)
as
file_handler
:
credentials
=
json
.
loads
(
file_handler
.
read
())
url
=
f
'https://{network_constants.REST_GATEWAY_HOSTNAME}:{network_constants.REST_GATEWAY_REST_PORT}/api/tokens'
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/bank-app/add_bank_app_schema.py
View file @
427d0d7d
...
...
@@ -15,7 +15,7 @@ import tables.add_bank_app as add_bank_app
def
add_use_case
(
use_case
:
str
):
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/bank-app/tables/add_bank_app.py
View file @
427d0d7d
...
...
@@ -21,6 +21,7 @@ def add_table(use_case: str, table_name: str):
columns
=
{
c
:
c
for
c
in
columns
}
columns
[
"UniqueID"
]
=
"Transaction_ID+Timestamp"
columns
[
"Transaction_Type"
]
=
"enum(Transaction_Type)"
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases/{use_case}/tables"
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/add_carsharing_schema.py
View file @
427d0d7d
...
...
@@ -9,17 +9,8 @@ for modules_path in modules_paths:
if
os
.
path
.
exists
(
modules_path
):
sys
.
path
.
insert
(
1
,
modules_path
)
# import _add_use_case_scripts.car_sharing.tables.add_user as user
from
_add_use_case_scripts.car_sharing.tables
import
add_car
,
add_hash
,
add_offer
,
add_publication
,
add_travel
,
add_user
# import _add_use_case_scripts.car_sharing.tables.add_user as user
# from _add_use_case_scripts.car_sharing.tables import add_car
# from _add_use_case_scripts.car_sharing.tables import add_hash
# from _add_use_case_scripts.car_sharing.tables import add_publication
# from _add_use_case_scripts.car_sharing.tables import add_offer
# from _add_use_case_scripts.car_sharing.tables import add_travel
import
network_constants
as
nc
from
security.token_manager
import
TokenManager
...
...
@@ -28,7 +19,7 @@ from security.token_manager import TokenManager
def
add_use_case
(
use_case
:
str
):
use_case
=
"car-sharing"
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing_official/add_carsharingofficial_schema.py
View file @
427d0d7d
...
...
@@ -22,7 +22,7 @@ from security.token_manager import TokenManager
def
add_use_case
(
use_case
:
str
):
use_case
=
"car-sharing-official"
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/community-prediction/taxi/add_schema.py
View file @
427d0d7d
...
...
@@ -14,7 +14,7 @@ from security.token_manager import TokenManager
import
tables.add_table
as
add_table
def
add_use_case
(
use_case
:
str
):
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/community-prediction/youtube/add_schema.py
View file @
427d0d7d
...
...
@@ -14,7 +14,7 @@ from security.token_manager import TokenManager
import
tables.add_table
as
add_table
def
add_use_case
(
use_case
:
str
):
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/crowd_journalism/add_crowdjournalism_schema.py
View file @
427d0d7d
...
...
@@ -16,7 +16,7 @@ from security.token_manager import TokenManager
def
add_use_case
(
use_case
:
str
):
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/crowd_journalism/tables/add_event.py
View file @
427d0d7d
...
...
@@ -53,7 +53,7 @@ def add_layers(use_case:str, table_name: str):
"UniqueID"
,
"objecttype"
,
"eventid"
,
"evenEpicenter"
,
"even
t
Epicenter"
,
"range"
,
"firstTag"
],
...
...
@@ -69,7 +69,7 @@ def add_layers(use_case:str, table_name: str):
"UniqueID"
,
"objecttype"
,
"eventid"
,
"evenEpicenter"
,
"even
t
Epicenter"
,
"range"
,
"firstTag"
],
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/debug/add_debug_schema.py
View file @
427d0d7d
...
...
@@ -14,7 +14,7 @@ from security.token_manager import TokenManager
import
tables.add_pizza_table
as
pizza
def
add_use_case
(
use_case
:
str
):
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/reddit/add_smart_reddit_schema.py
View file @
427d0d7d
...
...
@@ -14,7 +14,7 @@ from security.token_manager import TokenManager
import
tables.add_reddit
as
reddit
def
add_use_case
(
use_case
:
str
):
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/smart-energy/add_smart_energy_schema.py
View file @
427d0d7d
...
...
@@ -14,7 +14,7 @@ from security.token_manager import TokenManager
import
tables.add_smart_energy
as
smart_energy
def
add_use_case
(
use_case
:
str
):
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
jwt
=
TokenManager
.
getInstance
()
.
getToken
(
admin
=
True
)
url
=
f
"https://articonf1.itec.aau.at:30420/api/use-cases"
response
=
requests
.
post
(
url
,
...
...
src/participation-hub/business-logic-microservice/deployment/deployment.yml
View file @
427d0d7d
...
...
@@ -72,7 +72,8 @@ spec:
spec
:
containers
:
-
name
:
business-logic-db
image
:
mongo
image
:
mongo:4.2.16
imagePullPolicy
:
IfNotPresent
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
value
:
root
...
...
@@ -81,7 +82,10 @@ spec:
ports
:
-
containerPort
:
27017
volumeMounts
:
-
mountPath
:
/data
/db
-
mountPath
:
/data
name
:
dbdata
volumes
:
-
name
:
dbdata
hostPath
:
path
:
/srv/articonf/db/business-logic
type
:
Directory
src/rest-gateway/app/configs/routes.yml
View file @
427d0d7d
...
...
@@ -197,6 +197,8 @@ definitions:
format
:
"
date-time"
ApplicationType
:
type
:
"
string"
docType
:
type
:
"
string"
TransactionFrom
:
type
:
"
string"
format
:
"
uuid"
...
...
src/rest-gateway/deployment/deployment.yml
View file @
427d0d7d
...
...
@@ -73,7 +73,8 @@ spec:
spec
:
containers
:
-
name
:
rest-gateway-db
image
:
mongo
image
:
mongo:4.2.16
imagePullPolicy
:
IfNotPresent
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
value
:
root
...
...
@@ -82,7 +83,13 @@ spec:
ports
:
-
containerPort
:
27017
volumeMounts
:
-
mountPath
:
/data
/db
-
mountPath
:
/data
name
:
dbdata
volumes
:
-
name
:
dbdata
hostPath
:
path
:
/srv/articonf/db/rest-gateway
type
:
Directory
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