- 
                Notifications
    
You must be signed in to change notification settings  - Fork 4
 
Changes to report logic: STRY0017737 #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
          
 | 
    
| 
           test with additional missing report needed data needed e.g. checkm disabled  | 
    
          
 We cannot get CheckM to run in current tests so it is currently disabled showing 3/4 passed tests. If CheckM is enabled we see 4/4 passed tests, it is unclear if users would like to see the number of passed tests reflect skipped tests or not and we should follow up on this later. E.g. if CheckM is skipped the user would see 3/3 passed tests in our examples.  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This so much for this Matthew. This looks amazing 😄. Just a few comments.
        
          
                lib/ReportFunctions.groovy
              
                Outdated
          
        
      | class ReportFunctions{ | ||
| 
               | 
          ||
| /* | ||
| enum FuncType{ | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove this commented out bit of code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in: e67cbdd
| 
               | 
          ||
| def qual_message = [] | ||
| def failed_p = false | ||
| //def failed_p = false | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is now unused could you remove it.
| check_failed, | ||
| check_ignored) = this.contig_qc_func(qual_data, metric, qc_message) | ||
| break; | ||
| } | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a default case here that raises an exception about an invalid FuncType (though I suspect you would likely also get an exception raised when casting the string to the enum FuncType anyways).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in: e67cbdd
        
          
                lib/ReportFunctions.groovy
              
                Outdated
          
        
      | resequence, | ||
| failed_p, | ||
| check_failed, | ||
| check_ignored) = this.generic_qc_func(qual_data, metric, qc_message) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use ReportFunctions.generic_qc_func() to call the function (or just generic_qc_func()) since these are static functions and this is meant to refer to the particular instance of a class (for non-static functions). Though it seems like it works anyways like how you have things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in: e67cbdd
        
          
                lib/ReportFunctions.groovy
              
                Outdated
          
        
      | resequence = 1 | ||
| failed_p = true | ||
| checks_failed = 1 | ||
| //return [checks, reisolate, resequence, failed_p, checks_failed, checks_ignored] | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented-out code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in: e67cbdd
        
          
                lib/ReportFunctions.groovy
              
                Outdated
          
        
      | resequence, | ||
| failed_p, | ||
| check_failed, | ||
| check_ignored) = this.generic_qc_func(qual_data, metric, qc_message) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is GENERIC and AUTOFAIL meant to run identical code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, a separate method should be run good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in: e67cbdd
        
          
                lib/ReportFunctions.groovy
              
                Outdated
          
        
      | 
               | 
          ||
| 
               | 
          ||
| 
               | 
          ||
| class ReportFunctions{ | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you maybe run the VSCode formatter on this file to clean up whitespace, etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in: e67cbdd
| 
           The autofail function needs to be tested better, e.g. a failing result needs to be passed to checkM  | 
    
The changes in this PR are performed to reflect what is listed in STRY0017737, however the implementation of how the work is done has been altered.
Acceptance Criteria: