Project

General

Profile

action #127763

Updated by jbaier_cz about 1 year ago

## User story 

 In the past there was an agreement that QE will validate only bugs that have a reproducer and are of severity Major and higher. 

 As the initial step, lets adjust the template generator to separate lower severity bugs. 

 The way I imagine it, within bugs section there would be a subsection called "Lower Severity Bugs" where any bugzilla issue with severity lower than Major would be moved. 

 ## Acceptance criteria 
 **AC1**: Template generator will know the severity of each bug 
 **AC2**: Bugs in the template are grouped by severity 

 ## Suggestions 
 * Look at the plugin where SMELT is queried: https://gitlab.suse.de/qa-maintenance/teregen/-/blob/master/app/lib/TeReGen/Model/Plugin/22_FetchSmelt.pm 
 * Visit https://smelt.suse.de/graphql and read the API documentation 
 * Enhance the query to obtain severity (see example query) 
 * Look at the output plugin and group bugs: https://gitlab.suse.de/qa-maintenance/teregen/-/blob/master/app/lib/TeReGen/Model/Plugin/91_CreateTemplate.pm 

 #### Example query: 
 ``` 
 { 
   requests(requestId: 294631) { 
     edges { 
       node { 
         reviewSet { 
           edges { 
             node { 
               status { 
                 name 
               } 
               assignedByGroup { 
                 name 
               } 
             } 
           } 
         } 
         incident { 
           comments(who_Username_Iexact: "sle-qam-openqa", last: 1) { 
             edges { 
               node { 
                 when 
                 text 
               } 
             } 
           } 
           patchinfoSet { 
             edges { 
               node { 
                 references { 
                   edges { 
                     node { 
                       name 
                       url 
                       summary 
                       tracker { 
                         prefix 
                       } 
                       severity 
                       priority 
                     } 
                   } 
                 } 
               } 
             } 
           } 
         } 
       } 
     } 
   } 
 } 
 ```

Back