terrier-engine 4.10.10 → 4.10.14
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.
|
@@ -99,6 +99,7 @@ export class DiveRunModal extends ModalPart<{dive: DdDive }> {
|
|
|
99
99
|
log.info(`Picked date range for ${m.data.input_key}`, newRange)
|
|
100
100
|
this.inputFields.data[`${m.data.input_key}-min`] = newRange.min
|
|
101
101
|
this.inputFields.data[`${m.data.input_key}-max`] = dayjs(newRange.max).subtract(1, 'day').format(Dates.literalFormat)
|
|
102
|
+
this.updateFilters()
|
|
102
103
|
this.dirty()
|
|
103
104
|
}} as DatePeriodPickerState,
|
|
104
105
|
m.event.target
|
|
@@ -141,6 +142,7 @@ export class DiveRunModal extends ModalPart<{dive: DdDive }> {
|
|
|
141
142
|
Api.stream(`/data_dive/stream_run/${this.run.id}`)
|
|
142
143
|
.on<InitRunResult>('init_run', res => {
|
|
143
144
|
this.progressBar.setTotal(res.total_steps)
|
|
145
|
+
this.logList.clear()
|
|
144
146
|
log.info(`Total steps for run: ${res.total_steps}`)
|
|
145
147
|
this.dirty()
|
|
146
148
|
})
|
package/package.json
CHANGED
package/terrier/logging.ts
CHANGED
|
@@ -46,6 +46,14 @@ export class LogListPart extends TerrierPart<NoState> {
|
|
|
46
46
|
this.dirty()
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Clears the list.
|
|
51
|
+
*/
|
|
52
|
+
clear() {
|
|
53
|
+
this.entries = []
|
|
54
|
+
this.dirty()
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
success(message: string, prefix: string | undefined) {
|
|
50
58
|
this.push({message, prefix, level: "success"})
|
|
51
59
|
}
|