File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,10 +28,17 @@ impl SagittariusModuleServiceClient {
2828 }
2929
3030 pub async fn update ( & mut self , modules : Vec < Module > ) {
31+ let available_defintition_soruces: Vec < String > = modules
32+ . iter ( )
33+ . map ( |x| x. definition_source . clone ( ) )
34+ . collect ( ) ;
3135 let request = Request :: from_parts (
3236 get_authorization_metadata ( & self . token ) ,
3337 Extensions :: new ( ) ,
34- ModuleUpdateRequest { modules } ,
38+ ModuleUpdateRequest {
39+ modules,
40+ available_defintition_soruces,
41+ } ,
3542 ) ;
3643
3744 match self . client . update ( request) . await {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ pub struct DefinitionModule {
5656impl DefinitionModule {
5757 pub fn into_module ( self ) -> Module {
5858 Module {
59- identifier : self . config . identifier ,
59+ identifier : self . config . identifier . clone ( ) ,
6060 name : self . config . name ,
6161 description : self . config . description ,
6262 documentation : self . config . documentation ,
@@ -70,6 +70,7 @@ impl DefinitionModule {
7070 definition_data_types : self . data_types ,
7171 configurations : self . module_configs ,
7272 definitions : Vec :: new ( ) ,
73+ definition_source : self . config . identifier ,
7374 }
7475 }
7576}
You can’t perform that action at this time.
0 commit comments