Manage daily reports by date and refresh monthly reports after deletion
This commit is contained in:
1 parent
976a4fa7b2
commit
2a54838d59
41 files changed
+2757
-89
No files matched your search
@@ -24,7 +24,7 @@ function pendingAPI(url,currentPrice=priceTask) {
|
||||
if(url.includes('/review?')) return response(200,priceReview());
|
||||
if(url.endsWith('/trace')) return response(200,{job:{job_id:priceTask.job_id,
|
||||
business_date:priceTask.report_date,status:currentPrice.status,active:currentPrice.status==='needs_review'},logs:[]});
|
||||
if(url.startsWith('/api/jobs?')) return response(200,[]);
|
||||
if(url.startsWith('/api/daily-reports?')) return response(200,[]);
|
||||
throw new Error('unexpected request '+url);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ test('an empty validated field review polls the same task and follows processing
|
||||
const h=harness(url=>{
|
||||
if(url.endsWith('/data-review')) return response(200,review([]));
|
||||
if(url===`/api/arr-downloads/${requestId}`) return response(200,{...task,status:nextStatus,job_id:nextStatus==='processing'?null:jobId});
|
||||
if(url.startsWith('/api/jobs?')) return response(200,[]);
|
||||
if(url.startsWith('/api/daily-reports?')) return response(200,[]);
|
||||
if(url.endsWith('/trace')) return response(200,{job:{job_id:jobId,business_date:task.report_date,status:nextStatus,active:true},logs:[]});
|
||||
if(url.includes('/review?')) return response(200,{...priceReview(),business_date:task.report_date});
|
||||
throw new Error('unexpected request '+url);
|
||||
|
||||
Reference in new issue
Block a user