TF-4368 Add log to tracing refresh change emails on Sentry
This commit is contained in:
@@ -375,9 +375,26 @@ class ThreadRepositoryImpl extends ThreadRepository {
|
|||||||
mailboxId: emailFilter?.mailboxId,
|
mailboxId: emailFilter?.mailboxId,
|
||||||
propertiesCreated: propertiesCreated,
|
propertiesCreated: propertiesCreated,
|
||||||
);
|
);
|
||||||
|
logTrace(
|
||||||
|
'ThreadRepositoryImpl::refreshChanges():'
|
||||||
|
'CountEmailCached = ${newEmailResponse.emailList?.length}, '
|
||||||
|
'EmailStateCache = ${newEmailResponse.state?.value}, '
|
||||||
|
'InMailboxId = ${emailFilter?.mailboxId?.asString}, '
|
||||||
|
'Limit = ${limit?.value.toInt()}, '
|
||||||
|
'DefaultLimit = ${ThreadConstants.defaultLimit.value.toInt()}, '
|
||||||
|
'CountEmailNetwork = ${networkEmailResponse.emailList?.length}, '
|
||||||
|
'EmailStateNetwork = ${networkEmailResponse.state?.value}, ',
|
||||||
|
);
|
||||||
yield networkEmailResponse.copyWith(emailChangeResponse: emailChangeResponse);
|
yield networkEmailResponse.copyWith(emailChangeResponse: emailChangeResponse);
|
||||||
} else {
|
} else {
|
||||||
|
logTrace(
|
||||||
|
'ThreadRepositoryImpl::refreshChanges():'
|
||||||
|
'CountEmailCached = ${newEmailResponse.emailList?.length}, '
|
||||||
|
'EmailStateCache = ${newEmailResponse.state?.value}, '
|
||||||
|
'InMailboxId = ${emailFilter?.mailboxId?.asString}, '
|
||||||
|
'Limit = ${limit?.value.toInt()}, '
|
||||||
|
'DefaultLimit = ${ThreadConstants.defaultLimit.value.toInt()}, ',
|
||||||
|
);
|
||||||
yield newEmailResponse.copyWith(emailChangeResponse: emailChangeResponse);
|
yield newEmailResponse.copyWith(emailChangeResponse: emailChangeResponse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -477,8 +477,20 @@ class ThreadController extends BaseController with EmailActionController {
|
|||||||
final totalHeightListEmails = currentListEmails.isEmpty
|
final totalHeightListEmails = currentListEmails.isEmpty
|
||||||
? 0
|
? 0
|
||||||
: currentListEmails.length * ThreadConstants.defaultMaxHeightEmailItemOnBrowser;
|
: currentListEmails.length * ThreadConstants.defaultMaxHeightEmailItemOnBrowser;
|
||||||
if (browserInnerHeight >= ThreadConstants.defaultMaxHeightBrowser &&
|
final isAutoLoadMore =
|
||||||
totalHeightListEmails <= browserInnerHeight) {
|
browserInnerHeight >= ThreadConstants.defaultMaxHeightBrowser &&
|
||||||
|
totalHeightListEmails <= browserInnerHeight;
|
||||||
|
logTrace(
|
||||||
|
'ThreadController::_validateBrowserHeight():'
|
||||||
|
'BrowserInnerHeight = $browserInnerHeight, '
|
||||||
|
'TotalHeightListEmails = $totalHeightListEmails, '
|
||||||
|
'ThreadConstants.defaultMaxHeightBrowser = ${ThreadConstants.defaultMaxHeightBrowser}, '
|
||||||
|
'ThreadConstants.defaultMaxHeightEmailItemOnBrowser = ${ThreadConstants.defaultMaxHeightEmailItemOnBrowser}, '
|
||||||
|
'CanLoadMore = $canLoadMore, '
|
||||||
|
'isAutoLoadMore = $isAutoLoadMore, '
|
||||||
|
'CountCurrentListEmails = ${currentListEmails.length}',
|
||||||
|
);
|
||||||
|
if (isAutoLoadMore) {
|
||||||
_performAutomaticallyLoadMoreEmails();
|
_performAutomaticallyLoadMoreEmails();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -557,7 +569,9 @@ class ThreadController extends BaseController with EmailActionController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _handleOnDoneGetAllEmailFailure() {
|
void _handleOnDoneGetAllEmailFailure() {
|
||||||
canLoadMore = false;
|
if (PlatformInfo.isWeb) {
|
||||||
|
_validateBrowserHeight();
|
||||||
|
}
|
||||||
if (PlatformInfo.isWeb && mailboxDashBoardController.isEmailListDisplayed) {
|
if (PlatformInfo.isWeb && mailboxDashBoardController.isEmailListDisplayed) {
|
||||||
refocusMailShortcutFocus();
|
refocusMailShortcutFocus();
|
||||||
}
|
}
|
||||||
@@ -630,7 +644,7 @@ class ThreadController extends BaseController with EmailActionController {
|
|||||||
consumeState(Stream.value(Right(GetAllEmailLoading())));
|
consumeState(Stream.value(Right(GetAllEmailLoading())));
|
||||||
}
|
}
|
||||||
|
|
||||||
canLoadMore = false;
|
canLoadMore = true;
|
||||||
loadingMoreStatus.value = LoadingMoreStatus.idle;
|
loadingMoreStatus.value = LoadingMoreStatus.idle;
|
||||||
cancelSelectEmail();
|
cancelSelectEmail();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user