Преглед на файлове

Fixed bug in model_render, where the source of tracability is not found

Yentl Van Tendeloo преди 8 години
родител
ревизия
46519f7a2f
променени са 2 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 1 0
      bootstrap/core_algorithm.alc
  2. 1 4
      bootstrap/model_management.alc

+ 1 - 0
bootstrap/core_algorithm.alc

@@ -951,6 +951,7 @@ String function cmd_model_render(user_id : String, model_name : String, mapper_n
 
 					// Overwrite the previous rendered model
 					model_overwrite(result["rendered"], get_model_id(rendered_name))
+					model_overwrite(result["abstract"], get_model_id(model_name))
 
 					// Tracability updated in-place
 					model_overwrite(tracability_model, get_model_id(tracability_name))

+ 1 - 4
bootstrap/model_management.alc

@@ -215,6 +215,7 @@ Element function model_join(models : Element, metamodel : Element, tracability_m
 
 			new_name_src = elem_map[cast_id2s(read_edge_src(tracability_model["model"][tracability_link]))]
 			new_name_dst = elem_map[cast_id2s(read_edge_dst(tracability_model["model"][tracability_link]))]
+
 			type = read_attribute(tracability_model, tracability_link, "type")
 
 			// Connect the two with the info we have
@@ -279,16 +280,12 @@ Element function model_split(merged_model : Element, models : Element, tracabili
 				// Got a tracability link!
 				// Is always an edge (for now?)
 				// Find out source and target and hope that they are already present
-				log("Create tracability link in model!")
 				src = reverse[cast_id2s(read_edge_src(elem))]
 				dst = reverse[cast_id2s(read_edge_dst(elem))]
 
 				src_name = list_read(string_split(read_type(merged_model, src), "/"), 0)
 				dst_name = list_read(string_split(read_type(merged_model, dst), "/"), 0)
 
-				log("Source model name: " + cast_v2s(src_name))
-				log("Destination model name: " + cast_v2s(dst_name))
-				log("Result: " + dict_to_string(result))
 
 				// Check if we actually keep both models around, as otherwise it is useless anyway
 				if (bool_and(dict_in(result, src_name), dict_in(result, dst_name))):