retold-data-service 2.0.17 → 2.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/services/data-cloner/pict-app/providers/Pict-Provider-DataCloner.js +24 -0
- package/source/services/data-cloner/web/data-cloner.js +17 -0
- package/source/services/data-cloner/web/data-cloner.js.map +1 -1
- package/source/services/data-cloner/web/data-cloner.min.js +1 -1
- package/source/services/data-cloner/web/data-cloner.min.js.map +1 -1
package/package.json
CHANGED
|
@@ -494,6 +494,25 @@ class DataClonerProvider extends libPictProvider
|
|
|
494
494
|
{
|
|
495
495
|
this.renderStatusDetail();
|
|
496
496
|
}
|
|
497
|
+
|
|
498
|
+
// Auto-fetch the sync report when we detect a completed sync but haven't loaded the report yet
|
|
499
|
+
if (pData.Phase === 'complete' && !this.pict.AppData.DataCloner.LastReport)
|
|
500
|
+
{
|
|
501
|
+
let tmpSelf = this;
|
|
502
|
+
this.api('GET', '/clone/sync/report')
|
|
503
|
+
.then(function(pReportData)
|
|
504
|
+
{
|
|
505
|
+
if (pReportData && pReportData.ReportVersion)
|
|
506
|
+
{
|
|
507
|
+
tmpSelf.pict.AppData.DataCloner.LastReport = pReportData;
|
|
508
|
+
if (tmpSelf.pict.AppData.DataCloner.StatusDetailExpanded)
|
|
509
|
+
{
|
|
510
|
+
tmpSelf.renderStatusDetail();
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
})
|
|
514
|
+
.catch(function() { /* ignore fetch errors */ });
|
|
515
|
+
}
|
|
497
516
|
}
|
|
498
517
|
|
|
499
518
|
// ================================================================
|
|
@@ -575,6 +594,11 @@ class DataClonerProvider extends libPictProvider
|
|
|
575
594
|
else if (tmpStatusData && tmpStatusData.Tables)
|
|
576
595
|
{
|
|
577
596
|
tmpTables = tmpStatusData.Tables;
|
|
597
|
+
// Use throughput samples from live status if available (e.g. after page reload with completed sync)
|
|
598
|
+
if (tmpLiveStatus && tmpLiveStatus.ThroughputSamples)
|
|
599
|
+
{
|
|
600
|
+
tmpThroughputSamples = tmpLiveStatus.ThroughputSamples;
|
|
601
|
+
}
|
|
578
602
|
}
|
|
579
603
|
|
|
580
604
|
// Categorize tables
|
|
@@ -5321,6 +5321,19 @@
|
|
|
5321
5321
|
if (this.pict.AppData.DataCloner.StatusDetailExpanded) {
|
|
5322
5322
|
this.renderStatusDetail();
|
|
5323
5323
|
}
|
|
5324
|
+
|
|
5325
|
+
// Auto-fetch the sync report when we detect a completed sync but haven't loaded the report yet
|
|
5326
|
+
if (pData.Phase === 'complete' && !this.pict.AppData.DataCloner.LastReport) {
|
|
5327
|
+
let tmpSelf = this;
|
|
5328
|
+
this.api('GET', '/clone/sync/report').then(function (pReportData) {
|
|
5329
|
+
if (pReportData && pReportData.ReportVersion) {
|
|
5330
|
+
tmpSelf.pict.AppData.DataCloner.LastReport = pReportData;
|
|
5331
|
+
if (tmpSelf.pict.AppData.DataCloner.StatusDetailExpanded) {
|
|
5332
|
+
tmpSelf.renderStatusDetail();
|
|
5333
|
+
}
|
|
5334
|
+
}
|
|
5335
|
+
}).catch(function () {/* ignore fetch errors */});
|
|
5336
|
+
}
|
|
5324
5337
|
}
|
|
5325
5338
|
|
|
5326
5339
|
// ================================================================
|
|
@@ -5384,6 +5397,10 @@
|
|
|
5384
5397
|
tmpEventLog = tmpReport.EventLog || [];
|
|
5385
5398
|
} else if (tmpStatusData && tmpStatusData.Tables) {
|
|
5386
5399
|
tmpTables = tmpStatusData.Tables;
|
|
5400
|
+
// Use throughput samples from live status if available (e.g. after page reload with completed sync)
|
|
5401
|
+
if (tmpLiveStatus && tmpLiveStatus.ThroughputSamples) {
|
|
5402
|
+
tmpThroughputSamples = tmpLiveStatus.ThroughputSamples;
|
|
5403
|
+
}
|
|
5387
5404
|
}
|
|
5388
5405
|
|
|
5389
5406
|
// Categorize tables
|