fix qa page sorting: (#2530)
was sorting on qa.{qa_run_id} after the value was already replaced with
'qa', thus was sorting on non-existent value
fixes #2529
			
			
This commit is contained in:
		
							parent
							
								
									f6481272f4
								
							
						
					
					
						commit
						c067a0fe7c
					
				| @ -647,8 +647,8 @@ class PageOps: | |||||||
|                     raise HTTPException( |                     raise HTTPException( | ||||||
|                         status_code=400, detail="qa_run_id_missing_for_qa_sort" |                         status_code=400, detail="qa_run_id_missing_for_qa_sort" | ||||||
|                     ) |                     ) | ||||||
| 
 |                 # note: not using qa.{qa_run_id} because $set above means qa = qa.{qa_run_id} | ||||||
|                 sort_by = f"qa.{qa_run_id}.{sort_by}" |                 sort_by = f"qa.{sort_by}" | ||||||
| 
 | 
 | ||||||
|             aggregate.extend([{"$sort": {sort_by: sort_direction}}]) |             aggregate.extend([{"$sort": {sort_by: sort_direction}}]) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user