From 5f2b33f434e036f29d961fb4beee65f963cf2b25 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 28 Oct 2021 18:53:27 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 6 ------ ayanova/src/components/report-selector-control.vue | 10 ++++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 41805b17..0cc0290f 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -13,12 +13,6 @@ - -todo: timeout for reporting should be used for all areas where a timeout is specified for puppeteer sharp so that everything is in agreement - or, maybe what is required is to set them unusually high to allow for mega reports adn let the zombie reaper handle based on user settings!!! - because we don't want a 30 second limit in puppeteer to kill a report when they set it to be 2 minutes timeout because they know they have a huge report to print from time to time - - todo: add code for client reporting to handle a busy response perhaps it retries after the delay a fixed number of times then reports back a fail / retry later to the user joyce suggested a folksy message regarding server busy, something friendly and non techy sounding diff --git a/ayanova/src/components/report-selector-control.vue b/ayanova/src/components/report-selector-control.vue index f9030d75..fd4046cf 100644 --- a/ayanova/src/components/report-selector-control.vue +++ b/ayanova/src/components/report-selector-control.vue @@ -106,6 +106,16 @@ export default { reportDataOptions ); this.rendering = false; + + if (res.data && res.data.busy) { + window.$gz.eventBus.$emit( + "notify-warning", + "Dammit captain, I'm giving it all she's got, try again later" + ); + this.resolve(null); + this.isVisible = false; + return; + } if (res.error) { this.reject(res); } else {