From bc2adb0cd20b37fe0b7dd6180d4af2b2239e4ef3 Mon Sep 17 00:00:00 2001 From: Jindrich Susen Date: Tue, 19 Sep 2023 10:31:08 +0200 Subject: [PATCH 1/2] Child records were not updated after applying a filer --- .../FormScreenLifecycle/FormScreenLifecycle.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/frontend-html/src/model/entities/FormScreenLifecycle/FormScreenLifecycle.tsx b/frontend-html/src/model/entities/FormScreenLifecycle/FormScreenLifecycle.tsx index 36f7ca7fbb..de9319a941 100644 --- a/frontend-html/src/model/entities/FormScreenLifecycle/FormScreenLifecycle.tsx +++ b/frontend-html/src/model/entities/FormScreenLifecycle/FormScreenLifecycle.tsx @@ -723,8 +723,7 @@ export class FormScreenLifecycle02 implements IFormScreenLifecycle02 { } else { yield this.updateTotalRowCount(rootDataView); yield*this.readFirstChunkOfRows({ - rootDataView: rootDataView, - runChangeRowReaction: true + rootDataView: rootDataView }); } } @@ -878,8 +877,7 @@ export class FormScreenLifecycle02 implements IFormScreenLifecycle02 { } *readFirstChunkOfRows(args: { - rootDataView: IDataView, - runChangeRowReaction: boolean + rootDataView: IDataView }): any { const rootDataView = args.rootDataView; const api = getApi(this); @@ -916,9 +914,7 @@ export class FormScreenLifecycle02 implements IFormScreenLifecycle02 { } rootDataView.restoreViewState(); } finally { - if(args.runChangeRowReaction) { - rootDataView.lifecycle.startSelectedRowReaction(true); - } + rootDataView.lifecycle.startSelectedRowReaction(true); this.monitor.inFlow--; } } @@ -936,8 +932,7 @@ export class FormScreenLifecycle02 implements IFormScreenLifecycle02 { do { this._readFirstChunkOfRowsScheduled = false; yield*this.readFirstChunkOfRows({ - rootDataView: rootDataView, - runChangeRowReaction: false + rootDataView: rootDataView }); } while (this._readFirstChunkOfRowsScheduled); } finally { From 81f50ee06869f5760dd620ec2f64c9879940730b Mon Sep 17 00:00:00 2001 From: Jindrich Susen Date: Tue, 19 Sep 2023 10:31:17 +0200 Subject: [PATCH 2/2] Readme updated --- frontend-html/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend-html/README.md b/frontend-html/README.md index d73df2fb47..47f6b7a01c 100644 --- a/frontend-html/README.md +++ b/frontend-html/README.md @@ -62,4 +62,14 @@ Try running it with the browser path specified: ```BROWSER=/usr/bin/firefox yarn start``` +#### Debug Constants +You can set these constants in the browser's local storage: + +`debugNoPolling` will prevent work queue refresh from running + +`debugNoPolling_notificationBox` will prevent notifications refresh from running + +`debugNoPolling_chatrooms` will prevent chat refresh from running + +