-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISSUE-3189 front end support for subaddressing #3241
base: master
Are you sure you want to change the base?
Conversation
my plan in the following: subaddressing will be considered allowed if the identifier thus, clicking on the the interesting file is and here are the logs. as you can see, not much details...you can see the jmap request generated and sent, but then it results in a failure what do you think ? any comment welcome ! :) |
Thanks for putting together that work! |
lib/features/mailbox/domain/state/subaddressing_mailbox_state.dart
Outdated
Show resolved
Hide resolved
lib/features/mailbox/domain/model/mailbox_subaddressing_action.dart
Outdated
Show resolved
Hide resolved
lib/features/mailbox/domain/usecases/subaddressing_mailbox_interactor.dart
Outdated
Show resolved
Hide resolved
the JMAP request generated by clicking the button still does not work. by looking into the james-project repo files MailboxSet.scala and MailboxSetMethodContract.scala, i understood that the i managed to get the the server response when sending such a request:
i am stuck with this "serverFail" error... :/ |
What is the corresponding JMAP request being done? |
|
Personal bet:
|
i tried with other identifiers, including so indeed the error handling on the server side seems non exhaustive... is there any way i could access the logs of the server at https://jmap.lin-saas.dev to try to get more info ? |
benoit confirms that the issue comes from the server side, so no need to look further ! :) |
core/lib/presentation/views/dialog/subaddressing_dialog_builder.dart
Outdated
Show resolved
Hide resolved
@dab246 i think all of your comments were addressed, can i rebase and clean the commit history ? |
bccb2af
to
62765cf
Compare
62765cf
to
352a7e5
Compare
you need to connect the frontend to a server that has the latest changes, including this PR, and this PR. when running my own instance of the server, with the image note that subaddressing features only show if the server advertizes that it supports it. but currently that advertizement is not merged on the server side (cf this PR) so you'll have to manually change the default value to true in
i will post a video testing all cases
done
i feel like i have a test failing, but i can't find which one:
|
lib/features/mailbox/presentation/mixin/mailbox_widget_mixin.dart
Outdated
Show resolved
Hide resolved
|
@florentos17 you can come here to see the detail test result: https://github.com/linagora/tmail-flutter/pull/3241/checks?check_run_id=33790426200 |
here is a little demo video testing several edge cases: subaddressing-demo.mp4 |
Future<void> clearMailboxCache() { | ||
return Future.wait([ | ||
_mailboxCacheClient.clearAllData(), | ||
if (PlatformInfo.isMobile) clearAllFileInStorage(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove it, we only need remove mailbox cache and state of mailbox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so just this ?
Future<void> clearMailboxCache() {
return Future.wait([
_mailboxCacheClient.clearAllData(),
_stateCacheClient.clearAllData()
], eagerError: true);
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stateCache store the data via tupleKey
. So we only to clear state of mailbox. Please try with
_stateCacheClient.deleteItem(StateType.mailbox.getTupleKeyStored(accountId, session.username))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clearMailboxCache
is called from /lib/features/base/upgradeable/upgrade_hive_database_steps_v13.dart
, there is no accountId
or session
.
do you want to call it directly from mailbox_controller
somehow ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okie so please
Future<void> clearMailboxCache() {
return Future.wait([
_mailboxCacheClient.clearAllData(),
], eagerError: true);
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done !
lib/features/mailbox/presentation/mixin/mailbox_widget_mixin.dart
Outdated
Show resolved
Hide resolved
32d4207
to
2e44ad2
Compare
cf
Mailboxes