File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed 
data_validation_framework Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 11# Changelog  
22
3+ ## [ 0.7.3] ( https://github.com/BlueBrain/data-validation-framework/compare/0.7.2..0.7.3 )  
4+ 
5+ >  22 December 2023
6+ 
7+ ### Fixes  
8+ 
9+ -  Attach event hooks to proper classes (Adrien Berchet - [ #56  ] ( https://github.com/BlueBrain/data-validation-framework/pull/56 ) )
10+ 
311## [ 0.7.2] ( https://github.com/BlueBrain/data-validation-framework/compare/0.7.1..0.7.2 )  
412
513>  22 December 2023
Original file line number Diff line number Diff line change @@ -637,10 +637,10 @@ def __specifications__(self):
637637
638638
639639@BaseValidationTask .event_handler (luigi .Event .SUCCESS ) 
640- def  success_summary (self ):
640+ def  success_summary (task ):
641641    """Hook to log a summary report of the task.""" 
642642    L .info ("==========================================" )
643-     task_summary  =  f"SUMMARY { self .task_name } { self .nb_valid } { self .nb_total }  
643+     task_summary  =  f"SUMMARY { task .task_name } { task .nb_valid } { task .nb_total }  
644644    L .info (task_summary )
645645    L .info ("==========================================" )
646646
@@ -751,12 +751,12 @@ def validation_function(*args, **kwargs):
751751
752752
753753@ValidationWorkflow .event_handler (luigi .Event .SUCCESS ) 
754- def  spec_report (current_task ):
754+ def  spec_report (task ):
755755    """Hook to create a specification report.""" 
756-     L .debug ("Generating report of %s" , current_task )
757-     if  current_task .generate_report :
756+     L .debug ("Generating report of %s" , task )
757+     if  task .generate_report :
758758        try :
759-             make_report (current_task , config = current_task .report_config )
759+             make_report (task , config = task .report_config )
760760        # pylint: disable=broad-except 
761761        except  Exception  as  e :  # pragma: no cover 
762762            L .error (
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments