Skip to content

Commit fc00fac

Browse files
authored
Merge pull request #1 from uuqjz/main
Small fixes in some models and convert_model.py
2 parents 063fa31 + 4f655de commit fc00fac

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

convert_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def parse_node_plantuml(line: str):
565565
if "--" in annotation:
566566
stereotypes.append(annotation.replace("-", "").strip())
567567
elif ":" in annotation:
568-
tagged_values.append(annotation.strip())
568+
tagged_values.append(annotation.replace("\\", "").strip())
569569

570570
return name, stereotypes, tagged_values
571571

@@ -579,12 +579,12 @@ def parse_flow_plantuml(line: str):
579579
sender = line.split("->")[0].strip()
580580
receiver = line.split("->")[1].split("[")[0].strip()
581581

582-
annotations = line.split("label = ")[1].split("]")
582+
annotations = line.split("label = ")[1].split("]")[0].split("\\n")
583583
for annotation in annotations:
584584
if "--" in annotation:
585585
stereotypes.append(annotation.replace("-", "").replace("\"", "").replace("\\n", "").strip())
586586
elif ":" in annotation:
587-
tagged_values.append(annotation.strip())
587+
tagged_values.append(annotation.replace("\\", "").strip())
588588

589589
return sender, receiver, stereotypes, tagged_values
590590

dataset/ewolff_microservice/model_variants/18.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ digraph dfd2{
3232
secret_manager [label = "{Process: secret_manager | --infrastructural--\n--secret_manager--}" shape = Mrecord];
3333
eureka -> secret_manager [label = " --restful_http--\n"]
3434
zuul -> secret_manager [label = " --restful_http--\n"]
35-
turine -> secret_manager [label = " --restful_http--\n"]
35+
turbine -> secret_manager [label = " --restful_http--\n"]
3636
catalog -> secret_manager [label = " --restful_http--\n"]
3737
customer -> secret_manager [label = " --restful_http--\n"]
3838
order -> secret_manager [label = " --restful_http--\n"]

dataset/piomin_sample-spring-oauth2-microservices/piomin_sample-spring-oauth2-microservices.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
{
198198
"name": "database_gateway_server",
199199
"stereotypes": [
200-
"external_database"
200+
"external_database",
201201
"plaintext_credentials"
202202
],
203203
"tagged_values": {

dataset/sqshq_piggymetrics/model_variants/10.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ digraph dfd2{
6666
registry -> monitoring [label = " --restful_http--"]
6767
rabbitmq -> monitoring [label = " --restful_http--"]
6868
account_service -> monitoring [label = " --restful_http--"]
69-
auth_server -> monitoring [label = " --restful_http--"]
69+
auth_service -> monitoring [label = " --restful_http--"]
7070
notification_service -> monitoring [label = " --restful_http--"]
7171
statistics_service -> monitoring [label = " --restful_http--"]
7272
gateway -> monitoring [label = " --restful_http--"]

dataset/sqshq_piggymetrics/model_variants/11.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ digraph dfd2{
6666
registry -> monitoring [label = " --restful_http--"]
6767
rabbitmq -> monitoring [label = " --restful_http--"]
6868
account_service -> monitoring [label = " --restful_http--"]
69-
auth_server -> monitoring [label = " --restful_http--"]
69+
auth_service -> monitoring [label = " --restful_http--"]
7070
notification_service -> monitoring [label = " --restful_http--"]
7171
statistics_service -> monitoring [label = " --restful_http--"]
7272
gateway -> monitoring [label = " --restful_http--"]

dataset/sqshq_piggymetrics/model_variants/12.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ digraph dfd2{
6666
registry -> rabbitmq [label = " --restful_http--"]
6767
rabbitmq -> monitoring [label = " --restful_http--"]
6868
account_service -> rabbitmq [label = " --restful_http--"]
69-
auth_server -> rabbitmq [label = " --restful_http--"]
69+
auth_service -> rabbitmq [label = " --restful_http--"]
7070
notification_service -> rabbitmq [label = " --restful_http--"]
7171
statistics_service -> rabbitmq [label = " --restful_http--"]
7272
gateway -> rabbitmq [label = " --restful_http--"]

0 commit comments

Comments
 (0)